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.
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
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.