public class PopularIssueTypesUtilImpl extends Object implements PopularIssueTypesUtil
PopularIssueTypesUtil.PopularIssueTypesHolder
Constructor and Description |
---|
PopularIssueTypesUtilImpl(IssueTypeSchemeManager issueTypeSchemeManager,
IssueConstantFactory factory) |
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.
|
public PopularIssueTypesUtilImpl(IssueTypeSchemeManager issueTypeSchemeManager, IssueConstantFactory factory)
public List<IssueType> getPopularIssueTypesForProject(Project project, ApplicationUser user)
PopularIssueTypesUtil
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.
getPopularIssueTypesForProject
in interface PopularIssueTypesUtil
project
- the project to queryuser
- the reporter to query; use null if the reporter is not importantpublic List<IssueType> getOtherIssueTypesForProject(Project project, ApplicationUser user)
PopularIssueTypesUtil
getOtherIssueTypesForProject
in interface PopularIssueTypesUtil
project
- the project to queryuser
- the reporter to query; use null if the reporter is not importantpublic PopularIssueTypesUtil.PopularIssueTypesHolder getPopularAndOtherIssueTypesForProject(Project project, ApplicationUser user)
PopularIssueTypesUtil
#getPopularIssueTypesForProject(com.atlassian.jira.project.Project, User)
And
#getOtherIssueTypesForProject(com.atlassian.jira.project.Project, User)
This is more performant than the two seperate calls.
getPopularAndOtherIssueTypesForProject
in interface PopularIssueTypesUtil
project
- the project to queryuser
- the reporter to query; use null if the reporter is not importantCopyright © 2002-2024 Atlassian. All Rights Reserved.