Execute action only once for all JQL results

Anastasia Cora (anco) May 10, 2019

I have a scheduled automation (in Automation for Jira Plugin).

Trigger:

- Cron Expression: 0 0 5 1/1 * ? * (At 05:00:00am, every day starting on the 1st, every month)

- JQL: "Organizations = null" (results in multiple tasks)

Action:

- Send Mail: Mail should contain a list of all results in the previously executed JQL query. My approach:

<ul>
{{#issues}}
<li>{{key}} - {{summary}}</li>
{{/}}
</ul>


The problem is that it sends out n Mails for all results of the JQL query, but I actually only want 1 E-Mail with the complete list of all results. How can I do this?

PS: I also tried using my JQL query as condition and not in the trigger configuration itself, but this is not possible because an Error pops up when publishing: 

The rule has been configured with components that require issues to be provided by the trigger. You need to use the option to run JQL to provide issues. The following components require issues: JQL condition

Thanks in advance.

1 answer

0 votes
Diego Cantor May 10, 2020

It seems this is not possible yet (*sigh*):

https://codebarrel.atlassian.net/browse/AUT-888

Anastasia Cora (anco) May 26, 2020

Oh okay, thanks for your input :) 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events