@PublicApi
public interface SearchContext
Modifier and Type | Method and Description |
---|---|
List<IssueContext> |
getAsIssueContexts()
Gets the search context as a list of
IssueContext objects |
List<String> |
getIssueTypeIds()
Issue ids as Strings
|
List<IssueType> |
getIssueTypes()
Returns issue types objects in this SearchContext
|
List<Long> |
getProjectCategoryIds()
Returns selected category IDs.
|
List<Long> |
getProjectIds()
Project ids as Longs.
|
List<Project> |
getProjects()
Returns project objects in this SearchContext
|
Project |
getSingleProject()
Returns the single Project for this SearchContext.
|
boolean |
isForAnyIssueTypes()
Returns true if no specific issue types have been selected
|
boolean |
isForAnyProjects()
Returns whether the context is global or not.
|
boolean |
isSingleProjectContext()
Returns true if there is exactly one Project in this SearchContext.
|
void |
verify()
Verifies that all issue types and projects in the context actually still exists.
|
boolean isForAnyProjects()
boolean isForAnyIssueTypes()
boolean isSingleProjectContext()
Project getSingleProject()
You should first call isSingleProjectContext()
to check if this is valid.
IllegalStateException
- if there is not exactly one Project in this SearchContext.isSingleProjectContext()
List<Long> getProjectCategoryIds()
List<Long> getProjectIds()
List<String> getIssueTypeIds()
List<IssueContext> getAsIssueContexts()
IssueContext
objectsIssueContext
. If no issue types or projects selected. A blank issue context is returned. Never null.void verify()
@Nonnull List<Project> getProjects()
Project
. If no projects are selected, returns an empty list.Copyright © 2002-2022 Atlassian. All Rights Reserved.