From 68c85b4d216b705fb572ed6dfa955665af3e5e29 Mon Sep 17 00:00:00 2001 From: Craig Roy Date: Thu, 28 Sep 2023 14:42:23 +0100 Subject: [PATCH] fix(Jira): Handling of issues with no priority label --- .github/workflows/issue.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/issue.yml b/.github/workflows/issue.yml index ffd1129cc..2419e486d 100644 --- a/.github/workflows/issue.yml +++ b/.github/workflows/issue.yml @@ -45,21 +45,23 @@ jobs: if: ${{ contains(github.event.issue.labels.*.name, 'bug') }} env: JIRA_PRIORITY: ${{ steps.set_priority_var.outputs.JIRA_PRIORITY }} + JIRA_PRIORITY_FIELD: ', "priority": { "name": "${{ env.JIRA_PRIORITY }}" }' with: project: TKET issuetype: Bug summary: « [hugr] ${{ github.event.issue.title }}» description: ${{ github.event.issue.html_url }} - fields: '{"labels": ["hugr"], "priority": { "name": "${{ env.JIRA_PRIORITY }}" }}' + fields: '{ "labels": ["hugr"] ${{ env.JIRA_PRIORITY_FIELD }} }' - name: Create Task uses: atlassian/gajira-create@v3.0.1 if: ${{ ! contains(github.event.issue.labels.*.name, 'bug') }} env: JIRA_PRIORITY: ${{ steps.set_priority_var.outputs.JIRA_PRIORITY }} + JIRA_PRIORITY_FIELD: ', "priority": { "name": "${{ env.JIRA_PRIORITY }}" }' with: project: TKET issuetype: Task summary: « [hugr] ${{ github.event.issue.title }}» description: ${{ github.event.issue.html_url }} - fields: '{"labels": ["hugr"], "priority": { "name": "${{ env.JIRA_PRIORITY }}" }}' + fields: '{ "labels": ["hugr"] ${{ env.JIRA_PRIORITY_FIELD }} }'