public interface PopularIssueTypesUtil
Note that none of these methods ever deal in sub tasks, only "full" issue types are considered.
Modifier and Type | Interface and Description |
---|---|
static class |
PopularIssueTypesUtil.PopularIssueTypesHolder |
Modifier and Type | Method and Description |
---|---|
List<IssueType> |
getOtherIssueTypesForProject(Project project,
ApplicationUser user)
Returns the set difference between all available issue types for a project, and the popular issue types for a
project/user context.
|
PopularIssueTypesUtil.PopularIssueTypesHolder |
getPopularAndOtherIssueTypesForProject(Project project,
ApplicationUser user)
Returns a holder that contains both - popular and other issue Types.
|
List<IssueType> |
getPopularIssueTypesForProject(Project project,
ApplicationUser user)
Returns the most popular non-subtask issue types used for issue creation in the specified project and by the
specified user, within a designated time frame.
|
List<IssueType> getPopularIssueTypesForProject(Project project, ApplicationUser user)
If the user is not specified, or has not created any issues in that time frame, this method returns the most popular issue types for the entire project.
The number of issue types returned by this method is hard-coded in the implementation. If the number of popular issue types available is less than that, the remainder of the list will be filled out with any available issue types from the project, in the order of which they are defined in the issue type scheme.
project
- the project to queryuser
- the reporter to query; use null if the reporter is not importantList<IssueType> getOtherIssueTypesForProject(Project project, ApplicationUser user)
project
- the project to queryuser
- the reporter to query; use null if the reporter is not importantPopularIssueTypesUtil.PopularIssueTypesHolder getPopularAndOtherIssueTypesForProject(Project project, ApplicationUser user)
#getPopularIssueTypesForProject(com.atlassian.jira.project.Project, User)
And
#getOtherIssueTypesForProject(com.atlassian.jira.project.Project, User)
This is more performant than the two seperate calls.
project
- the project to queryuser
- the reporter to query; use null if the reporter is not importantCopyright © 2002-2022 Atlassian. All Rights Reserved.