Skip to content

Updating Jira Integration Round 3 #25737

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/jira-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
description: "${{ github.event.issue.body || github.event.pull_request.body }}\n\n_Created in GitHub by ${{ github.actor }}._"
# customfield_10089 is "Issue Link", customfield_10371 is "Source" (use JIRA API to retrieve), customerfield_10091 is "Team (R&D)
extraFields: '{ "customfield_10089": "${{ github.event.issue.html_url || github.event.pull_request.html_url }}",
"Team[Team]": "72e166fb-d26c-4a61-b0de-7a290d91708f",
"Team": "72e166fb-d26c-4a61-b0de-7a290d91708f",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems to be the structure of the thing we're targeting, based on an API response I got from a newly created issue:

    "customfield_10001": {
      "id": "72e166fb-d26c-4a61-b0de-7a290d91708f",
      "name": "Nomad Minor",
      "avatarUrl": "",
      "isVisible": true,
      "isVerified": false,
      "title": "Nomad Minor",
      "isShared": true
    },

I have no idea how much of that we need to specify here, but I bet we can experiment using the Jira API directly, then port that over to this workflow.

the github action that this uses
https://github.com/tomhjp/gh-action-jira-create/blob/main/README.md#inputs

points to the jira api:
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-post

"labels": ["community", "GitHub"] }'
env:
JIRA_BASE_URL: ${{ secrets.JIRA_BASE_URL }}
Expand Down
Loading