Hi there, any script runner master would help us? We are new to script runner and we are trying to set assignee as a watcher:
import com.atlassian.jira.component.ComponentAccessor
def watcherManager = ComponentAccessor.getWatcherManager()
watcherManager.startWatching(issue.assignee, event.issue)
It says "no errors found" but while testing on the issue it doesnt work..any ideas to make it work?
Thank you!
Hello @Adéla Václavská
The syntax of the code looks fine as per the docs
Have you tried this code in the script console with a dummy issue object and some logging just to be sure that it's working and then add logging in the script listener as well.
Thank you for suggestion @Tarun Sapra any ideas for the dummy issue object, we are very beginners in terms of scripting
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.