The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 

automation - pull request merged

eric caprio
Contributor
February 21, 2025

Hi there,

I have automation built into our workflow of the below:

- task in progress

- assignee moves to code review and ensure Pr(s) have Id in it to automatically add into JIRA

- sub task code review is created to the parent task.

- once PR(s) are merged, code review sub task automatically closes and move parent task to QA -- then creates a sub task QA

The problem we are having is some tickets could have multiple PRs... once one is merged , the automation kicks off. Is there a way to update the rule to only do this if all PRs in the ticket are merged?

See below the current automation:

Screenshot 2025-02-21 at 11.41.15 AM.png 

See example of current ticket:

Screenshot 2025-02-21 at 11.42.11 AM.pngScreenshot 2025-02-21 at 11.42.20 AM.png

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
February 21, 2025

Hi @eric caprio 

First a disclaimer: I am not currently using a build pipeline with my Jira instance, and so cannot test my suggestions to verify them.  Instead my suggestions are based on what I know about automation rules.  With that out of the way...

For this scenario, once the rule is triggered on PR Merged, you want to check if there are any other open PRs for that same issue.  Unfortunately, I do not believe there is JQL support to do this for PRs yet.  Here is a related suggestion for the feature.

Have you considered calling the REST API for your pipeline tooling to check, using the automation Send Web Request action?

Kind regards,
Bill

eric caprio
Contributor
February 23, 2025

thank you @Bill Sheboy !

Like • Bill Sheboy likes this
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events