I am trying to find a way to keep stakeholders informed about a JPD issue's progress, even if they weren't necessarily the creator of an Idea.
I've tested using the Watcher field and custom people picker fields, but I can't work out how to setup an email or comment automation that tags the correct people.
The email automation fails, and the comment automation lists out the emails or user names that are in Watchers however, it does not successfully tag them.
Has anyone found a workaround to this?
Hi @Claudia Pillay -- Welcome to the Atlassian Community!
For a question like this, please post 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. Those will provide context for the community to offer ideas. Thanks!
Until we see those...
To mention a user in a comment, the accountId is used. If you are getting those from a field like Watchers, multiple-selection fields contain a list of values. To mention all the watchers in a comment, iterate over the values:
watcher mentions: {{#issue.watchers.accountId}}[~accountId:{{.}}]{{^last}}, {{/}}{{/}}
If you are trying to email, and using a custom People field, that is not possible. At this time, People type fields in team-managed projects (TMP), including JPD, cannot access the email address. The only workaround I know of for JPD projects is to call the REST API with the accountId values to get the email address.
If your stakeholders are not Jira users, you could instead add a custom text field to store the email address, and then use that in the Send Email action.
Kind regards,
Bill
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.