How to set up JIRA Automation to send 1 email of list of overdue items to PMs and PMMs?

JD June 21, 2024

Hi,

 

I want to set up automation to send 1 email with a list of overdue items to both the PM and the PMM listed in the initiative. Is something like this possible?

For example, let's say the project is called 'CORE' and the following keys/items are overdue:

  • CORE-101:
    • PM: Lola Lee
    • PMM: Mark Zuck
  • CORE-230:
    • PM: Lola Lee
    • PMM: John Smith
  • CORE-777:
    • PM: Edward Cullen
    • PMM: Ron Weasley
  • CORE 808:
    • PM: Jane Doe
    • PMM: Ron Weasley
  • CORE-909:
    • PM: Jane Doe
    • PMM: John Smith

Am I able to send 1 email with a summary list to PM Lola that shows CORE-101 and CORE-230 as overdue items that need to be updated and auto-include the respective PMMs (Mark Zuck and John Smith) in that same email?

If so, what steps do I need to take? Screenshots would be appreciated! Thanks in advance! 

2 answers

1 accepted

0 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.
June 22, 2024

Hi @JD -- Welcome to the Atlassian Community!

There are several ways to solve this:

 

You asked about doing this with an automation rule.  Although this question has been asked many times, there is a slight variation to your scenario as you also want to notify the people in the PMM field.

What have you tried thus far to solve this need? 

  • If you have created a rule and it is not working, please post images of your rule, actions, and the audit log details, and explain what does not work as expected.  Those will provide context for the community to help.
  • If you have not started a rule, I encourage trying to do so.  Successfully using automation rules requires learning and experimentation.  Just using a rule provided by others without understanding it will make it difficult to maintain and improve.  Please review this information to get started: https://support.atlassian.com/cloud-automation/docs/jira-cloud-automation/

 

To help get you started on your rule...

What type of project is this: company-managed or team-managed?  You may find that information at the bottom-left of the screen expanding area.

If you are using a team-managed project, and the PM and PMM fields are People fields, the email address will not be available to the rule: https://jira.atlassian.com/browse/AUTO-519  The workaround for this is to ask your Jira Site Admin add a company-managed custom user fields for use as PM and PMM.

Let's assume that is all resolved, or you are using a company-managed project.  Here is an outline and some steps to help with the rule.

  • trigger: scheduled, with no JQL
  • action: lookup issues, with JQL to find any overdue issues, based on what criteria you use to decide that
  • smart value condition: check if {{lookupIssues.size|0}} is greater than 0 
  • advanced branch: use an advanced branch to loop over the distinct PM values
    • name: varPM
    • smart value: {{lookupIssues.PM.distinct}}
      • action: lookup issues again, with the same JQL, and adding to the end to filter on the PM with AND PM = {{varPM.accountId}}
      • action: send email
        • The email recipient will be:
          • {{lookupIssues.first.PM.emailAddress}}
        • But you want to also notify the PMM, and so the other email addresses to include will be:
          • {{lookupIssues.PMM.emailAddress.distinct}}

 

Kind regards,
Bill

JD June 24, 2024

Thank you so much Bill! I will test this method! 

JD June 26, 2024

This worked great! Thanks so much Bill :) Will also be using this for other automation rules

Like Bill Sheboy likes this
0 votes
Luis Felipe Studzinski Santos June 21, 2024

Hi,

My suggestion would be to create a filter like this "project = "SKP" and duedate >= now() and statusCategory != Done ORDER BY due ASC", or whatever is most appropriate, and create a subscription management for the filter. The recipient group can be created in Jira with the users who should receive the email.

 

issue due date.pngissue overdue.pngoverdue subs.png

This will be the list of overdue issues that will be sent to the email

resposta.png

This suggestion does not use automation and can be implemented for several sending intervals.

I hope this helps

 

JD June 24, 2024

Thanks so much Luis! For the subscription, would it send all issues to the people subscribed? Or can you customize it to make only applicable issues send to the applicable people?

Suggest an answer

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

Atlassian Community Events