diff --git a/.github/workflows/sdk-issue-template.yaml b/.github/workflows/sdk-issue-template.yaml index 99d5b5b..af6142a 100644 --- a/.github/workflows/sdk-issue-template.yaml +++ b/.github/workflows/sdk-issue-template.yaml @@ -13,35 +13,40 @@ jobs: env: ISSUE_TITLE: "${{ github.event.issue.title }}" ISSUE_BODY: "${{ github.event.issue.body }}" + ISSUE_URL: "${{ github.event.issue.html_url }}" + ISSUE_USER: "${{ github.event.issue.user.login }}" steps: - name: Create Jira Task run: | - ISSUE_TITLE=$(echo "$ISSUE_TITLE" | sed 's/"/\\"/g') - ISSUE_BODY=$(echo "$ISSUE_BODY" | sed 's/"/\\"/g') - ISSUE_URL="${{ github.event.issue.html_url }}" - ISSUE_USER="${{ github.event.issue.user.login }}" + JIRA_PAYLOAD=$(jq -n \ + --arg project_key "DE" \ + --arg jira_epic_key "DE-1012" \ + --arg summary "[${{ inputs.sdk-name }}] ${ISSUE_TITLE}" \ + --arg description "GitHub issue created by ${ISSUE_USER}: - JIRA_EPIC_KEY="DE-1012" + ${ISSUE_BODY} - JIRA_PAYLOAD=$(cat <