in my plugin i want to write a methode that enables me to return the array of issue watcher
i want to know if it is possible to get the array of watcher
if yes, i hope if somebody could help me with this
thanks in advance,
import com.atlassian.jira.issue.watchers.WatcherManager; WatcherManager wm = ComponentAccessor.getWatcherManager(); List<String> watchers=wm.getCurrentWatcherUsernames(issue);
check this doc
https://docs.atlassian.com/jira/latest/com/atlassian/jira/issue/watchers/WatcherManager.html
excuse me rambanam but i want to have a coolection of users as this :
List<User> watchers;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How about this:
import com.atlassian.jira.issue.watchers.WatcherManager; import java.util.Locale; WatcherManager wm = ComponentAccessor.getWatcherManager(); Collection<User> watchers = wm.getCurrentWatchList(issue, Locale.ENGLISH);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
excuse me rambanam but i want to have a coolection of users as this :
List<User> watchers;
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.