Forums

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

Add a comment for a reminder

Lori Milam
Contributor
October 29, 2024

I've been asked to add a comment to a JSM ticket after a reminder email is sent to pending approvers. They want to know who the email was sent to. Since the approvers field is multi-select, how can I get all the names in the pending approvers that got the email sent to them. I see all over the place how to send a reminder email, but I can't find any way to add a comment saying "the email was sent to Patty and Joe" or something along those lines.

1 answer

1 accepted

3 votes
Answer accepted
Joseph Chung Yin
Community Champion
October 29, 2024

@Lori Milam -

What do you use currently sending the reminder email?  If it done via automation rule, then you should modify the same rule to add in the issue comments.

Please advise, so we can better assist you.

Best, Joseph Chung Yin

Lori Milam
Contributor
October 29, 2024

Thank @Joseph Chung Yin . We currently send an email reminder to Pending Approvers in an automation. I realize I can add the additional step to add the comment, but the requestor is asking to list out who the email was sent to. I don't know how to get this information out of Pending Approvers to add to the comment. Am I missing something? I don't even really understand how this Pending Approvers group gets filled in the first place. Is this a system field? 

Joseph Chung Yin
Community Champion
October 29, 2024

@Lori Milam -

Unfortunately "Pending Approvers" (variable itself) is not referenceable in smartvalue directly.

However, here is an idea that you can explore into it more - I have not tried it out yet

General idea is to create a local variable and obtain all the approvers (traverse through the users list) and add each user's displayname into the local variable.  Afterward, use the variable in your comments

To get approver displayname will be something like - {{issue.customfield_ID.approvers.get(0).approver.get(1).displayName}} 

Essentially - you will be dealing with a "List" - take a look at Smart Values syntax for list processing - 

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-lists/

Hope this helps.

Best, Joseph 

Like Lori Milam likes this
Lori Milam
Contributor
October 30, 2024

Thank you Joseph.

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