com.atlassian.jira.issue
Interface Issue

All Superinterfaces:
IssueContext, OfBizValueWrapper
All Known Subinterfaces:
MutableIssue
All Known Implementing Classes:
AbstractIssue, IssueImpl, TemplateIssue

public interface Issue
extends OfBizValueWrapper, IssueContext

Main issue interface. Historically, JIRA has just passed around GenericValues describing issue records. Issue is essentially a GenericValue wrapper, with setters, getters and a OfBizValueWrapper.store() operation for persisting changes through the underlying GenericValue.

Amongst other means, Issue objects may be obtained with IssueManager.getIssueObject(String), or converted using IssueFactory.


Method Summary
 Collection getAffectedVersions()
           
 User getAssignee()
           
 String getAssigneeId()
           
 Collection getAttachments()
           
 Collection getComponents()
           
 Timestamp getCreated()
           
 Object getCustomFieldValue(CustomField customField)
           
 String getDescription()
           
 Timestamp getDueDate()
           
 String getEnvironment()
           
 Long getEstimate()
           
 Object getExternalFieldValue(String fieldId)
           
 Collection getFixVersions()
           
 Long getId()
           
 IssueRenderContext getIssueRenderContext()
           
 org.ofbiz.core.entity.GenericValue getIssueType()
           
 IssueType getIssueTypeObject()
           
 String getKey()
           
 Long getOriginalEstimate()
           
 org.ofbiz.core.entity.GenericValue getParent()
          Deprecated. Use getParentObject() instead.
 Long getParentId()
           
 Issue getParentObject()
          If this issue is a subtask, return its parent.
 org.ofbiz.core.entity.GenericValue getPriority()
           
 Priority getPriorityObject()
           
 org.ofbiz.core.entity.GenericValue getProject()
          Deprecated. please use getProjectObject (this still implicitly relies on the GV), but it is a start!
 Project getProjectObject()
           
 User getReporter()
           
 String getReporterId()
           
 org.ofbiz.core.entity.GenericValue getResolution()
           
 Resolution getResolutionObject()
           
 org.ofbiz.core.entity.GenericValue getSecurityLevel()
           
 Long getSecurityLevelId()
           
 org.ofbiz.core.entity.GenericValue getStatus()
          Deprecated. Use getStatusObject() instead.
 Status getStatusObject()
           
 Collection getSubTaskObjects()
          Gets all the issue's subtasks.
 Collection getSubTasks()
          Deprecated. Use getSubTaskObjects()
 String getSummary()
           
 Long getTimeSpent()
           
 Timestamp getUpdated()
           
 Long getVotes()
           
 Long getWorkflowId()
           
 boolean isCreated()
           
 boolean isEditable()
           
 boolean isSubTask()
           
 
Methods inherited from interface com.atlassian.jira.ofbiz.OfBizValueWrapper
getGenericValue, getLong, getString, getTimestamp, store
 

Method Detail

getId

public Long getId()

getProject

public org.ofbiz.core.entity.GenericValue getProject()
Deprecated. please use getProjectObject (this still implicitly relies on the GV), but it is a start!

Specified by:
getProject in interface IssueContext

getProjectObject

public Project getProjectObject()

getIssueType

public org.ofbiz.core.entity.GenericValue getIssueType()
Specified by:
getIssueType in interface IssueContext

getIssueTypeObject

public IssueType getIssueTypeObject()

getSummary

public String getSummary()

getAssignee

public User getAssignee()

getAssigneeId

public String getAssigneeId()

getComponents

public Collection getComponents()
Returns:
A collection of component GenericValues.

getReporter

public User getReporter()

getReporterId

public String getReporterId()

getDescription

public String getDescription()

getEnvironment

public String getEnvironment()

getAffectedVersions

public Collection getAffectedVersions()
Returns:
a collection of 'affects' Version objects.

getFixVersions

public Collection getFixVersions()
Returns:
a collection of fix-for Version objects.

getDueDate

public Timestamp getDueDate()

getSecurityLevel

public org.ofbiz.core.entity.GenericValue getSecurityLevel()

getSecurityLevelId

public Long getSecurityLevelId()

getPriority

public org.ofbiz.core.entity.GenericValue getPriority()

getPriorityObject

public Priority getPriorityObject()

getResolution

public org.ofbiz.core.entity.GenericValue getResolution()

getResolutionObject

public Resolution getResolutionObject()

getKey

public String getKey()

getVotes

public Long getVotes()

getCreated

public Timestamp getCreated()

getUpdated

public Timestamp getUpdated()

getWorkflowId

public Long getWorkflowId()

getCustomFieldValue

public Object getCustomFieldValue(CustomField customField)
Returns:
A custom field's value. Will be a List, User, Timestamp etc, depending on custom field type.

getStatus

public org.ofbiz.core.entity.GenericValue getStatus()
Deprecated. Use getStatusObject() instead.


getStatusObject

public Status getStatusObject()

getOriginalEstimate

public Long getOriginalEstimate()

getEstimate

public Long getEstimate()

getTimeSpent

public Long getTimeSpent()

getExternalFieldValue

public Object getExternalFieldValue(String fieldId)

isSubTask

public boolean isSubTask()

getParentId

public Long getParentId()

isCreated

public boolean isCreated()

getParentObject

public Issue getParentObject()
If this issue is a subtask, return its parent. The parent Issue, or null if the issue is not a subtask.


getParent

public org.ofbiz.core.entity.GenericValue getParent()
Deprecated. Use getParentObject() instead.


getSubTasks

public Collection getSubTasks()
Deprecated. Use getSubTaskObjects()


getSubTaskObjects

public Collection getSubTaskObjects()
Gets all the issue's subtasks.

Returns:
A collection of MutableIssues

isEditable

public boolean isEditable()

getIssueRenderContext

public IssueRenderContext getIssueRenderContext()

getAttachments

public Collection getAttachments()
Returns:
A collection of Attachment objects


Copyright © 2002-2007 Atlassian. All Rights Reserved.