Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

JIRA Watcher List

gil
Contributor
March 8, 2018

In JIRA 7.8, I use ScriptRunner to create a post function trigger.  When a user transitions from Open to In Progress, it will add a watcher to the watcher list. Everything works fine. I can remove this added user to the watcher list. However, if I transition back to Open, and then transition again to In Progress, this auto-added watcher cannot be removed from the watch list. The code to add user to the watcher list is as follows:

WatcherManager watcherManager = ComponentAccessor.getWatcherManager();
ApplicationUser user = ComponentAccessor.getUserManager().getUserByKey("testuser1");
watcherManager.startWatching(user, issue);

I even tried to remove that added user from the list, before going back to Open and to In Progress, still same problem.

1 answer

0 votes
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 8, 2018

Do you mean that you can not remove the user manually?

gil
Contributor
March 8, 2018

Correct.  No watcher can be removed when this happens.

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 8, 2018

Maybe, the user, under whom you are trying to remove watchers, does not have the manage watcher list permission for the project.

gil
Contributor
March 8, 2018

Yes this user has the manage watcher permission.

Suggest an answer

Log in or Sign up to answer