Class SearchProjectsOperationSpec.SearchProjectsOperationSpecBuilder
java.lang.Object
io.github.primelib.jira4j.restv3.spec.SearchProjectsOperationSpec.SearchProjectsOperationSpecBuilder
- Enclosing class:
- SearchProjectsOperationSpec
-
Method Summary
Modifier and TypeMethodDescriptionFilter results by projects for which the user can: *viewthe project, meaning that they have one of the following permissions: * *Browse projects* [project permission](https://confluence.atlassian.com/x/yodKLg) for the project.build()categoryId(@Nullable Long categoryId) The ID of the project's category.Use [expand](#expansion) to include additional information in the response.The project IDs to filter the results by.The project keys to filter the results by.maxResults(@Nullable Integer maxResults) The maximum number of items to return per page.[Order](#ordering) the results by a field.properties(@Nullable List<Object> properties) EXPERIMENTAL.propertyQuery(@Nullable String propertyQuery) EXPERIMENTAL.Filter the results using a literal string.The index of the first item to return in a page of results (page offset).EXPERIMENTAL.toString()Orders results by the [project type](https://confluence.atlassian.com/x/GwiiLQ#Jiraapplicationsoverview-Productfeaturesandprojecttypes).
-
Method Details
-
startAt
public SearchProjectsOperationSpec.SearchProjectsOperationSpecBuilder startAt(@Nullable @Nullable Long startAt) The index of the first item to return in a page of results (page offset).- Returns:
this.
-
maxResults
public SearchProjectsOperationSpec.SearchProjectsOperationSpecBuilder maxResults(@Nullable @Nullable Integer maxResults) The maximum number of items to return per page.- Returns:
this.
-
orderBy
public SearchProjectsOperationSpec.SearchProjectsOperationSpecBuilder orderBy(@Nullable @Nullable String orderBy) [Order](#ordering) the results by a field. *categorySorts by project category. A complete list of category IDs is found using [Get all project categories](#api-rest-api-3-projectCategory-get). *issueCountSorts by the total number of issues in each project. *keySorts by project key. *lastIssueUpdatedTimeSorts by the last issue update time. *nameSorts by project name. *ownerSorts by project lead. *archivedDateEXPERIMENTAL. Sorts by project archived date. *deletedDateEXPERIMENTAL. Sorts by project deleted date.- Returns:
this.
-
id
public SearchProjectsOperationSpec.SearchProjectsOperationSpecBuilder id(@Nullable @Nullable Set<Long> id) The project IDs to filter the results by. To include multiple IDs, provide an ampersand-separated list. For example,id=10000&id=10001. Up to 50 project IDs can be provided.- Returns:
this.
-
keys
public SearchProjectsOperationSpec.SearchProjectsOperationSpecBuilder keys(@Nullable @Nullable Set<String> keys) The project keys to filter the results by. To include multiple keys, provide an ampersand-separated list. For example,keys=PA&keys=PB. Up to 50 project keys can be provided.- Returns:
this.
-
query
public SearchProjectsOperationSpec.SearchProjectsOperationSpecBuilder query(@Nullable @Nullable String query) Filter the results using a literal string. Projects with a matchingkeyornameare returned (case insensitive).- Returns:
this.
-
typeKey
public SearchProjectsOperationSpec.SearchProjectsOperationSpecBuilder typeKey(@Nullable @Nullable String typeKey) Orders results by the [project type](https://confluence.atlassian.com/x/GwiiLQ#Jiraapplicationsoverview-Productfeaturesandprojecttypes). This parameter accepts a comma-separated list. Valid values arebusiness,service_desk, andsoftware.- Returns:
this.
-
categoryId
public SearchProjectsOperationSpec.SearchProjectsOperationSpecBuilder categoryId(@Nullable @Nullable Long categoryId) The ID of the project's category. A complete list of category IDs is found using the [Get all project categories](#api-rest-api-3-projectCategory-get) operation.- Returns:
this.
-
action
public SearchProjectsOperationSpec.SearchProjectsOperationSpecBuilder action(@Nullable @Nullable String action) Filter results by projects for which the user can: *viewthe project, meaning that they have one of the following permissions: * *Browse projects* [project permission](https://confluence.atlassian.com/x/yodKLg) for the project. * *Administer projects* [project permission](https://confluence.atlassian.com/x/yodKLg) for the project. * *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). *browsethe project, meaning that they have the *Browse projects* [project permission](https://confluence.atlassian.com/x/yodKLg) for the project. *editthe project, meaning that they have one of the following permissions: * *Administer projects* [project permission](https://confluence.atlassian.com/x/yodKLg) for the project. * *Administer Jira* [global permission](https://confluence.atlassian.com/x/x4dKLg). *createthe project, meaning that they have the *Create issues* [project permission](https://confluence.atlassian.com/x/yodKLg) for the project in which the issue is created.- Returns:
this.
-
expand
public SearchProjectsOperationSpec.SearchProjectsOperationSpecBuilder expand(@Nullable @Nullable String expand) Use [expand](#expansion) to include additional information in the response. This parameter accepts a comma-separated list. Expanded options include: *descriptionReturns the project description. *projectKeysReturns all project keys associated with a project. *leadReturns information about the project lead. *issueTypesReturns all issue types associated with the project. *urlReturns the URL associated with the project. *insightEXPERIMENTAL. Returns the insight details of total issue count and last issue update time for the project.- Returns:
this.
-
status
public SearchProjectsOperationSpec.SearchProjectsOperationSpecBuilder status(@Nullable @Nullable List<String> status) EXPERIMENTAL. Filter results by project status: *liveSearch live projects. *archivedSearch archived projects. *deletedSearch deleted projects, those in the recycle bin.- Returns:
this.
-
properties
public SearchProjectsOperationSpec.SearchProjectsOperationSpecBuilder properties(@Nullable @Nullable List<Object> properties) EXPERIMENTAL. A list of project properties to return for the project. This parameter accepts a comma-separated list.- Returns:
this.
-
propertyQuery
public SearchProjectsOperationSpec.SearchProjectsOperationSpecBuilder propertyQuery(@Nullable @Nullable String propertyQuery) EXPERIMENTAL. A query string used to search properties. The query string cannot be specified using a JSON object. For example, to search for the value ofnestedfrom{"something":{"nested":1,"other":2}}use[thepropertykey].something.nested=1. Note that the propertyQuery key is enclosed in square brackets to enable searching where the propertyQuery key includes dot (.) or equals (=) characters. Note thatthepropertykeyis only returned when included inproperties.- Returns:
this.
-
build
-
toString
-