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>

public class Issue extends BasicIssue implements ExpandableResource
Single JIRA issue
Since:
v0.1
  • Constructor Details

  • Method Details

    • getStatus

      public Status getStatus()
    • getReporter

      @Nullable public User getReporter()
      Returns:
      reporter of this issue or null if this issue has no reporter
    • getAssignee

      @Nullable public User 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

      @Nullable public Iterable<IssueLink> getIssueLinks()
      Returns:
      issue links for this issue (possibly nothing) or null when issue links are deactivated for this JIRA instance
    • getSubtasks

      @Nullable public Iterable<RelativeTask> getSubtasks()
    • getParentTask

      @Nullable public RelativeTask getParentTask()
    • getFields

      public Iterable<IssueField> getFields()
      Returns:
      fields inaccessible by concrete getter methods (e.g. all custom issueFields)
    • getField

      @Nullable public IssueField 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 IssueField 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 IssueType getIssueType()
      Returns:
      issue type
    • getAttachments

      public Iterable<Attachment> getAttachments()
      Returns:
      attachments of this issue
    • getAttachmentsUri

      public URI getAttachmentsUri()
    • getWorklogUri

      public URI getWorklogUri()
    • getComments

      public Iterable<Comment> getComments()
      Returns:
      comments for this issue
    • getCommentsUri

      public URI getCommentsUri()
    • getProject

      public BasicProject getProject()
      Returns:
      project this issue belongs to
    • getVotes

      @Nullable public BasicVotes getVotes()
      Returns:
      null when voting is disabled in JIRA
    • getWorklogs

      public Iterable<Worklog> getWorklogs()
    • getWatchers

      @Nullable public BasicWatchers getWatchers()
      Returns:
      null when watching is disabled in JIRA
    • getFixVersions

      @Nullable public Iterable<Version> getFixVersions()
    • getTransitionsUri

      @Nullable public URI getTransitionsUri()
    • getAffectedVersions

      @Nullable public Iterable<Version> getAffectedVersions()
    • getComponents

      public Iterable<BasicComponent> getComponents()
    • getLabels

      public Set<String> getLabels()
    • getChangelog

      @Nullable public Iterable<ChangelogGroup> getChangelog()
      Returns changelog available for issues retrieved with CHANGELOG expanded.
      Returns:
      issue changelog or null if 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

      @Nullable public Operations getOperations()
      Returns operations available/allowed for issues retrieved with IssueRestClient.Expandos.OPERATIONS expanded.
      Returns:
      issue operations or null if IssueRestClient.Expandos.OPERATIONS 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 2.0, server 5.0
      See Also:
    • getVotesUri

      public URI getVotesUri()
    • getResolution

      @Nullable public Resolution getResolution()
    • getCreationDate

      public org.joda.time.DateTime getCreationDate()
    • getUpdateDate

      public org.joda.time.DateTime getUpdateDate()
    • getDueDate

      public org.joda.time.DateTime getDueDate()
    • getTimeTracking

      @Nullable public TimeTracking getTimeTracking()
    • getDescription

      @Nullable public String getDescription()
    • getToStringHelper

      protected com.google.common.base.MoreObjects.ToStringHelper getToStringHelper()
      Overrides:
      getToStringHelper in class BasicIssue