public class ComponentApi extends Object
| Constructor and Description |
|---|
ComponentApi(org.everit.http.restclient.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<Component> |
createComponent(Component component,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Create component
Creates a component.
|
io.reactivex.Completable |
deleteComponent(String id,
Optional<String> moveIssuesTo,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Delete component
Deletes a component.
|
io.reactivex.Single<Component> |
getComponent(String id,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get component
Returns a component.
|
io.reactivex.Single<ComponentIssuesCount> |
getComponentRelatedIssues(String id,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get component issues count
Returns the counts of issues assigned to the component.
|
io.reactivex.Single<Component> |
updateComponent(String id,
Component component,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Update component
Updates a component.
|
public ComponentApi(org.everit.http.restclient.RestClient restClient)
public io.reactivex.Single<Component> createComponent(Component component, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Creates a component. Use components to provide containers for issues within a project.
This operation can be accessed anonymously.
Permissions required: Administer projects project permission for the project in which the component is created or Administer Jira global permission.
component - (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 deleteComponent(String id, Optional<String> moveIssuesTo, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Deletes a component.
This operation can be accessed anonymously.
Permissions required: Administer projects project permission for the project containing the component or Administer Jira global permission.
id - The ID of the component.
(required)moveIssuesTo - The ID of the component to replace the deleted component. If this value is null no replacement is made.
(optional)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<Component> getComponent(String id, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Returns a component.
This operation can be accessed anonymously.
Permissions required: Browse projects project permission for project containing the component.
id - The ID of the component.
(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<ComponentIssuesCount> getComponentRelatedIssues(String id, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Returns the counts of issues assigned to the component.
This operation can be accessed anonymously.
Permissions required: None.
id - The ID of the component.
(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<Component> updateComponent(String id, Component component, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Updates a component. Any fields included in the request are overwritten. If leadAccountId is an empty string ("") the component lead is removed.
This operation can be accessed anonymously.
Permissions required: Administer projects project permission for the project containing the component or Administer Jira global permission.
id - The ID of the component.
(required)component - (required)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.