Get Projects Paginated
GET {{baseUrl}}/rest/api/3/project/search?startAt=0&maxResults=50&orderBy=key&query=<string>&typeKey=<string>&categoryId=<long>&searchBy=key, name&action=view&expand=<string>&status=live&status=live
Returns a paginated list of projects visible to the user.
This operation can be accessed anonymously.
Permissions required: Projects are returned only where the user has one of:
- Browse Projects project permission for the project.
- Administer Projects project permission for the project.
- Administer Jira global permission.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
startAt | number | The index of the first item to return in a page of results (page offset). | |
maxResults | number | The maximum number of items to return per page. | |
orderBy | string | Order the results by a field. |
-
category
Sorts by project category. A complete list of category IDs is found using Get all project categories. -
issueCount
Sorts by the total number of issues in each project. -
key
Sorts by project key. -
lastIssueUpdatedTime
Sorts by the last issue update time. -
name
Sorts by project name. -
owner
Sorts by project lead. -
archivedDate
EXPERIMENTAL. Sorts by project archived date. -
deletedDate
EXPERIMENTAL. Sorts by project deleted date. | |query
| string | | Filter the results using a literal string. Projects with a matchingkey
orname
are returned (case insensitive). | |typeKey
| string | | Orders results by the project type. This parameter accepts a comma-separated list. Valid values arebusiness
,service_desk
, andsoftware
. | |categoryId
| string | | The ID of the project's category. A complete list of category IDs is found using the Get all project categories operation. | |searchBy
| string | | | |action
| string | | Filter results by projects for which the user can: -
view
the project, meaning that they have one of the following permissions:- Browse projects project permission for the project.
- Administer projects project permission for the project.
- Administer Jira global permission.
-
browse
the project, meaning that they have the Browse projects project permission for the project. -
edit
the project, meaning that they have one of the following permissions:- Administer projects project permission for the project.
- Administer Jira global permission. |
|
expand
| string | | Use expand to include additional information in the response. This parameter accepts a comma-separated list. Expanded options include:
-
description
Returns the project description. -
projectKeys
Returns all project keys associated with a project. -
lead
Returns information about the project lead. -
issueTypes
Returns all issue types associated with the project. -
url
Returns the URL associated with the project. -
insight
EXPERIMENTAL. Returns the insight details of total issue count and last issue update time for the project. | |status
| string | | EXPERIMENTAL. Filter results by project status: -
live
Search live projects. -
archived
Search archived projects. -
deleted
Search deleted projects, those in the recycle bin. | |status
| string | | EXPERIMENTAL. Filter results by project status: -
live
Search live projects. -
archived
Search archived projects. -
deleted
Search deleted projects, those in the recycle bin. |
RESPONSES
status: OK
{"self":"https://your-domain.atlassian.net/rest/api/3/project/search?startAt=0\u0026maxResults=2","nextPage":"https://your-domain.atlassian.net/rest/api/3/project/search?startAt=2\u0026maxResults=2","maxResults":2,"startAt":0,"total":7,"isLast":false,"values":[{"self":"https://your-domain.atlassian.net/rest/api/3/project/EX","id":"10000","key":"EX","name":"Example","avatarUrls":{"48x48":"https://your-domain.atlassian.net/secure/projectavatar?size=large\u0026pid=10000","24x24":"https://your-domain.atlassian.net/secure/projectavatar?size=small\u0026pid=10000","16x16":"https://your-domain.atlassian.net/secure/projectavatar?size=xsmall\u0026pid=10000","32x32":"https://your-domain.atlassian.net/secure/projectavatar?size=medium\u0026pid=10000"},"projectCategory":{"self":"https://your-domain.atlassian.net/rest/api/3/projectCategory/10000","id":"10000","name":"FIRST","description":"First Project Category"},"simplified":false,"style":"classic","insight":{"totalIssueCount":100,"lastIssueUpdateTime":"2020-12-17T01:45:38.377+0000"}},{"self":"https://your-domain.atlassian.net/rest/api/3/project/ABC","id":"10001","key":"ABC","name":"Alphabetical","avatarUrls":{"48x48":"https://your-domain.atlassian.net/secure/projectavatar?size=large\u0026pid=10001","24x24":"https://your-domain.atlassian.net/secure/projectavatar?size=small\u0026pid=10001","16x16":"https://your-domain.atlassian.net/secure/projectavatar?size=xsmall\u0026pid=10001","32x32":"https://your-domain.atlassian.net/secure/projectavatar?size=medium\u0026pid=10001"},"projectCategory":{"self":"https://your-domain.atlassian.net/rest/api/3/projectCategory/10000","id":"10000","name":"FIRST","description":"First Project Category"},"simplified":false,"style":"classic","insight":{"totalIssueCount":100,"lastIssueUpdateTime":"2020-12-17T01:45:38.377+0000"}}]}