com.atlassian.jira.issue
Interface Issue

All Superinterfaces:
IssueContext, OfBizValueWrapper
All Known Subinterfaces:
MutableIssue
All Known Implementing Classes:
AbstractIssue, DocumentIssueImpl, 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<Version> getAffectedVersions()
           
 User getAssignee()
           
 String getAssigneeId()
           
 Collection<Attachment> getAttachments()
           
 Collection<org.ofbiz.core.entity.GenericValue> getComponents()
           
 Timestamp getCreated()
           
 Object getCustomFieldValue(CustomField customField)
           
 String getDescription()
           
 Timestamp getDueDate()
           
 String getEnvironment()
           
 Long getEstimate()
           
 Object getExternalFieldValue(String fieldId)
           
 Collection<Version> getFixVersions()
           
 Long getId()
           
 IssueRenderContext getIssueRenderContext()
           
 org.ofbiz.core.entity.GenericValue getIssueType()
          Deprecated. Please use getIssueTypeObject(). Deprecated since v4.0
 IssueType getIssueTypeObject()
          Gets the IssueType for this Issue.
 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()
          Gets the Project for this Issue.
 User getReporter()
           
 String getReporterId()
           
 org.ofbiz.core.entity.GenericValue getResolution()
           
 Timestamp getResolutionDate()
          Returns the datetime that an issue was resolved on.
 Resolution getResolutionObject()
           
 org.ofbiz.core.entity.GenericValue getSecurityLevel()
           
 Long getSecurityLevelId()
           
 org.ofbiz.core.entity.GenericValue getStatus()
          Deprecated. Use getStatusObject() instead.
 Status getStatusObject()
           
 Collection<MutableIssue> getSubTaskObjects()
          Gets all the issue's subtasks.
 Collection<org.ofbiz.core.entity.GenericValue> 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

Long getId()

getProject

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

Description copied from interface: IssueContext
Gets the Project for this IssueContext.

A null return value is used to represent that this context applies to all Projects.

Specified by:
getProject in interface IssueContext
Returns:
The Project for this IssueContext (can be null).

getProjectObject

Project getProjectObject()
Gets the Project for this Issue.

Specified by:
getProjectObject in interface IssueContext
Returns:
The Project for this Issue.

getIssueType

@Deprecated
org.ofbiz.core.entity.GenericValue getIssueType()
Deprecated. Please use getIssueTypeObject(). Deprecated since v4.0

Gets the IssueType for this Issue.

Specified by:
getIssueType in interface IssueContext
Returns:
The IssueType for this Issue.

getIssueTypeObject

IssueType getIssueTypeObject()
Gets the IssueType for this Issue.

Specified by:
getIssueTypeObject in interface IssueContext
Returns:
The IssueType for this Issue.

getSummary

String getSummary()

getAssignee

User getAssignee()

getAssigneeId

String getAssigneeId()

getComponents

Collection<org.ofbiz.core.entity.GenericValue> getComponents()
Returns:
A collection of component GenericValues.

getReporter

User getReporter()

getReporterId

String getReporterId()

getDescription

String getDescription()

getEnvironment

String getEnvironment()

getAffectedVersions

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

getFixVersions

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

getDueDate

Timestamp getDueDate()

getSecurityLevel

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

getSecurityLevelId

Long getSecurityLevelId()

getPriority

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

getPriorityObject

Priority getPriorityObject()

getResolution

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

getResolutionObject

Resolution getResolutionObject()

getKey

String getKey()

getVotes

Long getVotes()

getCreated

Timestamp getCreated()

getUpdated

Timestamp getUpdated()

getResolutionDate

Timestamp getResolutionDate()
Returns the datetime that an issue was resolved on. Will be null if it hasn't been resolved yet, or if an issue has been returned to the 'unresolved' state.

Returns:
Timestamp of when an issue was resolved, or null

getWorkflowId

Long getWorkflowId()

getCustomFieldValue

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

getStatus

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


getStatusObject

Status getStatusObject()

getOriginalEstimate

Long getOriginalEstimate()

getEstimate

Long getEstimate()

getTimeSpent

Long getTimeSpent()

getExternalFieldValue

Object getExternalFieldValue(String fieldId)

isSubTask

boolean isSubTask()

getParentId

Long getParentId()

isCreated

boolean isCreated()

getParentObject

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


getParent

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


getSubTasks

@Deprecated
Collection<org.ofbiz.core.entity.GenericValue> getSubTasks()
Deprecated. Use getSubTaskObjects()


getSubTaskObjects

Collection<MutableIssue> getSubTaskObjects()
Gets all the issue's subtasks.

Returns:
A collection of MutableIssues

isEditable

boolean isEditable()

getIssueRenderContext

IssueRenderContext getIssueRenderContext()

getAttachments

Collection<Attachment> getAttachments()
Returns:
A collection of Attachment objects


Copyright © 2002-2009 Atlassian. All Rights Reserved.