Display Watchers in email notification


I want to display Watchers list in Email notification, could anyone can help me how to change email template to get this,

I using Watcher Field Plugin and Multi Group Picker Custom Field.

I edit mail template and add this line: $issue.getCustomFieldValue("customfield_10600") but the value display like this:

[com.atlassian.crowd.embedded.ofbiz.OfBizUser@bffb9b38, com.atlassian.crowd.embedded.ofbiz.OfBizUser@14c9a8f7, com.atlassian.crowd.embedded.ofbiz.OfBizUser@3b55a641]

I also try the flow line of code, but not get any thing:

2- $issueManager.getIssueWatchers($issue)
3- $issueManager.getIssueWatchers($issue.getId())
4- $ComponentManager.getInstance().getIssueManager().getIssueWatchers($issue)

Could you please help me how to display watchers in email!!!

Thanks in advanced.

1 answer

1 accepted

This widget could not be displayed.

Try this. <<UNTESTED>>

#if ($issue.getCustomFieldValue("customfield_10600"))
  #foreach ($user in $issue.getCustomFieldValue("customfield_10600"))

it's worked!!!!

Thanks you very much!

My manager in previous company, a vocal advocate of RFT (Right First Time), would have been impressed ;)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 22, 2018 in Marketplace Apps

How a Marketplace app tech team is achieving gender diversity

Hello! My name is Genevieve Blanch, and I'm the Marketing Manager at RefinedWiki, creators of apps to give teams the tools to customize Atlassian platforms. Currently, 44% of the tech team at Re...

482 views 3 17
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you