com.atlassian.jira.rest.v2.issue.watcher
Interface WatcherOps


public interface WatcherOps

This interface specifies the methods available for watcher-specific functionality in the REST plugin.

Since:
v4.2

Method Summary
 WatchersBean getWatcherCount(Issue issue, com.atlassian.crowd.embedded.api.User remoteUser)
          Retrieves a WatchersBean with only the count, not the full list of watcher users.
 WatchersBean getWatchers(Issue issue, com.atlassian.crowd.embedded.api.User remoteUser)
          Retrieves a WatchersBean for the given Issue on behalf of a remote user.
 

Method Detail

getWatchers

WatchersBean getWatchers(Issue issue,
                         com.atlassian.crowd.embedded.api.User remoteUser)
Retrieves a WatchersBean for the given Issue on behalf of a remote user.

Parameters:
issue - an Issue
remoteUser - a User representing the remote user
Returns:
a WatchersBean

getWatcherCount

WatchersBean getWatcherCount(Issue issue,
                             com.atlassian.crowd.embedded.api.User remoteUser)
Retrieves a WatchersBean with only the count, not the full list of watcher users.

Parameters:
issue - an Issue
remoteUser - the remote user
Returns:
a WatchersBean with only the count


Copyright © 2002-2012 Atlassian. All Rights Reserved.