LookupIssues: Smart variable can't be used to access issue properties. Show amount of results

Sergio Montávez January 27, 2021

Hi!

I have several JQL searches in a single rule and I have created a smart value variable out of each one of them: New, Closed and Immediate.

Each JQL returns a list of several issues. I need to accomplish two things:

  1. Show the url and summary of each one of the items within that list
  2. Show the amount of issues from each JQL

 

For the first one, I can get it with without the smart value variable writing the code below, but I achieve the same if I change the related lookupIssues by the related variable. How can I do so? Is it possible?

{{#lookupIssues}}
- {{url}} - {{summary}}
{{/}}

 

For the second one, I just simply don't know how to get the amount of issues from a single search.

 

Thank you!

1 answer

1 vote
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.
January 28, 2021

Hi @Sergio Montávez 

Have you tried to use {{lookupIssues.size|0}} to return the count of issues from the query?

The |0 part at the end handles cases without any returned issues.

Best regards,

Bill

Suggest an answer

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

Atlassian Community Events