Codota Logo
ChangeHistoryManager.getPreviousIssueKeys
Code IndexAdd Codota to your IDE (free)

How to use
getPreviousIssueKeys
method
in
com.atlassian.jira.issue.changehistory.ChangeHistoryManager

Best Java code snippets using com.atlassian.jira.issue.changehistory.ChangeHistoryManager.getPreviousIssueKeys (Showing top 2 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
FileOutputStream f =
  • Codota IconFile file;new FileOutputStream(file)
  • Codota IconString name;new FileOutputStream(name)
  • Codota IconFile file;new FileOutputStream(file, true)
  • Smart code suggestions by Codota
}
origin: com.atlassian.jira.plugins/jira-fisheye-plugin

  public Collection<String> getOldIssueKeys(final String issueKey) {
    return changeHistoryManager.getPreviousIssueKeys(issueKey);
  }
}
origin: com.atlassian.jira.plugins/jira-dvcs-connector-api

@SuppressWarnings("deprecation")
public static Set<String> getAllIssueKeys(IssueManager issueManager, ChangeHistoryManager changeHistoryManager, Issue issue) {
  if (GET_ALL_ISSUE_KEYS_EXISTS) {
    return issueManager.getAllIssueKeys(issue.getId());
  } else {
    Set<String> allIssueKeys = new HashSet<>();
    if (issue != null) {
      // adding current issue key
      allIssueKeys.add(issue.getKey());
      // Adding previous issue keys
      allIssueKeys.addAll(changeHistoryManager.getPreviousIssueKeys(issue.getId()));
    }
    return allIssueKeys;
  }
}
com.atlassian.jira.issue.changehistoryChangeHistoryManagergetPreviousIssueKeys

Javadoc

Returns the same as #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.

Popular methods of ChangeHistoryManager

  • getChangeHistoriesForUser
    Returns a List of ChangeHistory entities for multiple issues. This method is much more efficient tha
  • removeAllChangeItems
    Remove all change items associated with an issue.
  • findUserHistory
    Find a list of issues that the given users have acted on with the option to limit the projects inclu
  • getAllChangeItems
    Returns a List of com.atlassian.jira.issue.changehistory.ChangeHistoryItem's for the given issue
  • getChangeHistories
    Returns a List of ChangeHistory entities
  • getChangeHistoryById
  • getChangeItemsForField
    Returns a List of ChangeItemBean's for the given issue which also are for the provided changeItemFie

Popular in Java

  • Running tasks concurrently on multiple threads
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
    Schedules the specified task for repeated fixed-rate execution, beginning after the specified delay.
  • addToBackStack (FragmentTransaction)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • BigInteger (java.math)
    Immutable arbitrary-precision integers. All operations behave as if BigIntegers were represented in
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now