Add or remove watchers
"Add or remove watchers" post-function allows users to added or removed from current issue's watchers list. This post-function uses fields, user groups or project roles user selection tools.
This is the configuration screen of this post-function:
Adding and Removing Watchers to and from Other Issues
Virtual fields "Watchers" and "New Watchers" allows to add new users as watchers or remove current watchers from any issue.
Post-functions Write field on linked issues or subtasks and Write field on issues returned by JQL Query or Issue List can be used for setting fields "Watchers" and "New Watchers in order to add / remove watchers from linked issues, subtasks, sibling subtasks and JQL or Issue List expression selected issues.
Adding New Watchers to Other Issues:
The simplest way to do it is to write into virtual field "New Watchers" the content of User, User Picker or Multi-User Picker field, or of a Text Field containing the name of a user or a comma separated list of user names.
Removing Selected Watchers from Other Issues:
Typically we do it 2 steps:
1. Compose a text using "Copy a parsed text to a field" post-function with the following format:
- user_name_1, user_name_2, user_name_3 and write it into an ephemeral string field, e.g., "Ephemeral string 1".
2. Then use post-functions Write field on linked issues or subtasks and Write field on issues returned by JQL Query or Issue List for writing the content of the ephemeral field into virtual field "Watchers".