hi Community,
I'm looking for assistance of writing a script (via Scriptrunner) to add Component Watchers to the Watchers field in a post function of Create step. For example, Component A has Watcher1 and Watcher2, when Component A is selected in an issue, Watcher1 and Watcher2 (of Component A) should be added to (the issue) Watchers field automatically. I've looked at this Testing Workflow Functions , which added the component's lead to the Watchers field, but not the Component Watchers. Any help will be appreciated!
JIRA Data Center Version: 8.5.6
Scriptrunner version: 6.5.0-p5
Henry