Forums

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

jira automation IF condition

Kirill Egorov
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!
August 19, 2025

Hello!

Can anyone explain why, when I tried to use the following construction

{{#lookupIssues}}
{{#issuelinks}}
{{#outwardIssue}}
{{#if(equals(status.name, “Done”))}}
{{key}}
{{/}}
{{/}}
{{/}}
{{/}}
it didn't work, I got an empty response, even though there is a task with the status Done among the tasks.

1 answer

1 accepted

3 votes
Answer accepted
Kirill Egorov
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!
August 20, 2025

I have resolved the issue.

Solution:

{{#lookupIssues}}
{{#issuelinks}}
{{#if(equals(type.name, “Cloners”))}}
{{#if(not(equals(outwardIssue.statusCategory.name, “Done”)))}}
{{outwardIssue}}
{{/}}
{{/}}
{{/}}
{{/}}

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.
August 20, 2025

Hi @Kirill Egorov -- Welcome to the Atlassian Community!

Well done solving your own question!

And as a tip...consider using this how-to article with an example work item to learn the structure of smart values such as issuelinks.  That will help identify what to test in filter conditions for lists of things.

https://support.atlassian.com/cloud-automation/docs/find-the-smart-value-for-a-field/

 

Kind regards,
Bill

Like # people like this

Suggest an answer

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

Atlassian Community Events