Class SprintAndProjectsCallback
java.lang.Object
com.atlassian.greenhopper.service.issue.callback.AbstractIssueDataCallback
com.atlassian.greenhopper.service.issue.callback.SprintAndProjectsCallback
- All Implemented Interfaces:
IssueDataCallback
Collects sprints and associated project ids
-
Field Summary
Fields inherited from class com.atlassian.greenhopper.service.issue.callback.AbstractIssueDataCallback
fields
-
Constructor Summary
ConstructorsConstructorDescriptionSprintAndProjectsCallback
(com.atlassian.jira.issue.fields.CustomField sprintCustomField) -
Method Summary
Modifier and TypeMethodDescriptionvoid
This callback is being called for every issue that matches the query.see DocumentConstants for possible values.Get the sprint ids mapped to a set of project idsvoid
issueComplete
(Long issueId, String issueKey, io.atlassian.fugue.Option<org.apache.lucene.document.Document> issueDoc) Called when all fieldData was returned for a single issue.Methods inherited from class com.atlassian.greenhopper.service.issue.callback.AbstractIssueDataCallback
requiresIssueDoc
-
Constructor Details
-
SprintAndProjectsCallback
public SprintAndProjectsCallback(com.atlassian.jira.issue.fields.CustomField sprintCustomField)
-
-
Method Details
-
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.- Specified by:
getFields
in interfaceIssueDataCallback
- Overrides:
getFields
in classAbstractIssueDataCallback
-
fieldData
Description copied from interface:IssueDataCallback
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.- Specified by:
fieldData
in interfaceIssueDataCallback
- Overrides:
fieldData
in classAbstractIssueDataCallback
fieldName
- : The name of the field that this value belongs to. One of the fields specified in getFields(). See DocumentConstants for possible values.data
- : The raw Lucene data for the given field. Can be null.
-
issueComplete
public void issueComplete(Long issueId, String issueKey, io.atlassian.fugue.Option<org.apache.lucene.document.Document> issueDoc) Description copied from interface:IssueDataCallback
Called when all fieldData was returned for a single issue.- Specified by:
issueComplete
in interfaceIssueDataCallback
- Overrides:
issueComplete
in classAbstractIssueDataCallback
- Parameters:
issueId
- is the issue idissueKey
- is the issue keyissueDoc
- is an optional Lucene issue document
-
getSprintToProjects
Get the sprint ids mapped to a set of project ids
-