com.atlassian.jira.rest.client.domain
Class Issue
java.lang.Object
com.atlassian.jira.rest.client.domain.BasicIssue
com.atlassian.jira.rest.client.domain.Issue
- All Implemented Interfaces:
- AddressableEntity, ExpandableResource
public class Issue
- extends BasicIssue
- implements ExpandableResource
Single JIRA issue
- Since:
- v0.1
Constructor Summary |
Issue(String summary,
URI self,
String key,
BasicProject project,
BasicIssueType issueType,
BasicStatus status,
BasicPriority priority,
BasicResolution resolution,
Collection<Attachment> attachments,
BasicUser reporter,
BasicUser assignee,
org.joda.time.DateTime creationDate,
org.joda.time.DateTime updateDate,
Collection<Version> affectedVersions,
Collection<Version> fixVersions,
Collection<BasicComponent> components,
TimeTracking timeTracking,
Collection<Field> fields,
Collection<Comment> comments,
URI transitionsUri,
Collection<IssueLink> issueLinks,
BasicVotes votes,
Collection<Worklog> worklogs,
BasicWatchers watchers,
Iterable<String> expandos)
|
Issue
public Issue(String summary,
URI self,
String key,
BasicProject project,
BasicIssueType issueType,
BasicStatus status,
@Nullable
BasicPriority priority,
@Nullable
BasicResolution resolution,
Collection<Attachment> attachments,
@Nullable
BasicUser reporter,
@Nullable
BasicUser assignee,
org.joda.time.DateTime creationDate,
org.joda.time.DateTime updateDate,
Collection<Version> affectedVersions,
Collection<Version> fixVersions,
Collection<BasicComponent> components,
@Nullable
TimeTracking timeTracking,
Collection<Field> fields,
Collection<Comment> comments,
URI transitionsUri,
Collection<IssueLink> issueLinks,
BasicVotes votes,
Collection<Worklog> worklogs,
BasicWatchers watchers,
Iterable<String> expandos)
getStatus
public BasicStatus getStatus()
getReporter
@Nullable
public BasicUser getReporter()
- Returns:
- reporter of this issue or
null
if this issue has no reporter
getAssignee
@Nullable
public BasicUser getAssignee()
- Returns:
- assignee of this issue or
null
if this issue is unassigned.
getSummary
public String getSummary()
getPriority
@Nullable
public BasicPriority getPriority()
- Returns:
- priority of this issue
getIssueLinks
public Iterable<IssueLink> getIssueLinks()
- Returns:
- issue links for this issue (possibly nothing) or
null
when issue links are deactivated for this JIRA instance
getFields
public Iterable<Field> getFields()
- Returns:
- fields inaccessible by concrete getter methods (e.g. all custom fields)
getField
@Nullable
public Field getField(String id)
- Parameters:
id
- identifier of the field (inaccessible by concrete getter method)
- Returns:
- field with given id, or
null
when no field with given id exists for this issue
getFieldByName
@Nullable
public Field getFieldByName(String name)
- 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
null
when no field with given name exists for this issue
getExpandos
public Iterable<String> getExpandos()
- Specified by:
getExpandos
in interface ExpandableResource
getIssueType
public BasicIssueType getIssueType()
- Returns:
- issue type
getAttachments
public Iterable<Attachment> getAttachments()
- Returns:
- attachments of this issue
getAttachmentsUri
public URI getAttachmentsUri()
getComments
public Iterable<Comment> getComments()
- Returns:
- comments for this issue
getProject
public BasicProject getProject()
- Returns:
- project this issue belongs to
getVotes
@Nullable
public BasicVotes getVotes()
- Returns:
null
getWorklogs
public Iterable<Worklog> getWorklogs()
getWatchers
@Nullable
public BasicWatchers getWatchers()
- Returns:
null
getFixVersions
public Iterable<Version> getFixVersions()
getTransitionsUri
public URI getTransitionsUri()
getAffectedVersions
public Iterable<Version> getAffectedVersions()
getComponents
public Iterable<BasicComponent> getComponents()
getVotesUri
public URI getVotesUri()
getResolution
public BasicResolution getResolution()
getCreationDate
public org.joda.time.DateTime getCreationDate()
getUpdateDate
public org.joda.time.DateTime getUpdateDate()
getTimeTracking
@Nullable
public TimeTracking getTimeTracking()
toString
public String toString()
- Overrides:
toString
in class BasicIssue
Copyright © 2011 Atlassian Pty Ltd. All Rights Reserved.