How to add watcher list to email templates?

Kevin Dalton May 6, 2016

We are working to modify our email templates and have included all the system fields at the bottom of each notification but user are asking to get a list of watchers as well.  Is this possible?  If so some assistance would be helpful.

1 answer

0 votes
Fidel Castro
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.
May 8, 2016

Hi Kevin,

You can use "Copy a parsed text to a field post-function" of JIRA Workflow Toolbox add-on in order to compose a text with the names of the watchers, and set a text custom field with it. Then you can include that field in your emails templates.

I show you the configuration you should use:

Captura de pantalla 2016-05-09 a las 10.16.05.png

Text to be parsed is:

"Current issue watchers are:" + toString(textOnStringList(toStringList(%{00133}), " " + userFullName(^%)))

Note that %{00133} is field code for Watchers.

Regards,

Fidel

Suggest an answer

Log in or Sign up to answer