Jira Cloud <> JSM: Assignee to Watcher

Originally asked by Sagi Gueta on 06 February 2023 (original question)


Hello,

I’d like to make a assignee of an issue in JSM instance to be assigned as a watcher in Jira instance.

I’ve found the implementation of Watcher to Watcher in documentation but changes that I’ve set to the script didn’t really help.

I guess it’s possible, but couldn’t find anything. Please help :smile:


Answer by Dhiren Notani on 07 February 2023

To do this please send the assignee from the Source side like this

replica.assignee = issue.assignee

Then you need to add the assignee as a watcher on the target like

issue.watchers += nodeHelper.getUserByEmail(replica.assignee.email)

Thanks!