Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,361,628
Community Members
 
Community Events
168
Community Groups

Searching for the project by name via API

Greetings!

For one of the automation tasks I need to get a project ID.

What I have is a project name and an API.

Unfortunately, the documentation https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-projects/#api-rest-api-3-project-search-get does not explain how to search for the project by name.

Google search does not help either.

The most funny answer was this:

jira_searchProjectIDAPI.jpg

So we spent some time experimenting and at the end found the obvious:

to find a Jira Project by NAME, use the following API call:

https://<your instance>.atlassian.net/rest/api/3/project/search?query={{ProjectName}}

where {{ProjectName}} is a custom variable you have defined in a previous step.

Enjoy.

1 comment

Hello @Inna S ,

You can not filter by project name. You get all the projects and then you can loop in that list to find what you are looking for.

If you know the key/Id you can use it : /rest/api/3/project/{projectIdOrKey}.

Hope it helps.

Hi @robert Mugabuhamye , the point of this post was to demonstrate how we have done the thing. 

So this is possible, just not properly documented in the API doc.

You are welcome to test for yourself.

My bad @Inna S . thank you 😊🙏

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Jira Software

An update on Jira Software customer feedback – June 2022

Hello Atlassian Community! Feedback from customers like you has helped us shape and improve Jira Software. As Head of Product, Jira Software, I wanted to take this opportunity to share an update on...

5,078 views 18 32
Read article

Atlassian Community Events