Hi Team,
We are trying to set up an automation that updates the Jira issue status automatically when a GitHub Pull Request (PR) is merged.
Here’s the flow:
Each Jira issue key (e.g., BS-123) is included in the branch name.
We suffix the environment in the branch name (e.g., BS-123-something-staging, BS-123-hotfix-preproduction, etc.).
When a Pull Request is created and merged, Jira recognizes the linked issue through the GitHub integration.
We want to automate status transitions based on the target branch (i.e., where the PR is merged into).
Our goal:
If a PR is merged into a branch named with staging, the linked Jira issue should move to "QA: Not Integrated to Frontend".
If merged into pre-production, move it to "Pre-Production: Not Integrated to Frontend".
If merged into production, move it to "Production: Not Integrated to Frontend".
What we have implemented:
Trigger: Pull Request Merged
Condition: Smart Value Condition
Smart Value used: {{pullRequest.destinationBranch}}
Operator: Contains
Values tested: staging, pre-production, production
Structure: We used an if-else block structure, where each branch name condition is checked in a separate "if block" with transitions defined inside.
We also tried using {{pullRequest.destinationBranch.name}} instead of {{pullRequest.destinationBranch}}, but the automation still doesn't trigger the status transition correctly.
Could you please guide me on the correct smart value to use, or suggest how I should configure this?
Thanks!