Forums

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

Jira Automation: Add the count of issues to version release email

Antonio Smith September 19, 2024

I am trying to return the count of issue types in my release automation email ut everything I've tried so far returns empty. What am I missing for this to return a count?

 

 

Release Metrics:

{{#lookupIssues}}

  • Tasks Completed: {{version.issuesCountByType.Task}}
  • Support Issues Resolved: {{version.issuesCountByType.Support}}
  • Bugs Fixed: {{version.issuesCountByType.Bug}}
  • Improvements Addressed: {{version.issuesCountByType.improvement}}
  • New Features Implemented: {{version.issuesCountByType.New Feature}}

{{/}}

2 answers

1 accepted

2 votes
Answer accepted
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.
September 19, 2024

Hi @Antonio Smith 

For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected. Those will provide context for the community to offer ideas. Thanks!

Until we see those...

I am not familiar with "issuesCountByType".  Where did you see that smart value?

If you are trying to count the issues within the Lookup Issues for a specific Issue Type you may use a math expression and conditional filtering.  For example:

{{#=}}0{{#lookupIssues}}{{#if(equals(issuetype.name,"Task"))}}+1{{/}}{{/}}{{/}}

That expression would count the Task issues in the lookup result, with a default count of 0.

Kind regards,
Bill

Antonio Smith September 20, 2024

Thank you Bill. The expression and filtering is just what I needed. 

Like Bill Sheboy likes this
2 votes
Mohamed Benziane
Community Champion
September 19, 2024

Hi,

you can use the lookupissue function with the size parameter. Use it with a jql that will retrieve all issue which have the version released.

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
atlassian, confluence, loom, atlassian intelligence, ai notes, ai-powered meeting notes, atlassian community events, ace, confluence ai, loom ai integration, ai note-taking, atlassian ai features, team '25, atlassian live learning, confluence automation

Unlock AI-powered meeting notes: Join our live learning session! 📹

Did you catch the news at Team ‘25? With Loom, Confluence, Atlassian Intelligence, & even Jira 👀, you won’t have to worry about taking meeting notes again… unless you want to. Join us to explore the beta & discover a new way to boost meeting productivity.

Register today!
AUG Leaders

Atlassian Community Events