Can I add watchers based on a custom field?

I have a custom field that lists different teams that would be affected by a new ticket. I'd like to set up the notifications so that when a specific team is chosen from the list, a certain set of watchers are automatically added to the ticket. Is this possible?

2 answers

This widget could not be displayed.

Hi Emily,

You can use the script runner plugin and WatcherManager to add watchers to the issue based on a custom field value

https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner

http://docs.atlassian.com/jira/latest/com/atlassian/jira/issue/watchers/WatcherManager.html

Oops sorry didn't notice the OnDemand

How would you do this on Download jira?

This widget could not be displayed.

I'm not sure if you can use the Script Runner in OnDemand, but you should be able to add any user/group picker to the notification scheme - this way any user in the custom field will be notified for the events you configure.

Thank you both!

Matheus, I think that I follow you but let me know if I've misunderstood. If I do it that way with having a custom group picker field and then defining my watchers as specific groups, I believe that I lose the ability to limit what appears on the list. Won't the custom field dropdown display all of the existing groups?

I like to make this field available when creating all new tickets in a project so I'd prefer to keep it fairly restricted with what appears in the dropdown.

Won't the custom field dropdown display all of the existing groups?

I'm afraid that all groups will indeed be displayed in the Group Picker.

I've also tested using a post-function to copy the value of a custom field to Watchers, but with no luck. :/

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

158 views 2 0
Join discussion

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