Forums

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

Can you transition issues in lookupIssues?

brady.chambers
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 10, 2022

I have the results of a lookupIssues in automation that contains 5 or so issues.   I want to loop through those issues and if the status is open transition it to Ready.   Any thoughts on how I might do this.   I got to the point were I can loop through the lookupIssues but can't seem to figure out how to transition the issue with variable.

Jira.png

 

eachIssue is the variable that contains the information for the issues that I have lookedup and now I want to transition them if the Status is Open.   The above seems to work except for the last step.   The transition step now obviously transitions the issue in the flow not the issue identified by eachIssue.   Is there some way I can transition eachIssue that is an item from lookupIssues?

 

Thanks

brady

 

1 answer

1 accepted

5 votes
Answer accepted
brady.chambers
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 10, 2022

Sometimes just asking the question gets your brain in gear and you discover the solution.

 

Turns out to be incredibly simple....  Once you do your lookup then do a branch For JQL and use the key in  ( {{lookupIssues}} ) as your query.

Jira 2.png

John Funk
Community Champion
May 11, 2022

Well done, sir!

Ardhendu Shekhar Singh
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!
July 4, 2023

The above mentioned logic can also be used to transition a sub-task based on another sub-task's status. A Sample scenario could be: For each story the UAT has to be completed and while the UAT is being performed by a separate team, you can have a task to capture any kind of support provided for the UAT if any. However, there are times when no Support was required to close the UAT. In this scenario, people tend to leave the support task unattended. To ensure the Support task also gets transitioned, we can use above criteria. I will also provide the screenshot of the logic used by me:

Jira_automation.jpg 

Like John Funk likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events