jira show watchers in email notification

Hi all,

I am trying to customize my email templates, and the one thing I would like to add would be to show who is watching an issue.  

Currently we have a JIRA created via email, and the user will CC other people.  The people then reply-all and a new issue is created, and on and on.  

If there was a way I could show who all was a watcher on the ticket then I believe I could train them to reply only to the JIRA email and not the original one.

We use html format for email and unfortunately $JIRA_INSTALL/atlassian-jira/WEB-INF/classes/templates/email/html/includes/fields does not have a watchers.vm

 

I tried to add this:

#set ($allWatchers = $watcherManager.getCurrentWatcherUsernames($issue))
#foreach ($aWatcherUsername in $allWatchers)
#set ($applicationUser = $userManager.getUserByName($aWatcherUsername))
- watcher userName: $aWatcherUsername , email = $applicationUser.getEmailAddress(),displayName = $applicationUser.getDisplayName()
#end

and I do not get anything.

Thanks!

Robert

 

1 answer

I wish someone could point me where to look on this, I may ask support....

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

76 views 0 5
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