Skip to content

Add GitHub-Jira sync and auto-close workflows#368

Open
Ganeshship wants to merge 2 commits into
devfrom
chore/jira-github-sync
Open

Add GitHub-Jira sync and auto-close workflows#368
Ganeshship wants to merge 2 commits into
devfrom
chore/jira-github-sync

Conversation

@Ganeshship

Copy link
Copy Markdown
Contributor

Summary

  • Daily GitHub Action (9 AM IST) syncs new GitHub issues to Jira with standard format (Problem, Scoring, Reference)
  • Auto-close workflow transitions Jira tickets to Done when PRs merge with "fixes [Bug] can't be Active for all version #123" keywords
  • Skips duplicates by matching "GH #XXX" in Jira ticket titles

Setup required

Add 3 repo secrets in Settings > Secrets > Actions:

  • JIRA_EMAIL
  • JIRA_API_TOKEN
  • JIRA_BASE_URL

Test plan

  • Add secrets to repo
  • Manually trigger daily sync from Actions tab
  • Verify new Jira tickets created with correct format
  • Merge a test PR with "fixes #XXX" and verify Jira ticket transitions to Done

- Daily sync (9 AM IST): scans open GitHub issues, creates Jira tickets with standard format (Problem, Scoring, Reference), skips duplicates
- Auto-close on merge: when PR with "fixes #123" merges, transitions matching Jira ticket to Done and closes GitHub issue

Requires 3 repo secrets: JIRA_EMAIL, JIRA_API_TOKEN, JIRA_BASE_URL

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@sonarqubecloud

Copy link
Copy Markdown

…ping

The GitHub<->Jira sync used POST /rest/api/3/search, which Atlassian has
removed (HTTP 410) — both workflows would fail. Migrate to the replacement
/rest/api/3/search/jql (same response shape) in jira-sync and
jira-close-on-merge.

Also:
- jira-sync posts a Slack summary at the end of each run (reuses the
  SLACK_WEBHOOK_URL the app-play-store-tracker uses); only when tickets were
  created or failed, silent on quiet days.
- Issue typing now maps GitHub labels to Bug / Story / Task (was bug -> Bug,
  else -> Task; feature/enhancement now become Story).

Verified against the live SCRUM board: Done transition id 31 is correct;
/search/jql returns 200 with the expected {issues:[...]} shape.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 30, 2026

Copy link
Copy Markdown

Review Change Stack

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: bb6b570b-0eba-459d-8c50-f7a78c108952

📥 Commits

Reviewing files that changed from the base of the PR and between ecbfcd7 and 328455a.

📒 Files selected for processing (2)
  • .github/workflows/jira-close-on-merge.yml
  • .github/workflows/jira-sync.yml
 _____________________________________________________________________________________________________________
< Hello, it's me. I was wondering if after all these reviews you'd like to meet...to celebrate bug-free code. >
 -------------------------------------------------------------------------------------------------------------
  \
   \   \
        \ /\
        ( )
      .( o ).
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch chore/jira-github-sync

Comment @coderabbitai help to get the list of available commands.

@bhaveshpawar07 bhaveshpawar07 changed the base branch from main to dev July 1, 2026 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] can't be Active for all version

2 participants