Package com.atlassian.jira.plugin.report
Interface ReportSubTaskFetcher
- All Known Implementing Classes:
DefaultReportSubTaskFetcher
Responsible for getting SubTasks for parent Issues.
- Since:
- v6.3
-
Method Summary
Modifier and TypeMethodDescriptiongetSubTasks(ApplicationUser user, List<Issue> parentIssues, SubTaskInclusionOption subtaskInclusion, boolean onlyIncludeUnresolved) Given a list of parent issues, returns a list of subtasks visible to the user, subject to the subtask inclusion policy atSubTaskInclusionOption.getSubTasks(ApplicationUser user, List<Issue> parentIssues, SubTaskInclusionOption subtaskInclusion, boolean onlyIncludeUnresolved, int limit) Given a list of parent issues, returns a list of subtasks visible to the user, subject to the subtask inclusion policy atSubTaskInclusionOption.getSubTasksForUser(ApplicationUser user, List<Issue> parentIssues, SubTaskInclusionOption subtaskInclusion, boolean onlyIncludeUnresolved) Given a list of parent issues, returns a list of subtasks visible to the user, subject to the subtask inclusion policy atSubTaskInclusionOption.
-
Method Details
-
getSubTasks
List<Issue> getSubTasks(ApplicationUser user, List<Issue> parentIssues, SubTaskInclusionOption subtaskInclusion, boolean onlyIncludeUnresolved) throws SearchException Given a list of parent issues, returns a list of subtasks visible to the user, subject to the subtask inclusion policy atSubTaskInclusionOption.Will return an empty list if nothing found.
- Parameters:
user- For permission checksparentIssues- A list of parent issuessubtaskInclusion- A String that is one of theSubTaskInclusionOption. If subtaskInclusion isnull, an empty list is returned.onlyIncludeUnresolved- Whether to only include unresolved, or to include both resolved and unresolved issues- Returns:
- a List of Issues that are subtasks.
- Throws:
SearchException- if the search subsystem fails.
-
getSubTasks
List<Issue> getSubTasks(ApplicationUser user, List<Issue> parentIssues, SubTaskInclusionOption subtaskInclusion, boolean onlyIncludeUnresolved, int limit) throws SearchException Given a list of parent issues, returns a list of subtasks visible to the user, subject to the subtask inclusion policy atSubTaskInclusionOption.Will return an empty list if nothing found.
- Parameters:
user- For permission checksparentIssues- A list of parent issuessubtaskInclusion- A String that is one of theSubTaskInclusionOption. If subtaskInclusion isnull, an empty list is returned.onlyIncludeUnresolved- Whether to only include unresolved, or to include both resolved and unresolved issueslimit- A limit on number of subtasks to be returned- Returns:
- a List of Issues that are subtasks.
- Throws:
SearchException- if the search subsystem fails.
-
getSubTasksForUser
List<Issue> getSubTasksForUser(ApplicationUser user, List<Issue> parentIssues, SubTaskInclusionOption subtaskInclusion, boolean onlyIncludeUnresolved) throws SearchException Given a list of parent issues, returns a list of subtasks visible to the user, subject to the subtask inclusion policy atSubTaskInclusionOption.Will return an empty list if nothing found.
- Parameters:
user- for permission checksparentIssues- a List of IssuessubtaskInclusion-onlyIncludeUnresolved- whether to only include unresolved, or to include both resolved and unresolved issues- Returns:
- a List of Issues that are subtasks.
- Throws:
SearchException- if the search subsystem fails.
-