Class IssueImpl
- All Implemented Interfaces:
WithId
,WithKey
,IssueContext
,Issue
,MutableIssue
,OfBizValueWrapper
,Serializable
GenericValue
.- Since:
- 3.2
- See Also:
-
Field Summary
Fields inherited from class com.atlassian.jira.issue.AbstractIssue
attachmentManager, constantsManager, issueManager
Fields inherited from interface com.atlassian.jira.issue.context.IssueContext
GLOBAL
Fields inherited from interface com.atlassian.jira.entity.WithId
ID_COMPARATOR
-
Constructor Summary
ConstructorDescriptionIssueImpl
(Issue issue, IssueManager issueManager, ProjectManager projectManager, VersionManager versionManager, IssueSecurityLevelManager issueSecurityLevelManager, ConstantsManager constantsManager, SubTaskManager subTaskManager, AttachmentManager attachmentManager, LabelManager labelManager, ProjectComponentManager projectComponentManager, UserManager userManager, JiraAuthenticationContext jiraAuthenticationContext, IssueArchiveHelper issueArchiveHelper) Create an issue, cloning another issue's data.IssueImpl
(org.ofbiz.core.entity.GenericValue genericValue, IssueManager issueManager, ProjectManager projectManager, VersionManager versionManager, IssueSecurityLevelManager issueSecurityLevelManager, ConstantsManager constantsManager, SubTaskManager subTaskManager, AttachmentManager attachmentManager, LabelManager labelManager, ProjectComponentManager projectComponentManager, UserManager userManager, JiraAuthenticationContext jiraAuthenticationContext, IssueArchiveHelper issueArchiveHelper) Load an issue backed by the database. -
Method Summary
Modifier and TypeMethodDescriptionReturns the userid of user who archived this issue, or null if it wasn't archived.Returns the user who archived this issue, or null if it wasn't archived.Returns the timestamp when this issue was archived, or null if it wasn't archived.Returns the Assignee User.Returns the Assignee User.getCustomFieldValue
(CustomField customField) This is the "remaining estimate" of work left to be performed on this issue, in seconds.getExternalFieldValue
(String fieldId) org.ofbiz.core.entity.GenericValue
Get the backing GenericValue object.getId()
static MutableIssue
getIssueObject
(org.ofbiz.core.entity.GenericValue genericValue) Deprecated.Gets the IssueType for this Issue.Gets the ID of the IssueType for this Issue.getKey()
Returns a set of all the labels for this issue or an empty set if none exist yet.Retrieve a numeric field.Retrieve a map of issue fields whose values have been set (since object creation or lastMutableIssue.resetModifiedFields()
call.This is the "original estimate" of work to be performed on this issue, in seconds.org.ofbiz.core.entity.GenericValue
Deprecated.UsegetParentObject()
instead.If this issue is a subtask, return its parent.Returns the Priority for this Issue.org.ofbiz.core.entity.GenericValue
Gets the ID of the Project for this Issue.Gets the Project for this Issue.Returns the Reporter User.Returns the Reporter User.Returns the Resolution for this Issue.Returns the datetime that an issue was resolved on.org.ofbiz.core.entity.GenericValue
Returns the Security Level for this Issue.Returns the Security Level for this Issue.Retrieve a String field.Gets all the issue's subtasks.Collection<org.ofbiz.core.entity.GenericValue>
This is the "total time spent" working on this issue, in seconds.getTimestamp
(String name) Retrieve a timestamp field.getVotes()
boolean
Returns true if issue is archivedboolean
boolean
void
Reset the internal list of modified fields.void
setAffectedVersions
(Collection<Version> affectedVersions) void
setArchived
(boolean archived) void
setAssignee
(ApplicationUser assignee) void
setAssigneeId
(String assigneeKey) Sets the user that this issue is assigned to.void
setComponent
(Collection<ProjectComponent> components) Sets the components for this Issue.void
setCreated
(Timestamp created) void
setCustomFieldValue
(CustomField customField, Object value) Sets a custom field value on this Issue Object, but does not write it to the database.void
setDescription
(String description) void
setDueDate
(Timestamp dueDate) void
setEnvironment
(String environment) void
setEstimate
(Long estimate) void
setExternalFieldValue
(String fieldId, Object newValue) This can be used by a field to "place" a custom object into the MutableIssue so that it can be retrieved by key at a later point via theMutableIssue.getModifiedFields()
andIssue.getExternalFieldValue(String)
.void
setExternalFieldValue
(String fieldId, Object oldValue, Object newValue) This can be used bya field to "place" a custom object into the MutableIssue so that it can be retrieved by key at a later point via theMutableIssue.getModifiedFields()
andIssue.getExternalFieldValue(String)
.void
setFixVersions
(Collection<Version> fixVersions) void
setIssueType
(IssueType issueType) void
setIssueTypeId
(String issueTypeId) Set the issue type, by type id.void
setIssueTypeObject
(IssueType issueType) Sets the IssueType for this Issue.void
void
Set the labels for this issue.void
void
setOriginalEstimate
(Long originalEstimate) void
setParentId
(Long parentId) Sets the ParentId of this Issue.void
setParentObject
(Issue parentIssue) Sets the parent Issue Object for this Issue (subtask).void
setPriority
(Priority priority) Sets the priority for this Issue.void
setPriority
(org.ofbiz.core.entity.GenericValue priority) void
setPriorityId
(String priorityId) Sets the priority for this Issue.void
setPriorityObject
(Priority priority) Sets the priority for this Issue.void
setProject
(org.ofbiz.core.entity.GenericValue project) Sets the Project for this Issue.void
setProjectId
(Long projectId) Sets the project by id.void
setProjectObject
(Project project) Sets the Project for this Issue.void
setReporter
(ApplicationUser reporter) void
setReporterId
(String reporterId) Sets the reporter in this issue.void
setResolution
(Resolution resolution) Sets the resolution for this Issue.void
setResolutionDate
(Timestamp resolutionDate) void
setResolutionId
(String resolutionId) void
setResolutionObject
(Resolution resolution) Sets the resolution for this Issue.void
setSecurityLevel
(org.ofbiz.core.entity.GenericValue securityLevel) Sets the SecurityLevel for this Issue.void
setSecurityLevelId
(Long securityLevelId) Sets the SecurityLevel for this Issue.void
Sets the status for this Issue.void
setStatusId
(String statusId) Set issue's status by status id ("1", "2" etc).void
setStatusObject
(Status status) Sets the status for this Issue.void
setSummary
(String summary) void
setTimeSpent
(Long timespent) void
setUpdated
(Timestamp updated) void
void
setWatches
(Long watches) void
setWorkflowId
(Long workflowId) void
store()
Persist this issue's immediate fields.toString()
Methods inherited from class com.atlassian.jira.issue.AbstractIssue
equals, getAttachments, getIssueTypeObject, getPriorityObject, getResolutionObject, getStatusObject, hashCode, isEditable
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.atlassian.jira.issue.Issue
equals, getAttachments, getIssueTypeObject, getPriorityObject, getResolutionObject, getStatusObject, hashCode, isEditable
-
Constructor Details
-
IssueImpl
public IssueImpl(org.ofbiz.core.entity.GenericValue genericValue, IssueManager issueManager, ProjectManager projectManager, VersionManager versionManager, IssueSecurityLevelManager issueSecurityLevelManager, ConstantsManager constantsManager, SubTaskManager subTaskManager, AttachmentManager attachmentManager, LabelManager labelManager, ProjectComponentManager projectComponentManager, UserManager userManager, JiraAuthenticationContext jiraAuthenticationContext, IssueArchiveHelper issueArchiveHelper) Load an issue backed by the database.- Parameters:
genericValue
- generic value of the issueissueManager
- issue managerprojectManager
- project managerversionManager
- version managerissueSecurityLevelManager
- issue security level managerconstantsManager
- constant managersubTaskManager
- sub-task managerattachmentManager
- attachment managerlabelManager
- label managerprojectComponentManager
- project component manageruserManager
- user managerjiraAuthenticationContext
- jira authentication contextissueArchiveHelper
- issue archive helper
-
IssueImpl
public IssueImpl(@Nonnull Issue issue, IssueManager issueManager, ProjectManager projectManager, VersionManager versionManager, IssueSecurityLevelManager issueSecurityLevelManager, ConstantsManager constantsManager, SubTaskManager subTaskManager, AttachmentManager attachmentManager, LabelManager labelManager, ProjectComponentManager projectComponentManager, UserManager userManager, JiraAuthenticationContext jiraAuthenticationContext, IssueArchiveHelper issueArchiveHelper) Create an issue, cloning another issue's data.- Parameters:
issue
- issueissueManager
- issue managerprojectManager
- project managerversionManager
- version managerissueSecurityLevelManager
- issue security level managerconstantsManager
- constant managersubTaskManager
- sub-task managerattachmentManager
- attachment managerlabelManager
- label managerprojectComponentManager
- project component manageruserManager
- user managerjiraAuthenticationContext
- jira authentication contextissueArchiveHelper
- issue archive helper
-
-
Method Details
-
getIssueObject
Deprecated.You should construct this yourself if at all possible, or useIssueFactory.getIssue(org.ofbiz.core.entity.GenericValue)
instead.This is a static way of instantiating an Issue Object.- Parameters:
genericValue
- generic value of the issue- Returns:
- new instance of MutableIssue
-
getId
-
getProject
public org.ofbiz.core.entity.GenericValue getProject()- Specified by:
getProject
in interfaceIssue
-
getProjectObject
Description copied from interface:Issue
Gets the Project for this Issue.- Specified by:
getProjectObject
in interfaceIssue
- Specified by:
getProjectObject
in interfaceIssueContext
- Returns:
- The Project for this Issue.
-
getProjectId
Description copied from interface:Issue
Gets the ID of the Project for this Issue.- Specified by:
getProjectId
in interfaceIssue
- Specified by:
getProjectId
in interfaceIssueContext
- Returns:
- The ID of the Project for this Issue.
-
setProjectId
Description copied from interface:MutableIssue
Sets the project by id.- Specified by:
setProjectId
in interfaceMutableIssue
- Parameters:
projectId
- The id of the project
-
setProject
public void setProject(org.ofbiz.core.entity.GenericValue project) Description copied from interface:MutableIssue
Sets the Project for this Issue.- Specified by:
setProject
in interfaceMutableIssue
- Parameters:
project
- the new Project
-
setProjectObject
Description copied from interface:MutableIssue
Sets the Project for this Issue.- Specified by:
setProjectObject
in interfaceMutableIssue
- Parameters:
project
- the new Project
-
getIssueType
Description copied from interface:Issue
Gets the IssueType for this Issue.- Specified by:
getIssueType
in interfaceIssue
- Specified by:
getIssueType
in interfaceIssueContext
- Returns:
- The IssueType for this Issue.
-
getIssueTypeId
Description copied from interface:Issue
Gets the ID of the IssueType for this Issue.- Specified by:
getIssueTypeId
in interfaceIssue
- Specified by:
getIssueTypeId
in interfaceIssueContext
- Returns:
- The ID of the IssueType for this Issue.
-
setIssueType
- Specified by:
setIssueType
in interfaceMutableIssue
-
setIssueTypeObject
Description copied from interface:MutableIssue
Sets the IssueType for this Issue.- Specified by:
setIssueTypeObject
in interfaceMutableIssue
- Parameters:
issueType
- the new IssueType
-
setIssueTypeId
Set the issue type, by type id.- Specified by:
setIssueTypeId
in interfaceMutableIssue
-
getSummary
- Specified by:
getSummary
in interfaceIssue
-
setSummary
- Specified by:
setSummary
in interfaceMutableIssue
-
isArchived
public boolean isArchived()Description copied from interface:Issue
Returns true if issue is archived- Specified by:
isArchived
in interfaceIssue
- Returns:
- is issue archived
-
setArchived
public void setArchived(boolean archived) - Specified by:
setArchived
in interfaceMutableIssue
-
getArchivedById
Description copied from interface:Issue
Returns the userid of user who archived this issue, or null if it wasn't archived.- Specified by:
getArchivedById
in interfaceIssue
- Returns:
- the userid of user who archived this issue, or null if it wasn't archived.
-
getArchivedByUser
Description copied from interface:Issue
Returns the user who archived this issue, or null if it wasn't archived.- Specified by:
getArchivedByUser
in interfaceIssue
- Returns:
- the user who archived this issue, or null if it wasn't archived.
-
getArchivedDate
Description copied from interface:Issue
Returns the timestamp when this issue was archived, or null if it wasn't archived.- Specified by:
getArchivedDate
in interfaceIssue
- Returns:
- timestamp when this issue was archived, or null if it wasn't archived.
-
getReporterUser
Description copied from interface:Issue
Returns the Reporter User.This will return a non-null User object even if the User has been deleted.
Legacy synonym for
Issue.getReporter()
.- Specified by:
getReporterUser
in interfaceIssue
- Returns:
- the Reporter User.
- See Also:
-
getReporter
Description copied from interface:Issue
Returns the Reporter User.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.- Specified by:
getReporter
in interfaceIssue
- Returns:
- the Reporter User.
-
getReporterId
- Specified by:
getReporterId
in interfaceIssue
- Returns:
- a user key of the reporter
-
getCreator
- Specified by:
getCreator
in interfaceIssue
-
getCreatorId
- Specified by:
getCreatorId
in interfaceIssue
- Returns:
- a user key of the creator
-
setReporter
- Specified by:
setReporter
in interfaceMutableIssue
-
setReporterId
Description copied from interface:MutableIssue
Sets the reporter in this issue. Note that this should be the userkey, not the username.- Specified by:
setReporterId
in interfaceMutableIssue
- Parameters:
reporterId
- userkey of the desired reporter.- See Also:
-
getDescription
- Specified by:
getDescription
in interfaceIssue
-
setDescription
- Specified by:
setDescription
in interfaceMutableIssue
-
getEnvironment
- Specified by:
getEnvironment
in interfaceIssue
-
setEnvironment
- Specified by:
setEnvironment
in interfaceMutableIssue
-
getAssigneeUser
Description copied from interface:Issue
Returns the Assignee User.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
Issue.getAssignee()
- Specified by:
getAssigneeUser
in interfaceIssue
- Returns:
- the Assignee User.
- See Also:
-
getAssignee
Description copied from interface:Issue
Returns the Assignee User.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.- Specified by:
getAssignee
in interfaceIssue
- Returns:
- the Assignee User.
-
getAssigneeId
- Specified by:
getAssigneeId
in interfaceIssue
- Returns:
- a user key of the assignee
-
setAssignee
- Specified by:
setAssignee
in interfaceMutableIssue
-
setAssigneeId
Description copied from interface:MutableIssue
Sets the user that this issue is assigned to. Note that this should be the userkey, not the username.- Specified by:
setAssigneeId
in interfaceMutableIssue
- Parameters:
assigneeKey
- The user key.
-
getComponentObjects
- Specified by:
getComponentObjects
in interfaceIssue
- Returns:
- collection of project components (as objects) that this issue is assigned to
-
getComponents
- Specified by:
getComponents
in interfaceIssue
- Returns:
- collection of project components (as objects) that this issue is assigned to
-
setComponent
Description copied from interface:MutableIssue
Sets the components for this Issue.- Specified by:
setComponent
in interfaceMutableIssue
- Parameters:
components
- the new components value
-
getFixVersions
- Specified by:
getFixVersions
in interfaceIssue
- Returns:
- a collection of fix-for
Version
objects.
-
setFixVersions
- Specified by:
setFixVersions
in interfaceMutableIssue
- Parameters:
fixVersions
- A collection of fix-forVersion
objects.
-
getDueDate
- Specified by:
getDueDate
in interfaceIssue
-
setDueDate
- Specified by:
setDueDate
in interfaceMutableIssue
-
getSecurityLevel
public org.ofbiz.core.entity.GenericValue getSecurityLevel()Description copied from interface:Issue
Returns the Security Level for this Issue.- Specified by:
getSecurityLevel
in interfaceIssue
- Returns:
- the Security Level for this Issue.
-
getSecurityLevelId
Description copied from interface:Issue
Returns the Security Level for this Issue.- Specified by:
getSecurityLevelId
in interfaceIssue
- Returns:
- the Security Level for this Issue.
-
setSecurityLevelId
Description copied from interface:MutableIssue
Sets the SecurityLevel for this Issue.- Specified by:
setSecurityLevelId
in interfaceMutableIssue
- Parameters:
securityLevelId
- the new SecurityLevel value
-
setSecurityLevel
public void setSecurityLevel(org.ofbiz.core.entity.GenericValue securityLevel) Description copied from interface:MutableIssue
Sets the SecurityLevel for this Issue.- Specified by:
setSecurityLevel
in interfaceMutableIssue
- Parameters:
securityLevel
- the new SecurityLevel value
-
getPriority
Description copied from interface:Issue
Returns the Priority for this Issue.- Specified by:
getPriority
in interfaceIssue
- Returns:
- the Priority for this Issue.
-
setPriority
public void setPriority(org.ofbiz.core.entity.GenericValue priority) -
setPriority
Description copied from interface:MutableIssue
Sets the priority for this Issue.- Specified by:
setPriority
in interfaceMutableIssue
- Parameters:
priority
- the new priority value
-
setPriorityObject
Description copied from interface:MutableIssue
Sets the priority for this Issue.- Specified by:
setPriorityObject
in interfaceMutableIssue
- Parameters:
priority
- the new priority value
-
setPriorityId
Description copied from interface:MutableIssue
Sets the priority for this Issue.- Specified by:
setPriorityId
in interfaceMutableIssue
- Parameters:
priorityId
- the new priority value
-
getResolutionId
- Specified by:
getResolutionId
in interfaceIssue
-
getResolution
Description copied from interface:Issue
Returns the Resolution for this Issue.- Specified by:
getResolution
in interfaceIssue
- Returns:
- the Resolution for this Issue.
-
setResolutionId
- Specified by:
setResolutionId
in interfaceMutableIssue
-
setResolution
Description copied from interface:MutableIssue
Sets the resolution for this Issue.- Specified by:
setResolution
in interfaceMutableIssue
-
setResolutionObject
Description copied from interface:MutableIssue
Sets the resolution for this Issue.- Specified by:
setResolutionObject
in interfaceMutableIssue
- Parameters:
resolution
- the new resolution value
-
getKey
-
getNumber
-
setKey
- Specified by:
setKey
in interfaceMutableIssue
-
setNumber
- Specified by:
setNumber
in interfaceMutableIssue
-
getVotes
-
setVotes
- Specified by:
setVotes
in interfaceMutableIssue
-
getWatches
- Specified by:
getWatches
in interfaceIssue
-
setWatches
- Specified by:
setWatches
in interfaceMutableIssue
-
getAffectedVersions
- Specified by:
getAffectedVersions
in interfaceIssue
- Returns:
- a collection of 'affects'
Version
objects.
-
setAffectedVersions
- Specified by:
setAffectedVersions
in interfaceMutableIssue
- Parameters:
affectedVersions
- A collection of 'affects'Version
objects.
-
getString
Description copied from interface:OfBizValueWrapper
Retrieve a String field.- Specified by:
getString
in interfaceOfBizValueWrapper
- Parameters:
name
- the field name- Returns:
- the value for the given field.
-
getTimestamp
Description copied from interface:OfBizValueWrapper
Retrieve a timestamp field.- Specified by:
getTimestamp
in interfaceOfBizValueWrapper
- Parameters:
name
- the field name- Returns:
- the value for the given field.
-
getLong
Description copied from interface:OfBizValueWrapper
Retrieve a numeric field.- Specified by:
getLong
in interfaceOfBizValueWrapper
- Parameters:
name
- the field name- Returns:
- the value for the given field.
-
getGenericValue
public org.ofbiz.core.entity.GenericValue getGenericValue()Description copied from interface:Issue
Get the backing GenericValue object.- Specified by:
getGenericValue
in interfaceIssue
- Specified by:
getGenericValue
in interfaceOfBizValueWrapper
- Returns:
- the backing GenericValue object.
-
getCreated
- Specified by:
getCreated
in interfaceIssue
-
setCreated
- Specified by:
setCreated
in interfaceMutableIssue
-
getUpdated
- Specified by:
getUpdated
in interfaceIssue
-
setUpdated
- Specified by:
setUpdated
in interfaceMutableIssue
-
getResolutionDate
Description copied from interface:Issue
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.- Specified by:
getResolutionDate
in interfaceIssue
- Returns:
- Timestamp of when an issue was resolved, or null
-
setResolutionDate
- Specified by:
setResolutionDate
in interfaceMutableIssue
-
getWorkflowId
- Specified by:
getWorkflowId
in interfaceIssue
-
setWorkflowId
- Specified by:
setWorkflowId
in interfaceMutableIssue
-
getCustomFieldValue
- Specified by:
getCustomFieldValue
in interfaceIssue
- Parameters:
customField
- the CustomField- Returns:
- A custom field's value. Will be a List, User, Timestamp etc, depending on custom field type.
-
setCustomFieldValue
Description copied from interface:MutableIssue
Sets a custom field value on this Issue Object, but does not write it to the database. This is highly misleading.
To actually set a custom field value, useOrderableField.updateIssue(com.atlassian.jira.issue.fields.layout.field.FieldLayoutItem, MutableIssue, java.util.Map)
- Specified by:
setCustomFieldValue
in interfaceMutableIssue
- Parameters:
customField
- the CustomFieldvalue
- the value.
-
getExternalFieldValue
- Specified by:
getExternalFieldValue
in interfaceIssue
-
setExternalFieldValue
Description copied from interface:MutableIssue
This can be used by a field to "place" a custom object into the MutableIssue so that it can be retrieved by key at a later point via theMutableIssue.getModifiedFields()
andIssue.getExternalFieldValue(String)
.The passed in newValue will be wrapped in the
ModifiedValue.getNewValue()
TheModifiedValue.getOldValue()
will be null.- Specified by:
setExternalFieldValue
in interfaceMutableIssue
- Parameters:
fieldId
- the field id to use as a keynewValue
- the new value to place in aModifiedValue
-
setExternalFieldValue
Description copied from interface:MutableIssue
This can be used bya field to "place" a custom object into the MutableIssue so that it can be retrieved by key at a later point via theMutableIssue.getModifiedFields()
andIssue.getExternalFieldValue(String)
.The passed in newValue will be wrapped in the
ModifiedValue.getNewValue()
and the oldValue will be placed inModifiedValue.getOldValue()
- Specified by:
setExternalFieldValue
in interfaceMutableIssue
- Parameters:
fieldId
- the field id to use as a keyoldValue
- the old value to place in aModifiedValue
newValue
- the new value to place in aModifiedValue
-
isSubTask
public boolean isSubTask() -
getParentId
- Specified by:
getParentId
in interfaceIssue
-
setParentId
Description copied from interface:MutableIssue
Sets the ParentId of this Issue.- Specified by:
setParentId
in interfaceMutableIssue
- Parameters:
parentId
- The new parentId.- See Also:
-
setParentObject
Description copied from interface:MutableIssue
Sets the parent Issue Object for this Issue (subtask).Normally a subtask just has the ID of the parent set using
setParentId()
. In this case, the getParentObject() method will look up the parent object from the DB (or cache). However, when you are editing a parent and its subtask within a transaction (eg a Bulk Move), it is useful to be able to link the subtask to the pending parent object in order that it can see the new values for the parent.- Specified by:
setParentObject
in interfaceMutableIssue
- Parameters:
parentIssue
- the required parent Issue for this subtask.- Throws:
IllegalArgumentException
- See Also:
-
getParentObject
Description copied from interface:Issue
If this issue is a subtask, return its parent.- Specified by:
getParentObject
in interfaceIssue
- Overrides:
getParentObject
in classAbstractIssue
- Returns:
- The parent Issue, or null if the issue is not a subtask.
-
getParent
public org.ofbiz.core.entity.GenericValue getParent()Deprecated.UsegetParentObject()
instead.- Specified by:
getParent
in interfaceIssue
- Overrides:
getParent
in classAbstractIssue
-
getSubTasks
- Specified by:
getSubTasks
in interfaceIssue
-
getSubTaskObjects
Description copied from interface:Issue
Gets all the issue's subtasks.- Specified by:
getSubTaskObjects
in interfaceIssue
- Returns:
- A collection of
MutableIssue
s
-
isCreated
public boolean isCreated() -
getStatus
-
getStatusId
- Specified by:
getStatusId
in interfaceIssue
-
setStatusId
Description copied from interface:MutableIssue
Set issue's status by status id ("1", "2" etc).- Specified by:
setStatusId
in interfaceMutableIssue
- Parameters:
statusId
- the new StatusId.
-
setLabels
Description copied from interface:MutableIssue
Set the labels for this issue.- Specified by:
setLabels
in interfaceMutableIssue
- Parameters:
labels
- the labels for this issue
-
getLabels
Description copied from interface:Issue
Returns a set of all the labels for this issue or an empty set if none exist yet. -
setStatus
Description copied from interface:MutableIssue
Sets the status for this Issue.- Specified by:
setStatus
in interfaceMutableIssue
- Parameters:
status
- the new status value
-
setStatusObject
Description copied from interface:MutableIssue
Sets the status for this Issue.- Specified by:
setStatusObject
in interfaceMutableIssue
- Parameters:
status
- the new status value
-
getOriginalEstimate
Description copied from interface:Issue
This is the "original estimate" of work to be performed on this issue, in seconds.- Specified by:
getOriginalEstimate
in interfaceIssue
- Returns:
- the "original estimate" of work to be performed on this issue, in seconds.
-
setOriginalEstimate
- Specified by:
setOriginalEstimate
in interfaceMutableIssue
-
getEstimate
Description copied from interface:Issue
This is the "remaining estimate" of work left to be performed on this issue, in seconds.A better name would be getRemainingEstimate but for historical reasons it is called what it is called.
- Specified by:
getEstimate
in interfaceIssue
- Returns:
- the "remaining estimate" of work left to be performed on this issue, in seconds.
-
setEstimate
- Specified by:
setEstimate
in interfaceMutableIssue
-
getTimeSpent
Description copied from interface:Issue
This is the "total time spent" working on this issue, in seconds.- Specified by:
getTimeSpent
in interfaceIssue
- Returns:
- the "total time spent" working on this issue, in seconds.
-
setTimeSpent
- Specified by:
setTimeSpent
in interfaceMutableIssue
-
getIssueRenderContext
- Specified by:
getIssueRenderContext
in interfaceIssue
-
store
public void store()Description copied from interface:MutableIssue
Persist this issue's immediate fields. This is for internal usage only.- Specified by:
store
in interfaceMutableIssue
- Specified by:
store
in interfaceOfBizValueWrapper
-
getModifiedFields
Description copied from interface:MutableIssue
Retrieve a map of issue fields whose values have been set (since object creation or lastMutableIssue.resetModifiedFields()
call.- Specified by:
getModifiedFields
in interfaceMutableIssue
- Returns:
- A Map of key -> ModifiedValue pairs, where keys are defined in
IssueFieldConstants
and the value objects in the ModifiedValue are field-specific.
-
resetModifiedFields
public void resetModifiedFields()Description copied from interface:MutableIssue
Reset the internal list of modified fields.- Specified by:
resetModifiedFields
in interfaceMutableIssue
- See Also:
-
toString
-
IssueFactory.getIssue(org.ofbiz.core.entity.GenericValue)
instead.