public class Issue extends AgileResource
ATTR_ID, ATTR_NAME, ATTR_SELF, RESOURCE_URI| Constructor and Description |
|---|
Issue(RestClient restclient,
net.sf.json.JSONObject json)
Creates a new Agile Issue resource.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
deserialize(net.sf.json.JSONObject json)
Deserialize the json to extract standard attributes and keep a reference of
other attributes.
|
static Issue |
get(RestClient restclient,
long id)
Retrieves the issue matching the ID.
|
static Issue |
get(RestClient restclient,
String key)
Retrieves the issue matching the ID.
|
User |
getAssignee() |
List<Sprint> |
getClosedSprints() |
List<Comment> |
getComments() |
Date |
getCreated() |
User |
getCreator() |
String |
getDescription() |
String |
getEnvironment() |
Epic |
getEpic() |
IssueType |
getIssueType() |
String |
getKey() |
Priority |
getPriority() |
Project |
getProject() |
User |
getReporter() |
Resolution |
getResolution() |
Sprint |
getSprint() |
Status |
getStatus() |
TimeTracking |
getTimeTracking() |
Date |
getUpdated() |
List<Worklog> |
getWorklogs() |
boolean |
isFlagged() |
getAttribute, getId, getName, getResource, getResourceArray, getRestclient, getSelfURL, toStringpublic Issue(RestClient restclient, net.sf.json.JSONObject json) throws JiraException
restclient - REST client instancejson - JSON payloadJiraExceptionpublic static Issue get(RestClient restclient, long id) throws JiraException
restclient - REST client instanceid - Internal JIRA ID of the issueJiraException - when the retrieval failspublic static Issue get(RestClient restclient, String key) throws JiraException
restclient - REST client instancekey - JIRA key of the issueJiraException - when the retrieval failsprotected void deserialize(net.sf.json.JSONObject json)
throws JiraException
AgileResourcejson - The JSON object to read.JiraExceptionpublic String getKey()
public boolean isFlagged()
public Sprint getSprint()
public String getDescription()
public Project getProject()
public Epic getEpic()
public TimeTracking getTimeTracking()
public IssueType getIssueType()
public Status getStatus()
public Resolution getResolution()
public Date getCreated()
public Date getUpdated()
public Priority getPriority()
public User getAssignee()
public User getCreator()
public User getReporter()
public String getEnvironment()
Copyright © 2022. All rights reserved.