@PublicApi
public interface ChangeHistoryManager
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
findAllPossibleValues(String field)
Deprecated.
since 5.2 - and will be removed in 6.0, it sucks performance wise and can kill a JIRA instance
if you really need to find all values then use
JiraLuceneFieldFinder |
Issue |
findMovedIssue(String originalKey)
Deprecated.
Use
IssueManager.getIssue(String) instead. Since v6.1. |
Collection<Issue> |
findUserHistory(com.atlassian.crowd.embedded.api.User remoteUser,
Collection<String> userkeys,
Collection<Project> projects,
int maxResults)
Find a list of issues that the given users have acted on with the option to limit the projects included
in the search.
|
Collection<Issue> |
findUserHistory(com.atlassian.crowd.embedded.api.User remoteUser,
Collection<String> userkeys,
int maxResults)
Find a list of issues that the given users have acted on.
|
List<ChangeHistoryItem> |
getAllChangeItems(Issue issue)
Returns a List of
ChangeHistoryItem 's for the given issue |
List<ChangeHistory> |
getChangeHistories(Issue issue)
Returns a List of ChangeHistory entities
|
List<ChangeHistory> |
getChangeHistoriesForUser(Issue issue,
com.atlassian.crowd.embedded.api.User remoteUser)
Returns a List of ChangeHistory entities for a single issue.
|
List<ChangeHistory> |
getChangeHistoriesForUser(Iterable<Issue> issues,
com.atlassian.crowd.embedded.api.User remoteUser)
Returns a List of ChangeHistory entities for multiple issues.
|
List<ChangeHistory> |
getChangeHistoriesSince(Issue issue,
Date since)
Returns a List of ChangeHistory entities that occurred after the provided date.
|
ChangeHistory |
getChangeHistoryById(Long changeGroupId) |
List<ChangeItemBean> |
getChangeItemsForField(Issue issue,
String changeItemFieldName)
Returns a List of ChangeItemBean's for the given issue which also are for the provided changeItemFieldName (i.e.
|
Collection<String> |
getPreviousIssueKeys(Long issueId)
Deprecated.
Use
IssueManager.getAllIssueKeys(Long) instead. Since v6.1. |
Collection<String> |
getPreviousIssueKeys(String issueKey)
Deprecated.
Use
IssueManager.getAllIssueKeys(Long) instead. Since v6.1. |
void |
removeAllChangeItems(Issue issue)
Remove all change items associated with an issue.
|
List<ChangeHistory> getChangeHistories(Issue issue)
issue
- the issue.@Nonnull List<ChangeHistory> getChangeHistoriesSince(@Nonnull Issue issue, @Nonnull Date since)
issue
- the issue. Must not be null.since
- only change histories made after this date will be returned. Must not be null.List<ChangeHistory> getChangeHistoriesForUser(Issue issue, com.atlassian.crowd.embedded.api.User remoteUser)
issue
- the issue.remoteUser
- the user who is asking.for a more
efficient way to read change histories for multiple issues
List<ChangeHistory> getChangeHistoriesForUser(Iterable<Issue> issues, com.atlassian.crowd.embedded.api.User remoteUser)
getChangeHistoriesForUser(com.atlassian.jira.issue.Issue, com.atlassian.crowd.embedded.api.User)
and should be
prefered whenever possible.issues
- the issues.remoteUser
- the user who is asking.List<ChangeItemBean> getChangeItemsForField(Issue issue, String changeItemFieldName)
issue
- the issue the change items are associated with, not null.changeItemFieldName
- the field name the change item is stored under, not null or empty.List<ChangeHistoryItem> getAllChangeItems(Issue issue)
ChangeHistoryItem
's for the given issueissue
- the issue@Nullable ChangeHistory getChangeHistoryById(Long changeGroupId)
@Deprecated Issue findMovedIssue(String originalKey) throws org.ofbiz.core.entity.GenericEntityException
IssueManager.getIssue(String)
instead. Since v6.1.originalKey
- the original key of an issue that has since been moved (moving between projects assigns a new
key to an issue)Issue
objectorg.ofbiz.core.entity.GenericEntityException
- if an unexpected error occurs@Deprecated Collection<String> getPreviousIssueKeys(String issueKey)
IssueManager.getAllIssueKeys(Long)
instead. Since v6.1.issueKey
- The current issue key.@Deprecated Collection<String> getPreviousIssueKeys(Long issueId)
IssueManager.getAllIssueKeys(Long)
instead. Since v6.1.getPreviousIssueKeys(String)
but is slightly more efficient since no lookup of the
issue id needs to be performed. If you have an issue object available with the issue's id use this method.issueId
- The id of the issue being looked up.Collection<Issue> findUserHistory(com.atlassian.crowd.embedded.api.User remoteUser, Collection<String> userkeys, int maxResults)
remoteUser
- The user executing this request.userkeys
- The keys of users to find the history for. If null, returns the history for all users. If empty,
no results will be found.maxResults
- The maxmimum number of issues to returnCollection<Issue> findUserHistory(com.atlassian.crowd.embedded.api.User remoteUser, Collection<String> userkeys, Collection<Project> projects, int maxResults)
remoteUser
- The user executing this request.userkeys
- The keys of users to find the history for. If null, returns the history for all users. If empty,
no results will be found.projects
- The projects to include issues frommaxResults
- The maxmimum number of issues to returnMap<String,String> findAllPossibleValues(String field)
JiraLuceneFieldFinder
field
- The field name.void removeAllChangeItems(Issue issue)
issue
- affected issueCopyright © 2002-2015 Atlassian. All Rights Reserved.