Forums

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

Is there a way to create a variable and append summary of project changes to it?

Jayanth
Contributor
September 24, 2024

I am currently creating an automation for collecting all comments in each ticket and putting them together as a summary to trigger an email. I can achieve this, but for each comment in the ticket, I am receiving separate emails instead of having all comments clubbed together in one email. Therefore, I want to create a text variable, append the comments to that variable, and display that variable in the email. Is there a way to do this?

2 answers

1 accepted

1 vote
Answer accepted
David Freitez
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.
September 24, 2024

Hi @Jayanth ,

If what you need is to send an email with all the comments,  you can directly use a SmartValue to get all the comments and send them like in the image I am attaching.

AutomationRule1.PNG

This way you´d have only one email with all the comments. 

Hopefully this helps you solve the issue you are having.

Regards,
David
ServiceRocket

 

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.
September 24, 2024

Hi @Jayanth -- Welcome to the Atlassian Community!

I am assuming you mean a Jira Automation rule.  Is that correct?

If so...please post an image of your complete rule and of the audit log details.  Those will provide context for the community to offer suggestions.

Until we see those...

There is no need to create a variable as the comments could be iterated and sent in a single email: https://support.atlassian.com/cloud-automation/docs/jira-smart-values-lists/#Combined-function-examples

However I am unclear on what problem you are trying to solve by doing this.  The comments could become quite long over time and so that email would be large.  What are you trying to accomplish and "why" do that?

Kind regards,
Bill

Jayanth
Contributor
September 24, 2024

Hi @Bill Sheboy 

I am creating a summary report of all the changes that have occurred in a day and sending it as an email. Currently, I am receiving multiple emails (one for each comment on an issue). Instead, I want to receive a single email summarizing all the changes.

 

Regards,

Jayanth

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.
September 25, 2024

Thanks for that information.  You could iterate over the comments, as I noted earlier, and use smart value, list filtering so only the comments for the last day are included: https://community.atlassian.com/t5/Automation-articles/Filtering-smart-value-lists/ba-p/1827588

Suggest an answer

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

Atlassian Community Events