Forums

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

{{lookupissues.size}} is zero while the associated JQL validates to 1

Dd
Contributor
July 6, 2023

Hi,

In automation, I perform a Then: lookup issues statement followed by if: Compare two values.

I compare {{lookupissues.size}} > 0.

When I validate the query in the LOOKUP statement I get 1. But in the IF it fails. It thinks that there are 0 issues (size=0).

Any ideas why? 

 

image.png

2 answers

2 votes
Hana Kučerová
Community Champion
July 6, 2023

Hi @Dd ,

please try to use Log action to check, whether {{lookupissues.size}} is really equal to 0.

https://support.atlassian.com/cloud-automation/docs/debug-an-automation-rule/

Please, who is the actor of the rule? Maybe this user cannot see the filter?

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.
July 6, 2023

Hi @Dd 

Adding to Hana's answer...

Please post images of your complete rule and of the audit log details showing the rule execution.  Those will provide context to help explain what you are observing.  Thanks!

Kind regards,
Bill

Dd
Contributor
July 16, 2023

I found a different solution to resolve my problem (some add-on) but now I need to recreate the issue.
Once I do - I'll post it

1 vote
Ojase Emmanuval
Community Champion
July 6, 2023

Hi @Dd

 

Can you please try using action --> If condition--> if-else condition-->Advanced compare condition. I could make it work with this way.

Thanks,

Ojase 

Suggest an answer

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

Atlassian Community Events