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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.