Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion mlx/jira_traceability/jira_interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def create_unique_issues(item_ids, jira, general_fields, settings, traceability_
# Use enhanced_search_issues for Jira Cloud compatibility
try:
matches = jira.enhanced_search_issues(
jql="project={} and {} ~ {!r}".format(project_id_or_key, jira_field_id, jira_field_query_value),
jql_str="project={} and {} ~ {!r}".format(project_id_or_key, jira_field_id, jira_field_query_value),
maxResults=1,
)
except AttributeError:
Expand Down
8 changes: 4 additions & 4 deletions tests/test_jira_interaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ def test_create_jira_issues_unique(self, jira):
self.assertEqual(jira_mock.enhanced_search_issues.call_args_list,
[
mock.call(
jql='project=MLX12345 and summary ~ "MEETING\\\\-12345_2\\\\: Action 1\'s caption\\\\?"',
jql_str='project=MLX12345 and summary ~ "MEETING\\\\-12345_2\\\\: Action 1\'s caption\\\\?"',
maxResults=1),
mock.call(jql="project=MLX12345 and summary ~ 'Caption for action 2'", maxResults=1),
mock.call(jql_str="project=MLX12345 and summary ~ 'Caption for action 2'", maxResults=1),
])

issue = jira_mock.create_issue.return_value
Expand Down Expand Up @@ -381,10 +381,10 @@ def test_tuple_for_relationship_to_parent(self, jira):

self.assertEqual(jira_mock.enhanced_search_issues.call_args_list,
[
mock.call(jql="project=MLX12345 and summary ~ "
mock.call(jql_str="project=MLX12345 and summary ~ "
'"ZZZ\\\\-TO_BE_PRIORITIZED\\\\: Action 1\'s caption\\\\?"',
maxResults=1),
mock.call(jql="project=MLX12345 and summary ~ 'Caption for action 2'", maxResults=1),
mock.call(jql_str="project=MLX12345 and summary ~ 'Caption for action 2'", maxResults=1),
])

expected_fields_1 = {
Expand Down