Skip to content

Commit b581ebc

Browse files
NO-SNOW fix jira creation (#2696)
1 parent b052765 commit b581ebc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/jira_issue.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,23 @@ jobs:
2121
JIRA_API_TOKEN: ${{ secrets.JIRA_API_TOKEN }}
2222
ISSUE_URL: ${{ github.event.issue.html_url }}
2323
run: |
24+
# debug
25+
set -x
2426
# Escape special characters in title and body
2527
TITLE=$(echo '${{ github.event.issue.title }}' | sed 's/"/\\"/g' | sed "s/'/\\\'/g")
2628
BODY=$(echo '${{ github.event.issue.body }}' | sed 's/"/\\"/g' | sed "s/'/\\\'/g")
29+
DESCRIPTION="$BODY\\n\\n_Created from GitHub Action_ for $ISSUE_URL"
2730
PAYLOAD=$(jq -n \
2831
--arg issuetitle "$TITLE" \
2932
--arg issuebody "$BODY" \
3033
--arg issueurl "$ISSUE_URL" \
34+
--arg description "$DESCRIPTION" \
3135
'{
3236
fields: {
3337
project: { key: "SNOW" },
3438
issuetype: { name: "Bug" },
3539
summary: $issuetitle,
36-
description: ($issuebody + "\n\n_Created from GitHub Action_ for " + $issueurl),
40+
description: $description,
3741
customfield_11401: { id: "14723" },
3842
assignee: { id: "712020:e527ae71-55cc-4e02-9217-1ca4ca8028a2" },
3943
components: [{ id: "16413" }],

0 commit comments

Comments
 (0)