Class Issue
java.lang.Object
com.atlassian.jira.rest.client.api.domain.BasicIssue
com.atlassian.jira.rest.client.api.domain.Issue
- All Implemented Interfaces:
AddressableEntity,ExpandableResource,IdentifiableEntity<Long>
Single JIRA issue
- Since:
- v0.1
-
Constructor Summary
ConstructorsConstructorDescriptionIssue(String summary, URI self, String key, Long id, BasicProject project, IssueType issueType, Status status, String description, BasicPriority priority, Resolution resolution, Collection<Attachment> attachments, User reporter, User assignee, org.joda.time.DateTime creationDate, org.joda.time.DateTime updateDate, org.joda.time.DateTime dueDate, Collection<Version> affectedVersions, Collection<Version> fixVersions, Collection<BasicComponent> components, TimeTracking timeTracking, Collection<IssueField> issueFields, Collection<Comment> comments, URI transitionsUri, Collection<IssueLink> issueLinks, BasicVotes votes, Collection<Worklog> worklogs, BasicWatchers watchers, Iterable<String> expandos, RelativeTask parentTask, Collection<RelativeTask> subtasks, Collection<ChangelogGroup> changelog, Operations operations, Set<String> labels) -
Method Summary
Modifier and TypeMethodDescriptionReturns changelog available for issues retrieved with CHANGELOG expanded.org.joda.time.DateTimeorg.joda.time.DateTimegetFieldByName(String name) This method returns the first field with specified name.Returns operations available/allowed for issues retrieved withIssueRestClient.Expandos.OPERATIONSexpanded.protected com.google.common.base.MoreObjects.ToStringHelperorg.joda.time.DateTimegetVotes()
-
Constructor Details
-
Issue
public Issue(String summary, URI self, String key, Long id, BasicProject project, IssueType issueType, Status status, String description, @Nullable BasicPriority priority, @Nullable Resolution resolution, Collection<Attachment> attachments, @Nullable User reporter, @Nullable User assignee, org.joda.time.DateTime creationDate, org.joda.time.DateTime updateDate, org.joda.time.DateTime dueDate, Collection<Version> affectedVersions, Collection<Version> fixVersions, Collection<BasicComponent> components, @Nullable TimeTracking timeTracking, Collection<IssueField> issueFields, Collection<Comment> comments, @Nullable URI transitionsUri, @Nullable Collection<IssueLink> issueLinks, BasicVotes votes, Collection<Worklog> worklogs, BasicWatchers watchers, Iterable<String> expandos, @Nullable RelativeTask parentTask, @Nullable Collection<RelativeTask> subtasks, @Nullable Collection<ChangelogGroup> changelog, @Nullable Operations operations, Set<String> labels)
-
-
Method Details
-
getStatus
-
getReporter
- Returns:
- reporter of this issue or
nullif this issue has no reporter
-
getAssignee
- Returns:
- assignee of this issue or
nullif this issue is unassigned.
-
getSummary
-
getPriority
- Returns:
- priority of this issue
-
getIssueLinks
- Returns:
- issue links for this issue (possibly nothing) or
nullwhen issue links are deactivated for this JIRA instance
-
getSubtasks
-
getParentTask
-
getFields
- Returns:
- fields inaccessible by concrete getter methods (e.g. all custom issueFields)
-
getField
- Parameters:
id- identifier of the field (inaccessible by concrete getter method)- Returns:
- field with given id, or
nullwhen no field with given id exists for this issue
-
getFieldByName
This method returns the first field with specified name. Names of fields in JIRA do not need to be unique. Therefore this method does not guarantee that you will get what you really want. It's added just for convenience. For identify fields you should use id rather than name.- Parameters:
name- name of the field.- Returns:
- the first field matching selected name or
nullwhen no field with given name exists for this issue
-
getExpandos
- Specified by:
getExpandosin interfaceExpandableResource
-
getIssueType
- Returns:
- issue type
-
getAttachments
- Returns:
- attachments of this issue
-
getAttachmentsUri
-
getWorklogUri
-
getComments
- Returns:
- comments for this issue
-
getCommentsUri
-
getProject
- Returns:
- project this issue belongs to
-
getVotes
- Returns:
nullwhen voting is disabled in JIRA
-
getWorklogs
-
getWatchers
- Returns:
nullwhen watching is disabled in JIRA
-
getFixVersions
-
getTransitionsUri
-
getAffectedVersions
-
getComponents
-
getLabels
-
getChangelog
Returns changelog available for issues retrieved with CHANGELOG expanded.- Returns:
- issue changelog or
nullif CHANGELOG has not been expanded or REST API on the server side does not serve this information (pre-5.0) - Since:
- com.atlassian.jira.rest.client.api 0.6, server 5.0
- See Also:
-
getOperations
Returns operations available/allowed for issues retrieved withIssueRestClient.Expandos.OPERATIONSexpanded.- Returns:
- issue operations or
nullifIssueRestClient.Expandos.OPERATIONShas not been expanded or REST API on the server side does not serve this information (pre-5.0) - Since:
- com.atlassian.jira.rest.client.api 2.0, server 5.0
- See Also:
-
getVotesUri
-
getResolution
-
getCreationDate
public org.joda.time.DateTime getCreationDate() -
getUpdateDate
public org.joda.time.DateTime getUpdateDate() -
getDueDate
public org.joda.time.DateTime getDueDate() -
getTimeTracking
-
getDescription
-
getToStringHelper
protected com.google.common.base.MoreObjects.ToStringHelper getToStringHelper()- Overrides:
getToStringHelperin classBasicIssue
-