Hello,
in JIRA 7 i have a Groovy-Script which add a user to the watchlist after a transition.
now i want to remove this user after a transition from the watchlist.
here is the "add-user to watchlist-script":
def watcherManager = ComponentAccessor.getWatcherManager()
def userManager = ComponentAccessor.getUserManager()
def watchUsers = {usernames ->
usernames.each {
def user = userManager.getUserByKey(it.toString())
watcherManager.startWatching(user, issue)
}
}
def users = ["hrconfidential"]
watchUsers(users)
what is the way back?