public class

DefaultReportSubTaskFetcher

extends Object
implements ReportSubTaskFetcher
java.lang.Object
   ↳ com.atlassian.jira.plugin.report.DefaultReportSubTaskFetcher

Summary

Public Constructors
DefaultReportSubTaskFetcher(SearchProvider searchProvider)
Public Methods
List<Issue> getSubTasks(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 at SubTaskInclusionOption.
List<Issue> 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 at SubTaskInclusionOption.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.plugin.report.ReportSubTaskFetcher

Public Constructors

public DefaultReportSubTaskFetcher (SearchProvider searchProvider)

Public Methods

public List<Issue> getSubTasks (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 at SubTaskInclusionOption.

Will return an empty list if nothing found.

Parameters
user For permission checks
parentIssues A list of parent issues
subtaskInclusion A String that is one of the SubTaskInclusionOption. If subtaskInclusion is null, 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.

public List<Issue> 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 at SubTaskInclusionOption.

Will return an empty list if nothing found.

Parameters
user for permission checks
parentIssues a List of Issues
subtaskInclusion
onlyIncludeUnresolved whether to only include unresolved, or to include both resolved and unresolved issues
Returns
  • a List of Issues that are subtasks.