java.lang.Object | ||
↳ | com.atlassian.jira.issue.AbstractIssue | |
↳ | com.atlassian.jira.issue.IssueImpl |
Issue implementation which caches read data, and can persist its data to the database (via an Ofbiz GenericValue.
[Expand]
Inherited Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.jira.issue.AbstractIssue
| |||||||||||
From interface
com.atlassian.jira.issue.context.IssueContext
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Load an issue backed by the database.
| |||||||||||
Create an issue, cloning another issue's data.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the Assignee User.
| |||||||||||
Returns the Assignee User.
| |||||||||||
This is the "remaining estimate" of work left to be performed on this issue, in milliseconds.
| |||||||||||
Get the backing GenericValue object.
| |||||||||||
This method is deprecated.
You should construct this yourself if at all possible,
or use
getIssue(org.ofbiz.core.entity.GenericValue) instead.
| |||||||||||
Gets the IssueType for this Issue.
| |||||||||||
Gets the ID of the IssueType for this Issue.
| |||||||||||
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 last
resetModifiedFields() call. | |||||||||||
This is the "original estimate" of work to be performed on this issue, in milliseconds.
| |||||||||||
This method is deprecated.
Use
getParentObject() instead.
| |||||||||||
If this issue is a subtask, return its parent.
| |||||||||||
Returns the Priority for this Issue.
| |||||||||||
Gets the Project for this IssueContext.
| |||||||||||
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 Security Level for this Issue.
| |||||||||||
Returns the Security Level for this Issue.
| |||||||||||
Retrieve a String field.
| |||||||||||
Gets all the issue's subtasks.
| |||||||||||
This is the "total time spent" working on this issue, in milliseconds.
| |||||||||||
Retrieve a timestamp field.
| |||||||||||
Reset the internal list of modified fields.
| |||||||||||
Sets the user that this issue is assigned to.
| |||||||||||
Sets the components for this Issue.
| |||||||||||
Sets the components for this Issue.
| |||||||||||
Sets a custom field value on this Issue Object, but does not write it to the database.
| |||||||||||
This can be used bya field to "place" a custom object into the MutableIssue so that it can retrived it by key at
a later point via the
getModifiedFields() and getExternalFieldValue(String) . | |||||||||||
This can be used bya field to "place" a custom object into the MutableIssue so that it can retrived it by key at
a later point via the
getModifiedFields() and getExternalFieldValue(String) . | |||||||||||
Sets the IssueType for this Issue.
| |||||||||||
Set the issue type, by type id.
| |||||||||||
Sets the IssueType for this Issue.
| |||||||||||
Set the labels for this issue.
| |||||||||||
Sets the ParentId of this Issue.
| |||||||||||
Sets the parent Issue Object for this Issue (subtask).
| |||||||||||
Sets the priority for this Issue.
| |||||||||||
Sets the priority for this Issue.
| |||||||||||
Sets the Project for this Issue.
| |||||||||||
Sets the project by id.
| |||||||||||
Sets the Project for this Issue.
| |||||||||||
Sets the reporter in this issue.
| |||||||||||
Sets the resolution for this Issue.
| |||||||||||
Sets the resolution for this Issue.
| |||||||||||
Sets the SecurityLevel for this Issue.
| |||||||||||
Sets the SecurityLevel for this Issue.
| |||||||||||
Sets the status for this Issue.
| |||||||||||
Set issue's status by status id ("1", "2" etc).
| |||||||||||
Sets the status for this Issue.
| |||||||||||
Persist this object's immediate fields.
| |||||||||||
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.atlassian.jira.issue.AbstractIssue
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.atlassian.jira.entity.WithId
| |||||||||||
From interface
com.atlassian.jira.entity.WithKey
| |||||||||||
From interface
com.atlassian.jira.issue.Issue
| |||||||||||
From interface
com.atlassian.jira.issue.MutableIssue
| |||||||||||
From interface
com.atlassian.jira.issue.context.IssueContext
| |||||||||||
From interface
com.atlassian.jira.ofbiz.OfBizValueWrapper
|
Load an issue backed by the database.
genericValue | generic value of the issue |
---|---|
issueManager | issue manager |
projectManager | project manager |
versionManager | version manager |
issueSecurityLevelManager | issue security level manager |
constantsManager | constant manager |
subTaskManager | sub-task manager |
attachmentManager | attachment manager |
labelManager | label manager |
projectComponentManager | project component manager |
userManager | user manager |
Create an issue, cloning another issue's data.
issue | issue |
---|---|
issueManager | issue manager |
projectManager | project manager |
versionManager | version manager |
issueSecurityLevelManager | issue security level manager |
constantsManager | constant manager |
subTaskManager | sub-task manager |
attachmentManager | attachment manager |
labelManager | label manager |
projectComponentManager | project component manager |
userManager | user manager |
Returns the Assignee User.
Warning: previous incarnations of this method returnedcom.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.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 forgetAssignee()
This is the "remaining estimate" of work left to be performed on this issue, in milliseconds.
A better name would be getRemainingEstimate but for historical reasons it is called what it is called.Get the backing GenericValue object.
This method is deprecated.
You should construct this yourself if at all possible,
or use getIssue(org.ofbiz.core.entity.GenericValue)
instead.
This is a static way of instantiating an Issue Object.
genericValue | generic value of the issue |
---|
Gets the IssueType for this Issue.
Gets the ID of the IssueType for this Issue.
Returns a set of all the labels for this issue or an empty set if none exist yet.
Retrieve a numeric field.
name | the field name |
---|
Retrieve a map of issue fields whose values have been set (since object creation or last resetModifiedFields()
call.
IssueFieldConstants
and the value
objects in the ModifiedValue are field-specific.
This is the "original estimate" of work to be performed on this issue, in milliseconds.
If this issue is a subtask, return its parent.
Returns the Priority for this Issue.
Gets the Project for this IssueContext.
A null return value is used to represent that this context applies to all Projects.
Gets the ID of the Project for this Issue.
Gets the Project for this Issue.
Returns the Reporter User.
Warning: previous incarnations of this method returnedcom.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.Returns the Reporter User.
This will return a non-null User object even if the User has been deleted. Legacy synonym forgetReporter()
.Returns the Resolution for this 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.
Returns the Security Level for this Issue.
Returns the Security Level for this Issue.
Retrieve a String field.
name | the field name |
---|
Gets all the issue's subtasks.
MutableIssue
s
This is the "total time spent" working on this issue, in milliseconds.
Retrieve a timestamp field.
name | the field name |
---|
Reset the internal list of modified fields.
Sets the user that this issue is assigned to. Note that this should be the userkey, not the username.
assigneeKey | The user key. |
---|
Sets the components for this Issue.
components | the new components value |
---|
Sets the components for this Issue.
components | the new components value |
---|
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, use updateIssue(com.atlassian.jira.issue.fields.layout.field.FieldLayoutItem, MutableIssue, java.util.Map)
customField | the CustomField |
---|---|
value | the value. |
This can be used bya field to "place" a custom object into the MutableIssue so that it can retrived it by key at
a later point via the getModifiedFields()
and getExternalFieldValue(String)
.
getNewValue()
The getOldValue()
will be null.fieldId | the field id to use as a key |
---|---|
newValue | the new value to place in a ModifiedValue
|
This can be used bya field to "place" a custom object into the MutableIssue so that it can retrived it by key at
a later point via the getModifiedFields()
and getExternalFieldValue(String)
.
getNewValue()
and the oldValue will be placed
in getOldValue()
fieldId | the field id to use as a key |
---|---|
oldValue | the old value to place in a ModifiedValue |
newValue | the new value to place in a ModifiedValue
|
Sets the IssueType for this Issue.
issueType | the new IssueType |
---|
Sets the IssueType for this Issue.
issueType | the new IssueType |
---|
Set the labels for this issue.
labels | the labels for this issue |
---|
Sets the ParentId of this Issue.
parentId | The new parentId. |
---|
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.
parentIssue | the required parent Issue for this subtask. |
---|
IllegalArgumentException |
---|
Sets the priority for this Issue.
priority | the new priority value |
---|
Sets the priority for this Issue.
priority | the new priority value |
---|
Sets the Project for this Issue.
project | the new Project |
---|
Sets the project by id.
projectId | The id of the project |
---|
Sets the Project for this Issue.
project | the new Project |
---|
Sets the reporter in this issue. Note that this should be the userkey, not the username.
reporterId | userkey of the desired reporter. |
---|
Sets the resolution for this Issue.
resolution | the new resolution value |
---|
Sets the resolution for this Issue.
resolution | the new resolution value |
---|
Sets the SecurityLevel for this Issue.
securityLevel | the new SecurityLevel value |
---|
Sets the SecurityLevel for this Issue.
securityLevelId | the new SecurityLevel value |
---|
Sets the status for this Issue.
status | the new status value |
---|
Set issue's status by status id ("1", "2" etc).
statusId | the new StatusId. |
---|
Sets the status for this Issue.
status | the new status value |
---|
Persist this object's immediate fields.