Hi,
I'm working with the Jira Cloud REST API and looking for a way to fetch projects based on their names only, either partially or fully. I came across the following endpoint:
GET /rest/api/3/project/search
This endpoint accepts a query parameter, and while it does allow partial matching, it seems to return projects where the name or key matches the search string. However, in my use case, I need to filter strictly by project name — I want to exclude matches based on the project key.
So my questions are:
Any guidance or known workarounds would be appreciated. Thanks!
Hi ,
We can use a script to retrieve only the projects whose names contain the string you wanted, since the REST API does not provide a way to filter by project name alone and matches both name and key.
For example, from the API response, we can iterate through all returned projects and select only those whose name field contains "Finance", effectively ignoring any projects that matched only by key. This way, even though the API itself does not support name-only filtering, we can reliably get the exact projects we need.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.