public class ProjectVersionsApi extends Object
| Constructor and Description |
|---|
ProjectVersionsApi(org.everit.http.restclient.RestClient restClient) |
| Modifier and Type | Method and Description |
|---|---|
io.reactivex.Single<Version> |
createVersion(Version version,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Create version
Creates a project version.
|
io.reactivex.Single<Object> |
deleteAndReplaceVersion(String id,
DeleteAndReplaceVersionBean deleteAndReplaceVersionBean,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Delete and replace version
Deletes a project version.
|
io.reactivex.Completable |
deleteVersion(String id,
Optional<String> moveFixIssuesTo,
Optional<String> moveAffectedIssuesTo,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Deprecated.
|
io.reactivex.Single<List<Version>> |
getProjectVersions(String projectIdOrKey,
Optional<String> expand,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get project versions
Returns all versions in a project.
|
io.reactivex.Single<PageBeanVersion> |
getProjectVersionsPaginated(String projectIdOrKey,
Optional<Long> startAt,
Optional<Integer> maxResults,
Optional<String> orderBy,
Optional<String> query,
Optional<String> status,
Optional<String> expand,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get project versions paginated
Returns a [paginated](#pagination) list of all versions in a project.
|
io.reactivex.Single<Version> |
getVersion(String id,
Optional<String> expand,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get version
Returns a project version.
|
io.reactivex.Single<VersionIssueCounts> |
getVersionRelatedIssues(String id,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get version's related issues count
Returns the following counts for a version: * Number of issues where the `fixVersion` is set to the version
|
io.reactivex.Single<VersionUnresolvedIssuesCount> |
getVersionUnresolvedIssues(String id,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Get version's unresolved issues count
Returns counts of the issues and unresolved issues for the project version.
|
io.reactivex.Single<Object> |
mergeVersions(String id,
String moveIssuesTo,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Merge versions
Merges two project versions.
|
io.reactivex.Single<Version> |
moveVersion(String id,
VersionMoveBean versionMoveBean,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Move version
Modifies the version's sequence within the project, which affects the display order of the versions in Jira.
|
io.reactivex.Single<Version> |
updateVersion(String id,
Version version,
Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
Update version
Updates a project version.
|
public ProjectVersionsApi(org.everit.http.restclient.RestClient restClient)
public io.reactivex.Single<Version> createVersion(Version version, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
version - (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<Object> deleteAndReplaceVersion(String id, DeleteAndReplaceVersionBean deleteAndReplaceVersionBean, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - The ID of the version. (required)deleteAndReplaceVersionBean - (required)restRequestEnhancer - Adds the possibility to modify the rest request before sending out. This can be useful to add authorizations tokens for example.
@Deprecated public io.reactivex.Completable deleteVersion(String id, Optional<String> moveFixIssuesTo, Optional<String> moveAffectedIssuesTo, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - The ID of the version. (required)moveFixIssuesTo - The ID of the version to update `fixVersion` to when the field contains the deleted version. The replacement version must be in the same project as the version being deleted and cannot be the version being deleted. (optional)moveAffectedIssuesTo - The ID of the version to update `affectedVersion` to when the field contains the deleted version. The replacement version must be in the same project as the version being deleted and cannot be the version being deleted. (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<List<Version>> getProjectVersions(String projectIdOrKey, Optional<String> expand, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
projectIdOrKey - The project ID or project key (case sensitive). (required)expand - Use [expand](#expansion) to include additional information in the response. This parameter accepts `operations`, which returns actions that can be performed on the version. (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<PageBeanVersion> getProjectVersionsPaginated(String projectIdOrKey, Optional<Long> startAt, Optional<Integer> maxResults, Optional<String> orderBy, Optional<String> query, Optional<String> status, Optional<String> expand, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
projectIdOrKey - The project ID or project key (case sensitive). (required)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. (optional, default to 50)orderBy - [Order](#ordering) the results by a field: * `description` Sorts by version description. * `name` Sorts by version name. * `releaseDate` Sorts by release date, starting with the oldest date. Versions with no release date are listed last. * `sequence` Sorts by the order of appearance in the user interface. * `startDate` Sorts by start date, starting with the oldest date. Versions with no start date are listed last. (optional)query - Filter the results using a literal string. Versions with matching `name` or `description` are returned (case insensitive). (optional)status - A list of status values used to filter the results by version status. This parameter accepts a comma-separated list. The status values are `released`, `unreleased`, and `archived`. (optional)expand - Use [expand](#expansion) to include additional information in the response. This parameter accepts a comma-separated list. Expand options include: * `issuesstatus` Returns the number of issues in each status category for each version. * `operations` Returns actions that can be performed on the specified version. (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<Version> getVersion(String id, Optional<String> expand, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - The ID of the version. (required)expand - Use [expand](#expansion) to include additional information about version in the response. This parameter accepts a comma-separated list. Expand options include: * `operations` Returns the list of operations available for this version. * `issuesstatus` Returns the count of issues in this version for each of the status categories *to do*, *in progress*, *done*, and *unmapped*. The *unmapped* property represents the number of issues with a status other than *to do*, *in progress*, and *done*. (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<VersionIssueCounts> getVersionRelatedIssues(String id, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - The ID of the version. (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<VersionUnresolvedIssuesCount> getVersionUnresolvedIssues(String id, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - The ID of the version. (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<Object> mergeVersions(String id, String moveIssuesTo, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - The ID of the version to delete. (required)moveIssuesTo - The ID of the version to merge into. (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<Version> moveVersion(String id, VersionMoveBean versionMoveBean, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - The ID of the version to be moved. (required)versionMoveBean - (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<Version> updateVersion(String id, Version version, Optional<org.everit.http.restclient.RestRequestEnhancer> restRequestEnhancer)
id - The ID of the version. (required)version - (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.