Class EpicHistoryDataCollector

java.lang.Object
com.atlassian.greenhopper.service.issue.callback.AbstractCompoundDataCallback
com.atlassian.greenhopper.service.issue.EpicHistoryDataCollector
All Implemented Interfaces:
IssueDataCallback

public class EpicHistoryDataCollector extends AbstractCompoundDataCallback
Collects Epic history data for passed issues
  • Constructor Details

    • EpicHistoryDataCollector

      public EpicHistoryDataCollector(com.atlassian.jira.issue.fields.CustomField epicLinkField, com.atlassian.jira.issue.Issue epic)
  • Method Details

    • getFields

      public Set<String> getFields()
      Description copied from interface: IssueDataCallback
      see DocumentConstants for possible values. These are the issue fields that we want to read from the Lucene index.
    • fieldData

      protected void fieldData(Long issueId, String issueKey, IssueFieldValueProvider issueFieldValueProvider)
      Description copied from class: AbstractCompoundDataCallback
      This callback is being called for every issue that matches the query. For memory efficiency, try to avoid buffering all results in memory but rather stream them to the target object, like a REST template.

      This is only called once per issue.

      Specified by:
      fieldData in class AbstractCompoundDataCallback
      issueFieldValueProvider - : The data from the document that matches our selected fields.
    • getIssueEpicHistory

      public Map<String,List<EpicLinkHistoryEntry>> getIssueEpicHistory()