From e0aaa14c1ff0b5995877a4a551c656ef6dc9cbd7 Mon Sep 17 00:00:00 2001 From: Michael Boquard Date: Thu, 25 Apr 2024 19:59:45 -0400 Subject: [PATCH] gh: Fix bug issue creation Bug issue creation has been modified in Jira to use a custom field for bug issues. Updating the creation issue script to use this new custom field. Signed-off-by: Michael Boquard --- .github/workflows/scripts/jira_helper.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/scripts/jira_helper.py b/.github/workflows/scripts/jira_helper.py index fd2f06394b91..9c4636c57dee 100644 --- a/.github/workflows/scripts/jira_helper.py +++ b/.github/workflows/scripts/jira_helper.py @@ -197,8 +197,11 @@ def _create_issue(self): # GitHubs jira_issue_body = issue_body.replace("```", "{code}") + # When creating a bug, must use customfield_10083 as 'description' is not part of + # bug creation screen anymore fields = { - "description": f"{jira_issue_body}", + "description" if issue_type == 'Task' else "customfield_10083": + f"{jira_issue_body}", "summary": f"{issue_title}", "issuetype": { "name": f"{issue_type}"