Forums

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

Loop in Jira automation

Mani Kumar
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!
January 30, 2026

Hello I am trying do something like:
versions = version1, version2, version3, version4, version5;

for version in versions:
  if version = requiredVersion1
    update status;
 elif version = requiredversion2
    add label;
else
  send email;

Is it possible to achieve similar result with Jira Automation, can someone help me please with example how to do it.

Thank you in advance


1 answer

4 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 Champions.
January 30, 2026

Hi @Mani Kumar -- Welcome to the Atlassian Community!

Which version of Jira are you using: Cloud, Server, or Data Center?

With Cloud, automation rules have an Advanced Branch to loop over a list of value: https://support.atlassian.com/cloud-automation/docs/jira-automation-branches/#Advanced-branching

Please note well: branches over more than one thing process in parallel and asynchronously, so updating the same work item with a loop could have problems due to collisions.

 

For Server / Data Center, that branch type does not exist yet.  Instead, I rule would need to use two rules, where one has an Incoming Webhook Trigger and is called recursively.

 

Kind regards,
Bill

Aron Gombas _Midori_
Community Champion
February 2, 2026

Based on this topic's label, it must be Cloud related. If so, then I vote for using the "Advanced Branch" automation rule component.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events