Forums

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

Get a count of linked issues with a particular status

Matt
Contributor
May 10, 2025

Hi, new to Jira Automation and can't figure out why my latest rule isn't working.  I'm trying to get a count of issues with a given status linked to my issue.  My rule is:

Screenshot 2025-05-10 at 14.44.29.png

If I search using the JQL manually then I get the correct count, but the rule above always returns 0 for {{lookupIssues.size}}.

I'm hoping that I'm missing something obvious.  Any help gratefully received!

2 answers

1 accepted

5 votes
Answer accepted
Trudy Claspill
Community Champion
May 10, 2025

Hello @Matt 

In your Lookup you have specified a project.

What is the project scope specified on the Rule Details page?

The Lookup action will be limited to retrieving issues that are in the projects specified in the rule's project scope.

If the project scope is a single project and that project is not CONTROL (the project in the JQL) then those issues cannot be retrieved.

Is that the same project as the trigger issue? If the trigger issue is in a different project then you will need to use a rule scoped for multiple projects.

Only Jira Administrators can manage rules scoped for multiple projects. That is done from the System / Global Automation page.

 

Matt
Contributor
May 11, 2025

Hi @Trudy Claspill.  Brilliant, that's solved my problem!  Thanks so much for the prompt response.

Like • 2 people like this
0 votes
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.
May 10, 2025 edited

Hi @Matt 

Please post an image of the audit log details showing the rule execution, with all the areas at the right side expanded, to provide context for what happened when the rule executed.  Thanks!

Kind regards,
Bill

Matt
Contributor
May 11, 2025 edited

Hi @Bill Sheboy, many thanks for responding and for the useful hint about supplying full details in future tickets (newbie error by me!).  Thanks again, much appreciated.

Like • Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events