|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface VersionRestClient
The com.atlassian.jira.rest.client.api responsible for Project version(s) related operations
Method Summary | |
---|---|
com.atlassian.util.concurrent.Promise<Version> |
createVersion(VersionInput version)
Creates a new version (which logically belongs to a project) |
com.atlassian.util.concurrent.Promise<java.lang.Integer> |
getNumUnresolvedIssues(java.net.URI versionUri)
Retrieves number of unresolved issues which have their Fix Version(s) field pointing to given version. |
com.atlassian.util.concurrent.Promise<Version> |
getVersion(java.net.URI versionUri)
Retrieves full information about selected project version |
com.atlassian.util.concurrent.Promise<VersionRelatedIssuesCount> |
getVersionRelatedIssuesCount(java.net.URI versionUri)
Retrieves basic statistics about issues which have their Fix Version(s) or Affects Version(s) field pointing to given version. |
com.atlassian.util.concurrent.Promise<Version> |
moveVersion(java.net.URI versionUri,
VersionPosition versionPosition)
Moves selected version to another position. |
com.atlassian.util.concurrent.Promise<Version> |
moveVersionAfter(java.net.URI versionUri,
java.net.URI afterVersionUri)
Moves selected version after another version. |
com.atlassian.util.concurrent.Promise<java.lang.Void> |
removeVersion(java.net.URI versionUri,
java.net.URI moveFixIssuesToVersionUri,
java.net.URI moveAffectedIssuesToVersionUri)
Removes selected version optionally changing Fix Version(s) and/or Affects Version(s) fields of related issues. |
com.atlassian.util.concurrent.Promise<Version> |
updateVersion(java.net.URI versionUri,
VersionInput versionInput)
Updates selected version with a new details. |
Method Detail |
---|
com.atlassian.util.concurrent.Promise<Version> getVersion(java.net.URI versionUri)
versionUri
- URI of the version to retrieve. You can get it for example from Project or it can be
referenced from an issue.
RestClientException
- in case of problems (connectivity, malformed messages, etc.)com.atlassian.util.concurrent.Promise<Version> createVersion(VersionInput version)
version
- details about version to create
RestClientException
- in case of problems (connectivity, malformed messages, etc.)com.atlassian.util.concurrent.Promise<Version> updateVersion(java.net.URI versionUri, VersionInput versionInput)
versionUri
- full URI to the version to updateversionInput
- new details of the version. null
fields will be ignored
RestClientException
- in case of problems (connectivity, malformed messages, etc.)com.atlassian.util.concurrent.Promise<java.lang.Void> removeVersion(java.net.URI versionUri, @Nullable java.net.URI moveFixIssuesToVersionUri, @Nullable java.net.URI moveAffectedIssuesToVersionUri)
versionUri
- full URI to the version to removemoveFixIssuesToVersionUri
- URI of the version to which issues should have now set their Fix Version(s)
field instead of the just removed version. Use null
to simply clear Fix Version(s) in all those issues
where the version removed was referenced.moveAffectedIssuesToVersionUri
- URI of the version to which issues should have now set their Affects Version(s)
field instead of the just removed version. Use null
to simply clear Affects Version(s) in all those issues
where the version removed was referenced.
RestClientException
- in case of problems (connectivity, malformed messages, etc.)com.atlassian.util.concurrent.Promise<VersionRelatedIssuesCount> getVersionRelatedIssuesCount(java.net.URI versionUri)
versionUri
- full URI to the version you want to get related issues count for
RestClientException
- in case of problems (connectivity, malformed messages, etc.)com.atlassian.util.concurrent.Promise<java.lang.Integer> getNumUnresolvedIssues(java.net.URI versionUri)
versionUri
- full URI to the version you want to get the number of unresolved issues for
RestClientException
- in case of problems (connectivity, malformed messages, etc.)com.atlassian.util.concurrent.Promise<Version> moveVersionAfter(java.net.URI versionUri, java.net.URI afterVersionUri)
afterVersionUri
) then
such call has no visual effect.
versionUri
- full URI to the version to moveafterVersionUri
- URI of the version to move selected version after
RestClientException
- in case of problems (connectivity, malformed messages, etc.)com.atlassian.util.concurrent.Promise<Version> moveVersion(java.net.URI versionUri, VersionPosition versionPosition)
versionUri
- full URI to the version to moveversionPosition
- defines a new position of selected version
RestClientException
- in case of problems (connectivity, malformed messages, etc.)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |