From e4427e8a16c73e41aad2ca171876b9813fa45226 Mon Sep 17 00:00:00 2001 From: Domenico Sibilio Date: Thu, 21 Sep 2023 09:42:02 +0200 Subject: [PATCH] ACS-6054 JIRA integration now works with >1 word release trains --- scripts/ci/jira/jira_integration.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/ci/jira/jira_integration.py b/scripts/ci/jira/jira_integration.py index 3bbfb8b05b..f058d0b651 100755 --- a/scripts/ci/jira/jira_integration.py +++ b/scripts/ci/jira/jira_integration.py @@ -74,7 +74,7 @@ def get_issue_key(): epic_id = get_epic_id_to_assign(project_id) if not epic_id: return - sql_query = f'project = {project_id} AND "Release Train" = {CURRENT_RELEASE} AND issuetype = "bug" AND "parentEpic" = {epic_id}' + sql_query = f'project = {project_id} AND "Release Train" = "{CURRENT_RELEASE}" AND issuetype = "bug" AND "parentEpic" = {epic_id}' result = jira.jql(sql_query) for issue in result['issues']: if issue['fields']['summary'] == get_summary_name(): @@ -123,7 +123,7 @@ def get_epic_id_to_assign(project_id): try: sql_query = f"""project = {project_id} AND - 'Release Train' = {CURRENT_RELEASE} AND + 'Release Train' = '{CURRENT_RELEASE}' AND issuetype = 'Epic' AND Summary ~ '{CURRENT_RELEASE} % Content Services Maintenance' ORDER BY issuekey"""