Forums

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

In automation like to chek the status of two issues linked status

Tanveer Zubair March 21, 2025

 

 

 

 

 

I am working on a Jira automation rule where I retrieve two issues that are linked through a branch issue. My goal is to verify whether both of these linked issues are in the “Complete” status before updating the status of the branch issue accordingly.

I have included the current automation rule and its corresponding log for your reference.

Specifically, I would like to confirm whether the outward linked issues are in the “Complete” state so that I can proceed with the next action.

I would greatly appreciate it if you could assist me with the appropriate JQL to incorporate into this automation.

 

 

Thank you image.pngimage.png

 

for your support.

1 answer

1 accepted

1 vote
Answer accepted
kiestone
Community Champion
March 21, 2025

Instead of looping through each issue, have you considered using a query (lookupIssues) to lookup the status of all of the linked issues.  You would either get no issues or issues returned depending on your query, which would allow you to determine whether to transition your ticket.

status != "Completed" and issue in linkedIssues(“{{issue.key}}”, “inward”)

I chose inward here, because you would be looking at the query from the other perspective.

Tanveer Zubair March 24, 2025

Hi Kiestone,

  Thanks for the suggestion to use lookupIssues, it resolved my problem.

Attaching theimage.png automation so it may help others.  Thanks

Suggest an answer

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

Atlassian Community Events