Forums

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

Sending one mail that captures inputs from all child issues

Sathishkumar Sundaram December 19, 2024

Hi All,

I have an Epic with 6 different child issues.

If I modify start date of an Epic, all my child issues dates gets adjusted by adding/subtracting that many number of days.

How do I send in one mail to capture the changes across all child from and to dates?

I tried a Message variable creating inside a For each children loop.

But this sends 6 messages with dates for each child task.

I want to send it only once, but a concatenated message across all child tasks based on the change "from date" to "to date".

Appreciate any help extended here.

Thanks,

1 answer

1 vote
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.
December 19, 2024

Hi @Sathishkumar Sundaram 

For a question like this, context is important for the community to help.  Please post the following:

  • what type of project is this (e.g., company-managed, team-managed, etc.), 
  • 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.

Until we see those...

When a rule is trying to send a single message including multiple issues, the Lookup Issues action is typically used: https://support.atlassian.com/cloud-automation/docs/jira-automation-actions/#Lookup-issues

However you describe also updating the issues, and so we will need to see your rule's specifics in order to suggest improvements.  Likely, this would include sending the email before the changes are made to avoid errors.

Kind regards,
Bill

Sathishkumar Sundaram December 19, 2024

Hi Bill,

Thanks for the inputs.

I will try to provide more details.

Type: Team managed.

Image is given below.

Requirement is when a start date changes from its prior value, we find the difference of (days of change) and add this to each one of its child tasks.

Screenshot 2024-12-19 212155.png

Below image shows the setup for iteration through children to adjust start date for each child. while we do this, we need to capture the old and new start dates in each child and send one single mail with a summary.

Screenshot 2024-12-19 214756.png

Summary should look like below:

Epic changed : Epic summary (epic key)

From <start date> To <start date>

Child 1 - summary - From <start date> To <start date>

Child 2 - summary - From <start date> To <start date>

...

Child 6 - summary - From <start date> To <start date>

This should be shared in a mail.

 

Audit Log looks like below:

Screenshot 2024-12-19 215135.png

I could send 6 different mails, but how to consolidate them to a single mail?

Please let me know if this is clear enough or if you have further questions.

Regards,

Sathish

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.
December 19, 2024

Thank you for that information.  To send one single email, please use the Lookup Issues action I noted:

  • remove the Send Email action from inside the branch
  • before the branch...
    • add a Lookup Issues action with JQL to find the child issues
    • add a Send Email action to list the issues, where...
      • the From date is the current child issue's date
      • the To date is the new, calculated date by incrementing the current one
  • ...rule continues to use the branch to update the child issues

 

Please note with this approach, when there are many child issues there could be a few seconds delay between when the email is sent and when the issues are updated.

Sathishkumar Sundaram December 19, 2024

Thanks Bill for the update, let me try this.

Got it on the Delay required to sync up the right summary.

Let me get back for any further questions. Good Day...

Regards,

Sathish

Suggest an answer

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

Atlassian Community Events