automation - pull request merged

eric caprio 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

0 votes
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 Leaders.
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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events