Forums

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

Jira Automation Smart value for projects list

Max Mykhailenko June 24, 2021

I have multi-projects automation, lookup issues inside and want to send email divided by several sections (one per project). Some pseudo code below

 

{{#projects}}

{{project.name}}

{{#lookupIssues}}
{{if project.key in key }}
*{{key}} {{summary}} {{url}}
{{/}}
{{/}}
{{/}}

 How I can get projects list here?

1 answer

2 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.
June 24, 2021

Hi @Max Mykhailenko 

What problem are you trying to solve with this automation?  It seems like a list of the issues in each project.

And...I do not believe there is a {{project}} smart value, and if you have more than 100 issues in a project, that Lookup Issues could only process the first 100.

Best regards,

Bill

Max Mykhailenko June 24, 2021

I have custom JQL with issues in specific status and I definitely know that issues amount will be less than 100. That status it’s call to action for project manager: check, define requirements or agree with customer. Create this automation in every project is very annoying. 

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.
June 24, 2021

Thanks for clarifying your scenario.

I believe that isn't possible unless you use separate rules in each project or use JQL for each project in a single global scope rule.  And there is no generic looping structure in automation rules, so even if you had a project list you cannot make this generic.

Of note, global rule execution has execution count limits, so unless you are on the premium version this could use up your limit quickly.

Have you considered creating and testing a project-level rule, then as site admin copying it to each project which needs it?

Suggest an answer

Log in or Sign up to answer