Skip to content

Commit 99893a3

Browse files
Support CUSTOM_FIELDS input for create jira job (#9)
Required to support new HZG test failure tickets which have several mandatory fields.
1 parent 896a074 commit 99893a3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ inputs:
2222
TEAM_NAME:
2323
description: 'Specify the Team (use exact name from the jira) to set this in the issue'
2424
required: false
25+
CUSTOM_FIELDS:
26+
description: 'JSON key-value strings of custom fields to be added to the JIRA issue'
27+
required: false
2528

2629
runs:
2730
using: "composite"
@@ -64,7 +67,7 @@ runs:
6467
*Created By:* ${{ github.event.issue.user.login }}
6568
[Github permalink|${{ github.event.issue.html_url }}]
6669
{panel}
67-
fields: '{"labels": ["${{ inputs.JIRA_LABEL }}"] ${{ steps.map_team_name_to_id.outputs.result }} }'
70+
fields: '{"labels": ["${{ inputs.JIRA_LABEL }}"] ${{ steps.map_team_name_to_id.outputs.result }} ${{ inputs.CUSTOM_FIELDS ? ',' + inputs.CUSTOM_FIELDS : '' }} }'
6871

6972
- name: Update title of GitHub issue
7073
uses: actions/[email protected]

0 commit comments

Comments
 (0)