public class NotificationSchemeApi extends Object
| Constructor and Description |
|---|
NotificationSchemeApi(org.everit.http.restclient.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<NotificationScheme> |
getNotificationScheme(Long id,
Optional<String> expand,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get notification scheme
Returns a notification scheme, including the list of events and the recipients who will receive notifications for those events.
|
io.reactivex.Single<PageBeanNotificationScheme> |
getNotificationSchemes(Optional<Long> startAt,
Optional<Integer> maxResults,
Optional<String> expand,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get notification schemes paginated
Returns a paginated list of notification schemes in order by display name.
|
public NotificationSchemeApi(org.everit.http.restclient.RestClient restClient)
public io.reactivex.Single<NotificationScheme> getNotificationScheme(Long id, Optional<String> expand, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Returns a notification scheme, including the list of events and the recipients who will receive notifications for those events.
Permissions required: Permission to access Jira, however the user must have permission to administer at least one project associated with the notification scheme.
id - The ID of the notification scheme. Use Get notification schemes paginated to get a list of notification scheme IDs.
(required)expand - Use expand to include additional information in the response. This parameter accepts multiple values separated by a comma:
all Returns all expandable information.field Returns information about any custom fields assigned to receive an event.group Returns information about any groups assigned to receive an event.notificationSchemeEvents Returns a list of event associations. This list is returned for all expandable information.projectRole Returns information about any project roles assigned to receive an event.user Returns information about any users assigned to receive an event.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<PageBeanNotificationScheme> getNotificationSchemes(Optional<Long> startAt, Optional<Integer> maxResults, Optional<String> expand, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Returns a paginated list of notification schemes in order by display name.
A notification scheme is a list of events and recipients who will receive notifications for those events. The list is contained within the notificationSchemeEvents object and contains pairs of events and notifications:
event Identifies the type of event. The events can be Jira system events or custom events.
notifications Identifies the recipients of notifications for each event. Recipients can be any of the following types:
CurrentAssigneeReporterCurrentUserProjectLeadComponentLeadUser (the parameter is the user key)Group (the parameter is the group name)ProjectRole (the parameter is the project role ID)EmailAddressAllWatchersUserCustomField (the parameter is the ID of the custom field)GroupCustomField(the parameter is the ID of the custom field)Note that you should allow for events without recipients to appear in responses.
Permissions required: Permission to access Jira, however the user must have permission to administer at least one project associated with a notification scheme for it to be returned.
startAt - The index of the first item to return in a page of results (page offset).
(optional, default to 0l)maxResults - The maximum number of items to return per page. The maximum is 50.
expand - Use expand to include additional information in the response. This parameter accepts multiple values separated by a comma:
all Returns all expandable information.field Returns information about any custom fields assigned to receive an event.group Returns information about any groups assigned to receive an event.notificationSchemeEvents Returns a list of event associations. This list is returned for all expandable information.projectRole Returns information about any project roles assigned to receive an event.user Returns information about any users assigned to receive an event.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.