public class IssueWatchersApi extends Object
| Constructor and Description |
|---|
IssueWatchersApi(org.everit.http.restclient.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<Object> |
addWatcher(String issueIdOrKey,
String body,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Add watcher
Adds a user as a watcher of an issue by passing the account ID of the user.
|
io.reactivex.Single<Watchers> |
getIssueWatchers(String issueIdOrKey,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get issue watchers
Returns the watchers for an issue.
|
io.reactivex.Completable |
removeWatcher(String issueIdOrKey,
Optional<String> username,
Optional<String> accountId,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Delete watcher
Deletes a user as a watcher of an issue.
|
public IssueWatchersApi(org.everit.http.restclient.RestClient restClient)
public io.reactivex.Single<Object> addWatcher(String issueIdOrKey, String body, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
issueIdOrKey - The ID or key of the issue. (required)body - The account ID of the user. Note that username cannot be used due to privacy changes. (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Single<Watchers> getIssueWatchers(String issueIdOrKey, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
issueIdOrKey - The ID or key of the issue. (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
public io.reactivex.Completable removeWatcher(String issueIdOrKey, Optional<String> username, Optional<String> accountId, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
issueIdOrKey - The ID or key of the issue. (required)username - This parameter is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details. (optional)accountId - The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*. Required. (optional)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
Copyright © 2011–2021 Everit Kft.. All rights reserved.