@ExperimentalApi
public interface ArchivedIssueSearchService
Modifier and Type | Interface and Description |
---|---|
static class |
ArchivedIssueSearchService.ArchiveSearchRequest |
static class |
ArchivedIssueSearchService.ValidationResult |
Modifier and Type | Method and Description |
---|---|
boolean |
archivedProjectsOrIssuesExist() |
int |
count(ArchivedIssueSearchService.ValidationResult validationResult)
Count number of issues in archive using given criteria.
|
List<Issue> |
getArchivedIssuesMatchingTypesInProjects(List<Long> projectIds,
List<String> issueTypeIds)
For the projects specified by
projectIds , finds archived issues that are of the types given by
issueTypIds . |
java.util.stream.Stream<ArchivedIssue> |
search(ArchivedIssueSearchService.ValidationResult validationResult)
Search for issues in archive using given criteria.
|
ArchivedIssueSearchService.ValidationResult |
validateSearch(ArchivedIssueSearchService.ArchiveSearchRequest request)
Validate search request
|
ArchivedIssueSearchService.ValidationResult |
validateSearchOverrideSecurity(ArchivedIssueSearchService.ArchiveSearchRequest request)
Validate search request not taking into account any security
|
List<Issue> getArchivedIssuesMatchingTypesInProjects(List<Long> projectIds, List<String> issueTypeIds)
projectIds
, finds archived issues that are of the types given by
issueTypIds
.
TO be removed after implementation of searching/browsing archived projects by using its API insteadprojectIds
- unique identifiers for the projects whose issues we'd like to inspect.issueTypeIds
- unique identifiers for the issue types that we're looking for instances of in the projects.issueTypeIds
or an empty list if projectIds
or issueTypeIds
are empty.ArchivedIssueSearchService.ValidationResult validateSearch(ArchivedIssueSearchService.ArchiveSearchRequest request)
request
- search requestArchivedIssueSearchService.ValidationResult validateSearchOverrideSecurity(ArchivedIssueSearchService.ArchiveSearchRequest request)
As the method name implies, it bypasses the security restrictions that would normally be applied when performing a search. As such, it should only be used for administrative task.
request
- search requestjava.util.stream.Stream<ArchivedIssue> search(ArchivedIssueSearchService.ValidationResult validationResult)
validationResult
- of search in serviceint count(ArchivedIssueSearchService.ValidationResult validationResult)
For just checking if there are any archived issues, use archivedProjectsOrIssuesExist()
.
validationResult
- of search in serviceboolean archivedProjectsOrIssuesExist()
Copyright © 2002-2023 Atlassian. All Rights Reserved.