public class Version extends Resource
| Modifier and Type | Class and Description |
|---|---|
static class |
Version.FluentCreate
Used to chain fields to a create action.
|
apirev, DEFAULT_API_REV, id, restclient, self| Modifier | Constructor and Description |
|---|---|
protected |
Version(RestClient restclient,
net.sf.json.JSONObject json)
Creates a version from a JSON payload.
|
| Modifier and Type | Method and Description |
|---|---|
void |
copyTo(Project project)
Copies the version to the given project
|
static Version.FluentCreate |
create(RestClient restclient,
String project)
Creates a new JIRA Version.
|
static Version |
get(RestClient restclient,
String id)
Retrieves the given version record.
|
String |
getDescription() |
String |
getName() |
String |
getReleaseDate() |
boolean |
isArchived() |
boolean |
isReleased() |
void |
mergeWith(Version version)
Merges the given version with current version
|
String |
toString() |
getApiRev, getAuthUri, getBaseUri, getId, getSelf, getUrl, setApiRevprotected Version(RestClient restclient, net.sf.json.JSONObject json)
restclient - REST client instancejson - JSON payloadpublic void mergeWith(Version version) throws JiraException
version - The version to mergeJiraExceptionpublic void copyTo(Project project) throws JiraException
project - The project the version will be copied toJiraExceptionpublic static Version get(RestClient restclient, String id) throws JiraException
restclient - REST client instanceid - Internal JIRA ID of the versionJiraException - when the retrieval failspublic String getName()
public boolean isArchived()
public boolean isReleased()
public String getReleaseDate()
public String getDescription()
public static Version.FluentCreate create(RestClient restclient, String project)
restclient - REST client instanceproject - Key of the project to create the version inCopyright © 2022. All rights reserved.