public class Issue extends BasicIssue implements ExpandableResource
Constructor and Description |
---|
Issue(String summary,
URI self,
String key,
Long id,
BasicProject project,
BasicIssueType issueType,
BasicStatus status,
String description,
BasicPriority priority,
BasicResolution 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,
Collection<Subtask> subtasks,
Collection<ChangelogGroup> changelog,
Set<String> labels) |
public Issue(String summary, URI self, String key, Long id, BasicProject project, BasicIssueType issueType, BasicStatus status, String description, @Nullable BasicPriority priority, @Nullable BasicResolution 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 Collection<Subtask> subtasks, @Nullable Collection<ChangelogGroup> changelog, Set<String> labels)
public BasicStatus getStatus()
@Nullable public User getReporter()
null
if this issue has no reporter@Nullable public User getAssignee()
null
if this issue is unassigned.public String getSummary()
@Nullable public BasicPriority getPriority()
@Nullable public Iterable<IssueLink> getIssueLinks()
null
when issue links are deactivated for this JIRA instancepublic Iterable<IssueField> getFields()
@Nullable public IssueField getField(String id)
id
- identifier of the field (inaccessible by concrete getter method)null
when no field with given id exists for this issue@Nullable public IssueField getFieldByName(String name)
name
- name of the field.null
when no field with given name exists for this issuepublic Iterable<String> getExpandos()
getExpandos
in interface ExpandableResource
public BasicIssueType getIssueType()
public Iterable<Attachment> getAttachments()
public URI getAttachmentsUri()
public URI getWorklogUri()
public URI getCommentsUri()
public BasicProject getProject()
@Nullable public BasicVotes getVotes()
null
@Nullable public BasicWatchers getWatchers()
null
when watching is disabled in JIRApublic Iterable<BasicComponent> getComponents()
@Nullable public Iterable<ChangelogGroup> getChangelog()
null
if CHANGELOG has not been expanded or REST API on the server side does not serve
this information (pre-5.0)IssueRestClient.getIssue(String, Iterable)
public URI getVotesUri()
@Nullable public BasicResolution getResolution()
public org.joda.time.DateTime getCreationDate()
public org.joda.time.DateTime getUpdateDate()
public org.joda.time.DateTime getDueDate()
@Nullable public TimeTracking getTimeTracking()
protected com.google.common.base.Objects.ToStringHelper getToStringHelper()
getToStringHelper
in class BasicIssue
Copyright © 2013 Atlassian. All Rights Reserved.