Jira Automation - Send E-Mail with ALL due tasks

Lea Beckmann
Contributor
June 14, 2024

Hi there,

We use Jira Automation a lot to remind us of due tasks. I'm facing the problem that we get one email per task and I'd like to get one email with all due tasks in the next week (see JQL).

Does anyone know if this is possible and how?

JQL: project = "x" AND assignee = xx AND due < endOfWeek("+1") AND NOT status="done"

 

email-text:

Dear x, this is your reminder that your task ( {{issue.summary}} ) is due on {{issue.duedate}}. Here is the link to your task: {{issue.url}}

 

Thanks a lot!

2 answers

1 accepted

1 vote
Answer accepted
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 14, 2024

Hi Lea,

You will need to use the lookupIssues functionality. Take a look at this previous post for guidance. 

https://community.atlassian.com/t5/Jira-questions/Smart-Values-not-working-as-expected-creator-displayName-and/qaq-p/2679352

 

Lea Beckmann
Contributor
June 14, 2024

That sounds good - I tried it but it didn't really work, seems like I'm missing a step (or two):

1. Trigger (every Friday)

2. then: Lookup Issue -> project = "x" AND assignee = xx AND due < endOfWeek("+1") AND NOT status="done"

3. and: send email: Dear x, this is your reminder that your task {{lookupIssues.first.assignee.displayName}} is due on {{issue.duedate}}. Here is the link to your task: {{issue.url}}

 

Questions:

My second step finds every due task but it's not displayed in my sent email and what shall I enter in the bold marked variables?

 

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 14, 2024

Can you share a screenshot of the actual rule?

Lea Beckmann
Contributor
June 14, 2024

Jira Auto.PNG

(For security reasons, I have changed the email address)

John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 16, 2024

Can you share the details of the Send Email action? (The last step)

 

Lea Beckmann
Contributor
June 16, 2024

Sure Jira.PNG

Lea Beckmann
Contributor
June 19, 2024

I figured it out, the final mail looks like this:

Dear X,

This is your reminder that the following tasks are due next week:

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

Like vasanth likes this
0 votes
Jan Graeber
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 17, 2024

Just stumbled over this: 

Is the JQL working?

 

Last bit looks wrong to me, should be:

"AND status not in (done)"

 

 

Lea Beckmann
Contributor
June 17, 2024

yes, it works - I use it for a couple of automations

Like vasanth likes this

Suggest an answer

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

Atlassian Community Events