Class GenericIssueWrapper
- All Implemented Interfaces:
WithId
,WithKey
,IssueContext
,Issue
,OfBizValueWrapper
,Serializable
- Direct Known Subclasses:
GenericMutableIssueWrapper
,RenderParameterHoldingIssueWrapper
,TemplateIssue
- See Also:
-
Field Summary
Fields inherited from interface com.atlassian.jira.issue.context.IssueContext
GLOBAL
Fields inherited from interface com.atlassian.jira.entity.WithId
ID_COMPARATOR
-
Constructor Summary
Constructors -
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()
Gets the IssueType for this Issue.Gets the ID of the IssueType for this Issue.Gets 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.This is the "original estimate" of work to be performed on this issue, in seconds.org.ofbiz.core.entity.GenericValue
If this issue is a subtask, return its parent.Returns the Priority for this Issue.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.Returns the Resolution for this Issue.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
boolean
void
store()
Persist this object's immediate fields.
-
Constructor Details
-
GenericIssueWrapper
-
-
Method Details
-
getDelegate
-
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.
-
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.
-
getIssueTypeObject
Description copied from interface:Issue
Gets the IssueType for this Issue.- Specified by:
getIssueTypeObject
in interfaceIssue
- Specified by:
getIssueTypeObject
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.
-
getSummary
- Specified by:
getSummary
in interfaceIssue
-
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
-
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
-
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
-
getDescription
- Specified by:
getDescription
in interfaceIssue
-
getEnvironment
- Specified by:
getEnvironment
in interfaceIssue
-
getAffectedVersions
- Specified by:
getAffectedVersions
in interfaceIssue
- Returns:
- a collection of 'affects'
Version
objects.
-
getFixVersions
- Specified by:
getFixVersions
in interfaceIssue
- Returns:
- a collection of fix-for
Version
objects.
-
getDueDate
- Specified by:
getDueDate
in interfaceIssue
-
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.
-
getPriority
Description copied from interface:Issue
Returns the Priority for this Issue.- Specified by:
getPriority
in interfaceIssue
- Returns:
- the Priority for this Issue.
-
getPriorityObject
Description copied from interface:Issue
Returns the Priority for this Issue.- Specified by:
getPriorityObject
in interfaceIssue
- Returns:
- the Priority for this Issue.
-
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.
-
getResolutionObject
Description copied from interface:Issue
Returns the Resolution for this Issue.- Specified by:
getResolutionObject
in interfaceIssue
- Returns:
- the Resolution for this Issue.
-
getKey
-
getNumber
-
getVotes
-
getWatches
- Specified by:
getWatches
in interfaceIssue
-
getCreated
- Specified by:
getCreated
in interfaceIssue
-
getUpdated
- Specified by:
getUpdated
in interfaceIssue
-
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
-
getWorkflowId
- Specified by:
getWorkflowId
in interfaceIssue
-
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.
-
getStatus
-
getStatusId
- Specified by:
getStatusId
in interfaceIssue
-
getStatusObject
- Specified by:
getStatusObject
in interfaceIssue
-
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.
-
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.
-
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.
-
getExternalFieldValue
- Specified by:
getExternalFieldValue
in interfaceIssue
-
isSubTask
public boolean isSubTask() -
getParentId
- Specified by:
getParentId
in interfaceIssue
-
isCreated
public boolean isCreated() -
getParentObject
Description copied from interface:Issue
If this issue is a subtask, return its parent.- Specified by:
getParentObject
in interfaceIssue
- Returns:
- The parent Issue, or null if the issue is not a subtask.
-
getParent
public org.ofbiz.core.entity.GenericValue getParent() -
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
-
isEditable
public boolean isEditable()- Specified by:
isEditable
in interfaceIssue
-
getIssueRenderContext
- Specified by:
getIssueRenderContext
in interfaceIssue
-
getAttachments
- Specified by:
getAttachments
in interfaceIssue
- Returns:
- A collection of
Attachment
objects
-
getLabels
Description copied from interface:Issue
Returns a set of all the labels for this issue or an empty set if none exist yet. -
isArchived
public boolean isArchived()Description copied from interface:Issue
Returns true if issue is archived- Specified by:
isArchived
in interfaceIssue
- Returns:
- is issue 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.
-
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.
-
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.
-
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.
-
store
public void store()Description copied from interface:OfBizValueWrapper
Persist this object's immediate fields.As of JIRA 7.0 this method is considered optional. If this object is actually immutable, then it will throw
UnsupportedOperationException
because there are no possible mutations to store.- Specified by:
store
in interfaceOfBizValueWrapper
-