Display Watchers in email notification

ThanhLT thanh_ly21@yahoo.com August 5, 2012

Hi,

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

1 vote
Answer accepted
Jobin Kuruvilla [Adaptavist]
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.
August 5, 2012

Try this. <<UNTESTED>>

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

ThanhLT thanh_ly21@yahoo.com August 6, 2012

it's worked!!!!

Thanks you very much!

Jobin Kuruvilla [Adaptavist]
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.
August 6, 2012

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
TAGS
AUG Leaders

Atlassian Community Events