Hi, I am trying to figure out how to update Jira tickets with a fixVersion based on the branch the git commit was merged into using Jira Automation. I am having trouble finding additional documentation on what JQL commands can be used so that I can use a IF{JQL} component. Please link any documentation and/or a JQL that would help me in this situation.
Ex:
“development[pullrequests].open = 0” as JQL gives me filter results
“development[pullrequests].closed = 0” as JQL does not give me filter results
I am trying to figure out how to do something like " development[pullrequests].branch = currentBranchName
This page seems to have some info, but not all of what I am looking for. https://support.atlassian.com/jira-work-management/docs/jql-developer-status/
Thanks
Hi @khenson
With the pull request merged trigger, please see these smart values to learn the name of the branch:
https://support.atlassian.com/cloud-automation/docs/jira-smart-values-development/#--Pull-request--
Kind regards,
Bill
Hi @khenson and welcome to the Community! Have you looked at the DevOps triggers in Automation Rules?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Laurie,
Yes. Though my issue lies with the IF statement. I am looking to do:
When: Pull Request Merged
If: (Commit branch = master)
Then: Update fixVersion to include 1.0.0
I assume I either need smart value or JQL, but have not been able to find the right query syntax Note that we currently use GitKraken. When following these instructions, I am not able to see the branch information.
Thank you,
KC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.