Hello team i would like to add watchers from 2 custom fields (user picker) .
I need your help please .
I use this code but it doesn't work.
import com.atlassian.jira.component.ComponentAccessor
def watcherManager = ComponentAccessor.getWatcherManager()
def userManager = ComponentAccessor.getUserManager()
def user = userManager.getUserObject("Michellee")
if (user) watcherManager.startWatching(user, issue.genericValue)
Regards