How to sync Assignee from JSM as a watcher in Jira?

Originally asked by Dhiren Notani on 07 February 2023 (original question)



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!