How to change watchers based on the value of a custom field?

Eric Longoria
Contributor
June 22, 2017

I have a custom field on my issues named 'Discipline' with values like "Engineering", "Art", and "Design".  This field represents the deparment that will need to complete the work described in the issue.  Each of these departments has a lead defined in the project's roles. 

I want the department leads to receive notification emails on important events for the issues assigned to their department.  It would be great if I could make the department lead a watcher of an issue based on the value of the 'Discipline' custom field. 

Is there a way to change issue watchers based on the value of a custom field? 

1 answer

0 votes
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 26, 2024

Hi  @Eric Longoria ,

you can do that through a custom post function that set watcher based on custom field (you need to use a scripted post function with your own code or develop a custom plugin with a post function) or use scriptrunner behaviour that set watchers based on field value selection.

Fabio

Suggest an answer

Log in or Sign up to answer