public class Version extends Resource
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 |
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() |
protected Version(RestClient restclient, net.sf.json.JSONObject json)
restclient - REST client instancejson - JSON payloadpublic void mergeWith(Version version)
version - The version to mergepublic void copyTo(Project project)
project - The project the version will be copied topublic 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()
Copyright © 2014. All Rights Reserved.