Forums

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

Jira Automation – Transition issue to Done when all Azure DevOps pull requests are merged

Laurie Leclerc
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 6, 2026

Hi,

I’m trying to create a Jira automation that automatically transitions an issue to the “Done” status once all pull requests linked to the issue are merged.

Here’s my context:

  • Jira Cloud
  • Azure DevOps integration
  • Multiple pull requests can be linked to a single Jira issue
  • I only want the issue to transition when ALL related pull requests are merged (not just one)

What I’m looking for:

  • The best trigger/condition setup for this automation
  • How to validate that every linked PR is merged
  • Whether this is possible natively with Jira Automation and the Azure DevOps app, or if a workaround is required

I tried using the “Pull request merged” trigger, but it transitions the issue as soon as the first PR is merged instead of waiting for all PRs.

I also tried adding the following condition: {{issue.development.pullRequests.open.size}}, however, it does not seem to work with the Azure DevOps integration.

Has anyone successfully implemented this?

Thanks!

1 answer

1 vote
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.
May 6, 2026

Hi @Laurie Leclerc -- Welcome to the Atlassian Community!

Have you tried using the Pull Request Merged trigger, and following that with a Lookup Issues action with JQL, checking the development status information:

https://support.atlassian.com/jira-software-cloud/docs/jql-developer-status/

I recall others using that method from some other community questions.

 

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer