com.atlassian.jira.issue.IssueManager |
![]() |
Clients of @PublicApi
can expect
that programs compiled against a given version will remain binary compatible with later versions of the
@PublicApi
as per each product's API policy as long as the client does not implement/extend
@PublicApi
interfaces or classes (refer to each product's API policy for the exact
guarantee---usually binary compatibility is guaranteed at least across minor versions).
@PublicApi
interfaces and classes are not designed to be implemented or extended by clients,
we may perform certain types of binary-incompatible changes to these classes and interfaces, but these will not
affect well-behaved clients that do not extend/implement these types (in general, only classes and interfaces
annotated with @PublicSpi
are safe to extend/implement).
A class to manage interactions with issues
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This method is deprecated.
Use
createIssueObject(String, Map) instead since v5.0.
| |||||||||||
This method is deprecated.
Use
createIssueObject(User, Issue) instead. Since v5.0
| |||||||||||
This method is deprecated.
Use
createIssueObject(User, java.util.Map) instead. Since v5.0.
| |||||||||||
Creates an issue.
| |||||||||||
Creates an issue.
| |||||||||||
Creates an issue.
| |||||||||||
This method will delete an issue from JIRA.
| |||||||||||
This method is deprecated.
Use
deleteIssue(com.atlassian.crowd.embedded.api.User, Issue, com.atlassian.jira.event.type.EventDispatchOption, boolean) instead. Since v5.0.
| |||||||||||
Delete issue without firing any events, or sending notifications.
| |||||||||||
This method is deprecated.
Use
deleteIssueNoEvent(com.atlassian.jira.issue.Issue) instead. Since v5.0.
| |||||||||||
Returns an issue that has been moved by searching on the old issue key.
| |||||||||||
Returns all issue keys that are associated with
Issue . | |||||||||||
Get a list of entities (versions, components etc) related to this issue.
| |||||||||||
Get a list of entities (versions, components etc) related to this issue.
| |||||||||||
This method is deprecated.
Use
getIssueObject(Long) instead.
| |||||||||||
This method is deprecated.
Use
getIssueObject(String) instead.
| |||||||||||
Retrieves the
Issue that has the given key, or null if no such Issue exists. | |||||||||||
Retrieves the
Issue that has the given key, or null if no such Issue exists. | |||||||||||
This method is deprecated.
Use
getIssueObjectByWorkflow(Long) instead. Since v5.0
| |||||||||||
Returns the number of issues.
| |||||||||||
Returns the number of issues that exist for the provided project id.
| |||||||||||
Returns all issue ids for a particular project.
| |||||||||||
Retrieves an issue by id.
| |||||||||||
Retrieves the
Issue that has the given key, or null if no such Issue exists. | |||||||||||
Retrieves an issue given a workflow ID.
| |||||||||||
Get issues with the following ids.
| |||||||||||
This method is deprecated.
Use
getIssueIdsWithAffectsVersion(com.atlassian.jira.project.version.Version) ,
getIssueIdsWithFixVersion(com.atlassian.jira.project.version.Version) , or
getIssueIdsWithComponent(com.atlassian.jira.bc.project.component.ProjectComponent) instead. Since v6.1.
| |||||||||||
This method is deprecated.
Use
getIssueObjects(java.util.Collection) instead. Since v5.0
| |||||||||||
This method is deprecated.
Use
getIssueIdsWithAffectsVersion(com.atlassian.jira.project.version.Version) ,
getIssueIdsWithFixVersion(com.atlassian.jira.project.version.Version) , or
getIssueIdsWithComponent(com.atlassian.jira.bc.project.component.ProjectComponent) instead. Since v6.1.
| |||||||||||
This method is deprecated.
only used in test cases, should use a search provider instead.
| |||||||||||
Returns the number of unassigned issues.
| |||||||||||
This method is deprecated.
Use
getVotedIssues(com.atlassian.jira.user.ApplicationUser) instead. Since v6.0.
| |||||||||||
Get a list of issues that the user has voted on and can see.
| |||||||||||
Get a list of issues that the user has voted on.
| |||||||||||
This method is deprecated.
Use
getVotedIssuesOverrideSecurity(com.atlassian.jira.user.ApplicationUser) instead. Since v6.0.
| |||||||||||
This method is deprecated.
Use
getWatchedIssues(com.atlassian.jira.user.ApplicationUser) instead. Since v6.0.
| |||||||||||
Get a list of issues that the user is watching and can see.
| |||||||||||
Get a list of issues that the user is watching
| |||||||||||
This method is deprecated.
Use
getWatchedIssuesOverrideSecurity(com.atlassian.jira.user.ApplicationUser) instead. Since v6.0.
| |||||||||||
This method is deprecated.
Use
getWatchersFor(Issue) instead. Since v6.0.
| |||||||||||
Return a list of watchers for a particular issue.
| |||||||||||
Returns a boolean indicating whether there are unassigned issues.
| |||||||||||
Returns
true if the issue can be edited by the current user. | |||||||||||
Returns
true if the issue can be edited. | |||||||||||
Returns true if issue with a given key exists (it looks for issues having current issue key set for the value,
and moved issue keys that used the key).
| |||||||||||
Used internally when we want to record that an Issue has changed its Issue key (because it has moved project).
| |||||||||||
This method will store the provided issue to the JIRA datastore.
| |||||||||||
This method will store the provided issue to the JIRA datastore.
|
This method is deprecated.
Use createIssueObject(String, Map)
instead since v5.0.
Creates an issue.
remoteUserName | Issue creator |
---|---|
fields | A map of the issue's immediate field values. See the Issue definition in entitymodel.xml for values. |
CreateException | If JIRA is unable to create the issue. |
---|
This method is deprecated.
Use createIssueObject(User, Issue)
instead. Since v5.0
Persists a new issue.
remoteUser | Issue creator |
---|---|
issue | The new issue. |
CreateException | If JIRA is unable to create the issue. |
---|
This method is deprecated.
Use createIssueObject(User, java.util.Map)
instead. Since v5.0.
Creates an issue.
remoteUser | Issue creator |
---|---|
fields | A map of the issue's immediate field values. See the Issue definition in entitymodel.xml for values. |
CreateException | If JIRA is unable to create the issue. |
---|
Creates an issue.
remoteUserName | Issue creator |
---|---|
fields | A map of the issue's immediate field values. See the Issue definition in entitymodel.xml for values. |
CreateException | If JIRA is unable to create the issue. |
---|
Creates an issue.
remoteUser | Issue creator |
---|---|
issue | The new issue. |
CreateException | If JIRA is unable to create the issue. |
---|
Creates an issue.
remoteUser | Issue creator |
---|---|
fields | A map of the issue's immediate field values. See the Issue definition in entitymodel.xml for values. |
CreateException | If JIRA is unable to create the issue. |
---|
This method will delete an issue from JIRA.
This will clean up all issue associations in JIRA and will de-index the issue. This method should be used if you want to exert more control over what happens when JIRA deletes an issue. This method will allow you to specify if an event is dispatched and if so which event is dispatched, seeEventDispatchOption
. This method also allows you to specify if email
notifications should be send to notify users of the deletion.user | who is performing the operation |
---|---|
issue | the issue to delete. |
eventDispatchOption | specifies if an event should be sent and if so which should be sent. |
sendMail | if true mail notifications will be sent, otherwise mail notifications will be suppressed. |
RemoveException | throw if something goes horribly wrong when deleting the issue. |
---|
This method is deprecated.
Use deleteIssue(com.atlassian.crowd.embedded.api.User, Issue, com.atlassian.jira.event.type.EventDispatchOption, boolean)
instead. Since v5.0.
This method will delete an issue from JIRA. This will clean up all issue associations in JIRA and will de-index the issue.
This method should be used if you want to exert more control over what happens when JIRA deletes an issue. This method will allow you to specify if an event is dispatched and if so which event is dispatched, seeEventDispatchOption
. This method also allows you to specify if email
notifications should be send to notify users of the deletion.user | who is performing the operation |
---|---|
issue | the issue to delete. |
eventDispatchOption | specifies if an event should be sent and if so which should be sent. |
sendMail | if true mail notifications will be sent, otherwise mail notifications will be suppressed. |
RemoveException | throw if something goes horribly wrong when deleting the issue. |
---|
Delete issue without firing any events, or sending notifications.
This is preferred in some bulk operations, but normally you would call deleteIssue(com.atlassian.crowd.embedded.api.User, Issue, com.atlassian.jira.event.type.EventDispatchOption, boolean)
issue | issue to delete |
---|
RemoveException | if the removal fails |
---|
This method is deprecated.
Use deleteIssueNoEvent(com.atlassian.jira.issue.Issue)
instead. Since v5.0.
Delete issue without firing any events, or sending notifications.
This is preferred in some bulk operations, but normally you would call deleteIssue(com.atlassian.crowd.embedded.api.User, MutableIssue, com.atlassian.jira.event.type.EventDispatchOption, boolean)
issue | issue to delete |
---|
RemoveException | if the removal fails |
---|
@Internal
classes and interfaces can not expect to be compatible with any version
other than the version they were compiled against (even minor version and milestone releases may break binary
compatibility with respect to @Internal
elements).
Returns an issue that has been moved by searching on the old issue key.
oldIssueKey | the original key of an issue that has since been moved (moving between projects assigns a new key to an issue) |
---|
Issue
object
Returns all issue keys that are associated with Issue
.
Get a list of entities (versions, components etc) related to this issue.
relationName | A IssueRelationConstants string indicating some issue relation |
---|---|
issue | Issue to consider |
GenericEntityException | An exception in the ofbiz Entity Engine. |
---|
Get a list of entities (versions, components etc) related to this issue.
relationName | A IssueRelationConstants string indicating some issue relation |
---|---|
issue | Issue to consider |
GenericEntityException | An exception in the ofbiz Entity Engine. |
---|
This method is deprecated.
Use getIssueObject(Long)
instead.
Retrieves an issue by its id.
id | Issue ID. |
---|
DataAccessException | if there is an error in the Data Access Layer. |
---|
This method is deprecated.
Use getIssueObject(String)
instead.
Retrieves the issue as a GenericValue with the given key.
key | the issue key. |
---|
GenericEntityException | if there is a problem getting the data |
---|
@Internal
or @PublicApi
.
Retrieves the Issue
that has the given key, or null if no such Issue exists.
This method will strictly only return the issue which has current issue key equal to the one given.
key | The Issue key. |
---|
MutableIssue
with the given key, or null if no such Issue exists.DataAccessException | if there is an error in the Data Access Layer. |
---|
@Internal
or @PublicApi
.
Retrieves the Issue
that has the given key, or null if no such Issue exists.
This method will ignore case of issue key.
key | The Issue key. |
---|
MutableIssue
with the given key, or null if no such Issue exists.DataAccessException | if there is an error in the Data Access Layer. |
---|
This method is deprecated.
Use getIssueObjectByWorkflow(Long)
instead. Since v5.0
Retrieves an issue GenericValue given a workflow ID. This is used when transitioning through the various steps of a workflow.
wfid | workflow ID. |
---|
GenericEntityException | An exception in the ofbiz Entity Engine. |
---|
Returns the number of issues.
Returns the number of issues that exist for the provided project id.
projectId | identifies the project which the issues are associated with |
---|
Returns all issue ids for a particular project. This uses constant memory (i.e. doesn't load all issues into memory.
projectId | Project ID. |
---|
GenericEntityException | An exception in the ofbiz Entity Engine. |
---|
Retrieves an issue by id. This method will always return a new instance of an issue.
id | the id |
---|
DataAccessException | if there is an error in the Data Access Layer. |
---|
Retrieves the Issue
that has the given key, or null if no such Issue exists.
This method will always return a new instance of an issue object if the issue exists.
key | The Issue key. |
---|
MutableIssue
with the given key, or null if no such Issue exists.DataAccessException | if there is an error in the Data Access Layer. |
---|
Retrieves an issue given a workflow ID. This is used when transitioning through the various steps of a workflow.
workflowId | workflow ID. |
---|
GenericEntityException | An exception in the ofbiz Entity Engine. |
---|
Get issues with the following ids. The issues are sorted in the order that the ids were given in. Any ids that are not found will be missing from the list. That is list will not contains nulls.
ids | Issue IDs. |
---|
MutableIssue
s
This method is deprecated.
Use getIssueIdsWithAffectsVersion(com.atlassian.jira.project.version.Version)
,
getIssueIdsWithFixVersion(com.atlassian.jira.project.version.Version)
, or
getIssueIdsWithComponent(com.atlassian.jira.bc.project.component.ProjectComponent)
instead. Since v6.1.
Get a list of issues related to an entity (version, component etc).
relationName | A IssueRelationConstants string indicating some relation of entity |
---|---|
entity | The entity related to the issues we're after |
MutableIssue
s associated with an entity.GenericEntityException | if it failed to get the list of issues. |
---|
This method is deprecated.
Use getIssueObjects(java.util.Collection)
instead. Since v5.0
Get issues with the following ids. The issues are sorted in the order that the ids were given in.
ids | Issue IDs. |
---|
This method is deprecated.
Use getIssueIdsWithAffectsVersion(com.atlassian.jira.project.version.Version)
,
getIssueIdsWithFixVersion(com.atlassian.jira.project.version.Version)
, or
getIssueIdsWithComponent(com.atlassian.jira.bc.project.component.ProjectComponent)
instead. Since v6.1.
Get a list of issues related to an entity (version, component etc).
relationName | A IssueRelationConstants string indicating some relation of entity |
---|---|
entity | The entity related to the issues we're after |
GenericEntityException | An exception in the ofbiz Entity Engine. |
---|
This method is deprecated.
only used in test cases, should use a search provider instead.
Get all the issues for a given project.
project | the Project |
---|
GenericEntityException | If there are errors in the persistence layer. |
---|
Returns the number of unassigned issues.
This method is deprecated.
Use getVotedIssues(com.atlassian.jira.user.ApplicationUser)
instead. Since v6.0.
Get a list of issues that the user has voted on and can see.
user | The user. |
---|
Issue
objects the user has voted on.GenericEntityException | An exception in the ofbiz Entity Engine. |
---|
Get a list of issues that the user has voted on and can see.
user | The user. |
---|
Issue
objects the user has voted on.Get a list of issues that the user has voted on.
user | The user. |
---|
Issue
objects the user has voted on.
This method is deprecated.
Use getVotedIssuesOverrideSecurity(com.atlassian.jira.user.ApplicationUser)
instead. Since v6.0.
Get a list of issues that the user has voted on.
user | The user. |
---|
Issue
objects the user has voted on.GenericEntityException | An exception in the ofbiz Entity Engine. |
---|
This method is deprecated.
Use getWatchedIssues(com.atlassian.jira.user.ApplicationUser)
instead. Since v6.0.
Get a list of issues that the user is watching and can see.
user | the User. |
---|
Issue
objectsGet a list of issues that the user is watching and can see.
user | the User. |
---|
Issue
objectsGet a list of issues that the user is watching
user | the User. |
---|
Issue
objects
This method is deprecated.
Use getWatchedIssuesOverrideSecurity(com.atlassian.jira.user.ApplicationUser)
instead. Since v6.0.
Get a list of issues that the user is watching
user | the User. |
---|
Issue
objects
This method is deprecated.
Use getWatchersFor(Issue)
instead. Since v6.0.
Return a list of watchers for a particular issue.
issue | the Issue |
---|
User
s.Return a list of watchers for a particular issue.
issue | the Issue |
---|
User
s.
Returns a boolean indicating whether there are unassigned issues.
Returns true
if the issue can be edited by the current user. This is determined by looking at both the
user's permissions and the workflow step the issue is in.
issue | the issue you want to edit |
---|---|
user | the user who will be performing the edit |
true
if the user has permission and the issue is in an editable workflow step
Returns true
if the issue can be edited. This is determined by looking at the workflow step the issue is in.
issue | the Issue. |
---|
true
if the issue can be edited. This is determined by looking at the workflow step the issue is in.
@Internal
or @PublicApi
.
Returns true if issue with a given key exists (it looks for issues having current issue key set for the value, and moved issue keys that used the key).
GenericEntityException |
---|
@Internal
classes and interfaces can not expect to be compatible with any version
other than the version they were compiled against (even minor version and milestone releases may break binary
compatibility with respect to @Internal
elements).
Used internally when we want to record that an Issue has changed its Issue key (because it has moved project).
oldIssue | The issue with it's old issue key |
---|
This method will store the provided issue to the JIRA datastore. The issue will be saved and re-indexed. This method performs no permission checks.
This method should be used if you want to exert more control over what happens when JIRA updates an issue. This method will allow you to specify if an event is dispatched and if so which event is dispatched, seeEventDispatchOption
. This method also allows you to specify if email
notifications should be send to notify users of the update.user | who is performing the operation |
---|---|
issue | the issue to update |
eventDispatchOption | specifies if an event should be sent and if so which should be sent. |
sendMail | if true mail notifications will be sent, otherwise mail notifications will be suppressed. |
This method will store the provided issue to the JIRA datastore. The issue will be saved and re-indexed. This method performs no permission checks.
This method should be used if you want to exert more control over what happens when JIRA updates an issue.user | who is performing the operation |
---|---|
issue | the issue to update |
updateIssueRequest | details about how to perform the update, including user context, event dispatch strategy and history metadata |