@PublicApi public interface Issue extends OfBizValueWrapper, IssueContext, WithId, WithKey
GenericValue
s 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
.
GLOBAL
ID_COMPARATOR
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o)
For interactivity, implementations must be based on the issue key.
|
Collection<Version> |
getAffectedVersions() |
String |
getArchivedById()
Returns the userid of user who archived this issue, or null if it wasn't archived.
|
ApplicationUser |
getArchivedByUser()
Returns the user who archived this issue, or null if it wasn't archived.
|
Timestamp |
getArchivedDate()
Returns the timestamp when this issue was archived, or null if it wasn't archived.
|
ApplicationUser |
getAssignee()
Returns the Assignee User.
|
String |
getAssigneeId() |
ApplicationUser |
getAssigneeUser()
Returns the Assignee User.
|
Collection<Attachment> |
getAttachments() |
Collection<ProjectComponent> |
getComponentObjects()
Deprecated.
Use
getComponents() . Since v7.0 |
Collection<ProjectComponent> |
getComponents() |
Timestamp |
getCreated() |
ApplicationUser |
getCreator() |
String |
getCreatorId() |
Object |
getCustomFieldValue(CustomField customField) |
String |
getDescription() |
Timestamp |
getDueDate() |
String |
getEnvironment() |
Long |
getEstimate()
This is the "remaining estimate" of work left to be performed on this issue, in seconds.
|
Object |
getExternalFieldValue(String fieldId) |
Collection<Version> |
getFixVersions() |
org.ofbiz.core.entity.GenericValue |
getGenericValue()
Deprecated.
Use the Data object getters instead. Since v5.0.
|
Long |
getId() |
IssueRenderContext |
getIssueRenderContext() |
IssueType |
getIssueType()
Gets the IssueType for this Issue.
|
String |
getIssueTypeId()
Gets the ID of the IssueType for this Issue.
|
IssueType |
getIssueTypeObject()
Deprecated.
Please use
getIssueType() . Deprecated since v7.0 |
String |
getKey() |
Set<Label> |
getLabels()
Returns a set of all the labels for this issue or an empty set if none exist yet.
|
Long |
getNumber() |
Long |
getOriginalEstimate()
This is the "original estimate" of work to be performed on this issue, in seconds.
|
org.ofbiz.core.entity.GenericValue |
getParent()
Deprecated.
Use
getParentObject() instead. |
Long |
getParentId() |
Issue |
getParentObject()
If this issue is a subtask, return its parent.
|
Priority |
getPriority()
Returns the Priority for this Issue.
|
Priority |
getPriorityObject()
Deprecated.
Use
getPriority() instead. Since v7.0 |
org.ofbiz.core.entity.GenericValue |
getProject()
Deprecated.
please use getProjectObject (this still implicitly relies on the GV), but it is a start!
|
Long |
getProjectId()
Gets the ID of the Project for this Issue.
|
Project |
getProjectObject()
Gets the Project for this Issue.
|
ApplicationUser |
getReporter()
Returns the Reporter User.
|
String |
getReporterId() |
ApplicationUser |
getReporterUser()
Returns the Reporter User.
|
Resolution |
getResolution()
Returns the Resolution for this Issue.
|
Timestamp |
getResolutionDate()
Returns the datetime that an issue was resolved on.
|
String |
getResolutionId() |
Resolution |
getResolutionObject()
Deprecated.
Use
getResolution() instead. Since v7.0 |
org.ofbiz.core.entity.GenericValue |
getSecurityLevel()
Deprecated.
Use
getSecurityLevelId() instead. Since v5.2. |
Long |
getSecurityLevelId()
Returns the Security Level for this Issue.
|
Status |
getStatus() |
String |
getStatusId() |
Status |
getStatusObject()
Deprecated.
since 7.0. Use
getStatus() instead. |
Collection<Issue> |
getSubTaskObjects()
Gets all the issue's subtasks.
|
Collection<org.ofbiz.core.entity.GenericValue> |
getSubTasks()
Deprecated.
|
String |
getSummary() |
Long |
getTimeSpent()
This is the "total time spent" working on this issue, in seconds.
|
Timestamp |
getUpdated() |
Long |
getVotes() |
Long |
getWatches() |
Long |
getWorkflowId() |
int |
hashCode()
For interactivity, implementations must be based on the hashcode of the issue key.
|
boolean |
isArchived()
Returns true if issue is archived
|
boolean |
isCreated() |
boolean |
isEditable() |
boolean |
isSubTask() |
getLong, getString, getTimestamp, store
@Deprecated org.ofbiz.core.entity.GenericValue getProject()
Project getProjectObject()
getProjectObject
in interface IssueContext
Long getProjectId()
getProjectId
in interface IssueContext
IssueType getIssueType()
getIssueType
in interface IssueContext
@Deprecated IssueType getIssueTypeObject()
getIssueType()
. Deprecated since v7.0getIssueTypeObject
in interface IssueContext
String getIssueTypeId()
getIssueTypeId
in interface IssueContext
String getSummary()
ApplicationUser getAssigneeUser()
If there is no assignee it returns null, else it is guaranteed to return a non-null User. If the User is no longer available, it will create a dummy User object based on the username.
Legacy synonym for getAssignee()
getAssignee()
@IncompatibleReturnType(since="5.0", was="com.opensymphony.user.User") ApplicationUser getAssignee()
Warning: previous incarnations of this method returned com.opensymphony.user.User
. This class
has now been removed from the JIRA API, meaning that the 5.0 version is not binary or source compatible with
earlier versions.
String getAssigneeId()
@Deprecated Collection<ProjectComponent> getComponentObjects()
getComponents()
. Since v7.0Collection<ProjectComponent> getComponents()
ApplicationUser getReporterUser()
This will return a non-null User object even if the User has been deleted.
Legacy synonym for getReporter()
.
getReporter()
@IncompatibleReturnType(since="5.0", was="com.opensymphony.user.User") ApplicationUser getReporter()
Warning: previous incarnations of this method returned com.opensymphony.user.User
. This class
has now been removed from the JIRA API, meaning that the 5.0 version is not binary or source compatible with
earlier versions.
String getReporterId()
ApplicationUser getCreator()
String getCreatorId()
String getDescription()
String getEnvironment()
Collection<Version> getAffectedVersions()
Version
objects.Collection<Version> getFixVersions()
Version
objects.Timestamp getDueDate()
@Deprecated org.ofbiz.core.entity.GenericValue getSecurityLevel()
getSecurityLevelId()
instead. Since v5.2.Long getSecurityLevelId()
@Nullable Priority getPriority()
@Deprecated @Nullable Priority getPriorityObject()
getPriority()
instead. Since v7.0String getResolutionId()
Resolution getResolution()
@Deprecated Resolution getResolutionObject()
getResolution()
instead. Since v7.0Long getNumber()
Long getVotes()
Long getWatches()
Timestamp getCreated()
Timestamp getUpdated()
Timestamp getResolutionDate()
Long getWorkflowId()
Object getCustomFieldValue(CustomField customField)
customField
- the CustomFieldStatus getStatus()
String getStatusId()
@Deprecated Status getStatusObject()
getStatus()
instead.Long getOriginalEstimate()
Long getEstimate()
A better name would be getRemainingEstimate but for historical reasons it is called what it is called.
Long getTimeSpent()
boolean isSubTask()
Long getParentId()
boolean isCreated()
Issue getParentObject()
@Deprecated org.ofbiz.core.entity.GenericValue getParent()
getParentObject()
instead.@Deprecated Collection<org.ofbiz.core.entity.GenericValue> getSubTasks()
getSubTaskObjects()
Collection<Issue> getSubTaskObjects()
MutableIssue
sboolean isEditable()
IssueRenderContext getIssueRenderContext()
Collection<Attachment> getAttachments()
Attachment
objectsSet<Label> getLabels()
boolean isArchived()
@ExperimentalApi ApplicationUser getArchivedByUser()
@ExperimentalApi String getArchivedById()
@ExperimentalApi Timestamp getArchivedDate()
boolean equals(Object o)
int hashCode()
@Deprecated org.ofbiz.core.entity.GenericValue getGenericValue()
getGenericValue
in interface OfBizValueWrapper
Copyright © 2002-2021 Atlassian. All Rights Reserved.