Details
-
Suggestion
-
Resolution: Unresolved
-
None
-
None
Description
Problem Definition
In Jira Server and Data Center currently the only way to get back a project via REST API is to call the GET /rest/api/2/project which returns ALL projects. There is no means to search for projects or limit the request to only those projects that contain a specific string of text in the project name or project key.
Suggested Solution
Implement a new REST API endpoint such as Jira Cloud has done over in https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-projects/#api-rest-api-3-project-search-get
Which allows a query parameter that can match against the key or name.
Why this is important
It can be a costly call to force the REST API to return all the project names on an environment that has a lot of projects. Jira Cloud also has implemented this already.
Workaround
None