{{lookupissues.size}} returns 0

Marc van Niekerk October 6, 2023

I cannot figure out why {{lookupissues.size}} returns 0 for me.

 

I have my rule set to manual trigger to test it and then have the following setup.

rule_setup.png

 

I know that if I run the JQL query on my ticket (substituting {{issue}} with the actual issue key ,I get 4 results

filter_result.png

the log then shows 0 for my {{lookupissues.size}} value:log.png

 

I am owner of the project and the rule is run using my account. I must be missing something obvious but not sure what

3 answers

1 accepted

2 votes
Answer accepted
Marc van Niekerk October 6, 2023

it was the scope. Opening the scope to the other projects that are involved fixed the issue

0 votes
Marc van Niekerk October 6, 2023

I think I might have found an explanation. my linked issues are in another project and i don't think that the lookup likes that

0 votes
Mikael Sandberg
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 6, 2023

The JQL that you are using is not returning any results and that is why {{lookupIssues.size}} is 0. {{issue}} is not returning the issue key, you need to use {{issue.key}} in order for it to work.

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

Hi @Mikael Sandberg 

FYI...Often for smart values in an expression like this, I think it uses the default attribute when one is not specified; that would be key for an issue.

As the defaults are not documented anywhere, I agree with you that using {{issue.key}} explicitly is better to avoid uncertainty  :^)

Kind regards,
Bill

Like Mikael Sandberg likes this

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