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
GLOBALFields 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.GenericValueGet 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.GenericValueIf this issue is a subtask, return its parent.Returns the Priority for this Issue.Returns the Priority for this Issue.org.ofbiz.core.entity.GenericValueGets 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.GenericValueReturns 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()booleanReturns true if issue is archivedbooleanbooleanbooleanvoidstore()Persist this object's immediate fields.
-
Constructor Details
-
GenericIssueWrapper
-
-
Method Details
-
getDelegate
-
getId
-
getProject
public org.ofbiz.core.entity.GenericValue getProject()- Specified by:
getProjectin interfaceIssue
-
getProjectObject
Description copied from interface:IssueGets the Project for this Issue.- Specified by:
getProjectObjectin interfaceIssue- Specified by:
getProjectObjectin interfaceIssueContext- Returns:
- The Project for this Issue.
-
getProjectId
Description copied from interface:IssueGets the ID of the Project for this Issue.- Specified by:
getProjectIdin interfaceIssue- Specified by:
getProjectIdin interfaceIssueContext- Returns:
- The ID of the Project for this Issue.
-
getIssueType
Description copied from interface:IssueGets the IssueType for this Issue.- Specified by:
getIssueTypein interfaceIssue- Specified by:
getIssueTypein interfaceIssueContext- Returns:
- The IssueType for this Issue.
-
getIssueTypeObject
Description copied from interface:IssueGets the IssueType for this Issue.- Specified by:
getIssueTypeObjectin interfaceIssue- Specified by:
getIssueTypeObjectin interfaceIssueContext- Returns:
- The IssueType for this Issue.
-
getIssueTypeId
Description copied from interface:IssueGets the ID of the IssueType for this Issue.- Specified by:
getIssueTypeIdin interfaceIssue- Specified by:
getIssueTypeIdin interfaceIssueContext- Returns:
- The ID of the IssueType for this Issue.
-
getSummary
- Specified by:
getSummaryin interfaceIssue
-
getAssigneeUser
Description copied from interface:IssueReturns 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:
getAssigneeUserin interfaceIssue- Returns:
- the Assignee User.
- See Also:
-
getAssignee
Description copied from interface:IssueReturns 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:
getAssigneein interfaceIssue- Returns:
- the Assignee User.
-
getAssigneeId
- Specified by:
getAssigneeIdin interfaceIssue- Returns:
- a user key of the assignee
-
getComponentObjects
- Specified by:
getComponentObjectsin interfaceIssue- Returns:
- collection of project components (as objects) that this issue is assigned to
-
getComponents
- Specified by:
getComponentsin interfaceIssue- Returns:
- collection of project components (as objects) that this issue is assigned to
-
getReporterUser
Description copied from interface:IssueReturns 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:
getReporterUserin interfaceIssue- Returns:
- the Reporter User.
- See Also:
-
getReporter
Description copied from interface:IssueReturns 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:
getReporterin interfaceIssue- Returns:
- the Reporter User.
-
getReporterId
- Specified by:
getReporterIdin interfaceIssue- Returns:
- a user key of the reporter
-
getCreator
- Specified by:
getCreatorin interfaceIssue
-
getCreatorId
- Specified by:
getCreatorIdin interfaceIssue- Returns:
- a user key of the creator
-
getDescription
- Specified by:
getDescriptionin interfaceIssue
-
getEnvironment
- Specified by:
getEnvironmentin interfaceIssue
-
getAffectedVersions
- Specified by:
getAffectedVersionsin interfaceIssue- Returns:
- a collection of 'affects'
Versionobjects.
-
getFixVersions
- Specified by:
getFixVersionsin interfaceIssue- Returns:
- a collection of fix-for
Versionobjects.
-
getDueDate
- Specified by:
getDueDatein interfaceIssue
-
getSecurityLevel
public org.ofbiz.core.entity.GenericValue getSecurityLevel()Description copied from interface:IssueReturns the Security Level for this Issue.- Specified by:
getSecurityLevelin interfaceIssue- Returns:
- the Security Level for this Issue.
-
getSecurityLevelId
Description copied from interface:IssueReturns the Security Level for this Issue.- Specified by:
getSecurityLevelIdin interfaceIssue- Returns:
- the Security Level for this Issue.
-
getPriority
Description copied from interface:IssueReturns the Priority for this Issue.- Specified by:
getPriorityin interfaceIssue- Returns:
- the Priority for this Issue.
-
getPriorityObject
Description copied from interface:IssueReturns the Priority for this Issue.- Specified by:
getPriorityObjectin interfaceIssue- Returns:
- the Priority for this Issue.
-
getResolutionId
- Specified by:
getResolutionIdin interfaceIssue
-
getResolution
Description copied from interface:IssueReturns the Resolution for this Issue.- Specified by:
getResolutionin interfaceIssue- Returns:
- the Resolution for this Issue.
-
getResolutionObject
Description copied from interface:IssueReturns the Resolution for this Issue.- Specified by:
getResolutionObjectin interfaceIssue- Returns:
- the Resolution for this Issue.
-
getKey
-
getNumber
-
getVotes
-
getWatches
- Specified by:
getWatchesin interfaceIssue
-
getCreated
- Specified by:
getCreatedin interfaceIssue
-
getUpdated
- Specified by:
getUpdatedin interfaceIssue
-
getResolutionDate
Description copied from interface:IssueReturns 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:
getResolutionDatein interfaceIssue- Returns:
- Timestamp of when an issue was resolved, or null
-
getWorkflowId
- Specified by:
getWorkflowIdin interfaceIssue
-
getCustomFieldValue
- Specified by:
getCustomFieldValuein 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:
getStatusIdin interfaceIssue
-
getStatusObject
- Specified by:
getStatusObjectin interfaceIssue
-
getOriginalEstimate
Description copied from interface:IssueThis is the "original estimate" of work to be performed on this issue, in seconds.- Specified by:
getOriginalEstimatein interfaceIssue- Returns:
- the "original estimate" of work to be performed on this issue, in seconds.
-
getEstimate
Description copied from interface:IssueThis 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:
getEstimatein interfaceIssue- Returns:
- the "remaining estimate" of work left to be performed on this issue, in seconds.
-
getTimeSpent
Description copied from interface:IssueThis is the "total time spent" working on this issue, in seconds.- Specified by:
getTimeSpentin interfaceIssue- Returns:
- the "total time spent" working on this issue, in seconds.
-
getExternalFieldValue
- Specified by:
getExternalFieldValuein interfaceIssue
-
isSubTask
public boolean isSubTask() -
getParentId
- Specified by:
getParentIdin interfaceIssue
-
isCreated
public boolean isCreated() -
getParentObject
Description copied from interface:IssueIf this issue is a subtask, return its parent.- Specified by:
getParentObjectin 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:
getSubTasksin interfaceIssue
-
getSubTaskObjects
Description copied from interface:IssueGets all the issue's subtasks.- Specified by:
getSubTaskObjectsin interfaceIssue- Returns:
- A collection of
MutableIssues
-
isEditable
public boolean isEditable()- Specified by:
isEditablein interfaceIssue
-
getIssueRenderContext
- Specified by:
getIssueRenderContextin interfaceIssue
-
getAttachments
- Specified by:
getAttachmentsin interfaceIssue- Returns:
- A collection of
Attachmentobjects
-
getLabels
Description copied from interface:IssueReturns 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:IssueReturns true if issue is archived- Specified by:
isArchivedin interfaceIssue- Returns:
- is issue archived
-
getArchivedByUser
Description copied from interface:IssueReturns the user who archived this issue, or null if it wasn't archived.- Specified by:
getArchivedByUserin interfaceIssue- Returns:
- the user who archived this issue, or null if it wasn't archived.
-
getArchivedById
Description copied from interface:IssueReturns the userid of user who archived this issue, or null if it wasn't archived.- Specified by:
getArchivedByIdin interfaceIssue- Returns:
- the userid of user who archived this issue, or null if it wasn't archived.
-
getArchivedDate
Description copied from interface:IssueReturns the timestamp when this issue was archived, or null if it wasn't archived.- Specified by:
getArchivedDatein interfaceIssue- Returns:
- timestamp when this issue was archived, or null if it wasn't archived.
-
getString
Description copied from interface:OfBizValueWrapperRetrieve a String field.- Specified by:
getStringin interfaceOfBizValueWrapper- Parameters:
name- the field name- Returns:
- the value for the given field.
-
getTimestamp
Description copied from interface:OfBizValueWrapperRetrieve a timestamp field.- Specified by:
getTimestampin interfaceOfBizValueWrapper- Parameters:
name- the field name- Returns:
- the value for the given field.
-
getLong
Description copied from interface:OfBizValueWrapperRetrieve a numeric field.- Specified by:
getLongin 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:IssueGet the backing GenericValue object.- Specified by:
getGenericValuein interfaceIssue- Specified by:
getGenericValuein interfaceOfBizValueWrapper- Returns:
- the backing GenericValue object.
-
store
public void store()Description copied from interface:OfBizValueWrapperPersist 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
UnsupportedOperationExceptionbecause there are no possible mutations to store.- Specified by:
storein interfaceOfBizValueWrapper
-