Sync Jira Issue Status with Pull Request Events Using Automation
Learn how to automatically transition Jira issues when a pull request is opened, reducing manual updates and keeping boards accurate.
14 Aug 2026, 05:18 UTC

Problem: Manual status updates create stale boards
When developers open a pull request, the associated Jira issue often remains in its previous state (e.g., "To Do"). Team members must remember to move the issue manually, which leads to delayed visibility on Scrum or Kanban boards and extra toil.
Thesis: Use the "Pull request opened" trigger to automate the transition
Jira Automation (available in Jira Cloud and Data Center with the Automation for Jira app) includes a built‑in trigger for pull request events from Bitbucket, GitHub, or GitLab. By pairing that trigger with a condition that checks the branch name for the issue key, you can transition the issue automatically—eliminating the manual step and keeping the board in sync.
Section 1: Create the automation rule
- Navigate to Project Settings → Automation → Create rule.
- Choose the Pull request opened trigger (found under the DevOps category).
- If you want the rule to apply to multiple projects, select Global rule and ensure you have the Automation: Global permission; otherwise the rule will fail silently.
Section 2: Match the pull request to an issue
The most reliable way to link a PR to its Jira issue is to require the branch name to contain the issue key (e.g., feature/PROJ-123-add-login). Add a condition:
# JQL condition (Advanced compare condition)
issue.key in branchName()
Explanation: branchName() returns the name of the branch that triggered the pull request. The JQL checks whether any issue key appears in that string. If your team uses a different pattern (e.g., PROJ-123-feature), adjust the regular expression accordingly.
Section 3: Define the action and optional enrichment
Add an action:
- Transition issue – choose the target status (commonly "In Review").
- Optionally, add another action: Add comment with the pull request URL to provide traceability:
Pull request opened: {{pullRequest.url}}
This comment helps reviewers see the PR without leaving the issue view.
Trade‑off / Limitation
- Each automation rule consumes part of your plan’s rule limit; monitor usage if you have many rules.
- Complex JQL conditions (e.g., multiple regex checks) can increase rule execution time.
- The rule depends on a consistent branch‑naming convention that includes the issue key. If developers omit the key, the rule will not fire.
Verification and rollout
- In the rule editor, click Save and then Turn on.
- Open a pull request in the linked repository using a branch that contains an existing issue key (e.g.,
git checkout -b PROJ-456-update-readme). - After the PR is created, open the Jira issue and check:
- The issue’s status has changed to the target status (e.g., "In Review").
- A comment with the PR URL appears.
- Review the automation log: Automation → Rule details → Audit log to confirm the rule fired successfully and to diagnose any failures.
Once validated in a test project, enable the rule globally (or for the relevant projects) and continue to monitor the audit log for the first few days.
Actionable closing
Verify your repository naming scheme, enable the automation template in a test project, validate with a single pull request, then roll out globally while watching the automation log for failures. This simple rule removes a repetitive manual step and keeps your Jira board an accurate reflection of work in progress.
0 replies
A thoughtful contribution can make all the difference. Be the first to share one.