diff --git a/.github/workflows/jira-issue-transfer.yml b/.github/workflows/jira-issue-transfer.yml index 020d487548..66d6a3c575 100644 --- a/.github/workflows/jira-issue-transfer.yml +++ b/.github/workflows/jira-issue-transfer.yml @@ -32,7 +32,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Jira Create Bug id: bug - if: contains(github.event.issue.labels.*.name, 'ticketed') && contains(github.event.issue.labels.*.name, 'bug') + if: contains(github.event.issue.labels.*.name, 'ticketed', 'bug') && !contains(github.event.issue.labels.*.name, 'ticketed') uses: atlassian/gajira-create@v3 with: project: BP @@ -43,7 +43,7 @@ jobs: run: echo "Issue ${{ steps.bug.outputs.issue }} was created" - name: Jira Create Enhancement id: enhancement - if: contains(github.event.issue.labels.*.name, 'ticketed') && contains(github.event.issue.labels.*.name, 'enhancement') + if: contains(github.event.issue.labels.*.name, 'ticketed', 'enhancement') && !contains(github.event.issue.labels.*.name, 'ticketed') uses: atlassian/gajira-create@v3 with: project: BP