public interface VersionRestClient
Modifier and Type | Method and Description |
---|---|
com.atlassian.util.concurrent.Promise<Version> |
createVersion(VersionInput version)
Creates a new version (which logically belongs to a project)
|
com.atlassian.util.concurrent.Promise<Integer> |
getNumUnresolvedIssues(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(URI versionUri)
Retrieves full information about selected project version
|
com.atlassian.util.concurrent.Promise<VersionRelatedIssuesCount> |
getVersionRelatedIssuesCount(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(URI versionUri,
VersionPosition versionPosition)
Moves selected version to another position.
|
com.atlassian.util.concurrent.Promise<Version> |
moveVersionAfter(URI versionUri,
URI afterVersionUri)
Moves selected version after another version.
|
com.atlassian.util.concurrent.Promise<Void> |
removeVersion(URI versionUri,
URI moveFixIssuesToVersionUri,
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(URI versionUri,
VersionInput versionInput)
Updates selected version with a new details.
|
com.atlassian.util.concurrent.Promise<Version> getVersion(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 createRestClientException
- in case of problems (connectivity, malformed messages, etc.)com.atlassian.util.concurrent.Promise<Version> updateVersion(URI versionUri, VersionInput versionInput)
versionUri
- full URI to the version to updateversionInput
- new details of the version. null
fields will be ignoredRestClientException
- in case of problems (connectivity, malformed messages, etc.)com.atlassian.util.concurrent.Promise<Void> removeVersion(URI versionUri, @Nullable URI moveFixIssuesToVersionUri, @Nullable 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(URI versionUri)
versionUri
- full URI to the version you want to get related issues count forRestClientException
- in case of problems (connectivity, malformed messages, etc.)com.atlassian.util.concurrent.Promise<Integer> getNumUnresolvedIssues(URI versionUri)
versionUri
- full URI to the version you want to get the number of unresolved issues forRestClientException
- in case of problems (connectivity, malformed messages, etc.)com.atlassian.util.concurrent.Promise<Version> moveVersionAfter(URI versionUri, 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 afterRestClientException
- in case of problems (connectivity, malformed messages, etc.)com.atlassian.util.concurrent.Promise<Version> moveVersion(URI versionUri, VersionPosition versionPosition)
versionUri
- full URI to the version to moveversionPosition
- defines a new position of selected versionRestClientException
- in case of problems (connectivity, malformed messages, etc.)Copyright © 2013 Atlassian. All Rights Reserved.