It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is there any API to retrieve a project ID by passing the project name

For our automation testing - Users will pass 'Project Name', 'Version Name' and 'Cycle Name' in the test suit Json, we are trying to create test cycles under the given project and version. Is there any API that can give us the project ID based on the passed project and version name. Or is there any way to identify these IDs from UI

1 answer

1 accepted

0 votes
Answer accepted

Or you can find project id by project key. You have to execute GET /rest/api/2/project/{projectIdOrKey}. You can find more info here:

https://developer.atlassian.com/cloud/jira/platform/rest/#api-api-2-project-projectIdOrKey-get

Thank you for the quick reply!!

If my answer helped you, Kindly accept my answer. In this case other users with a similar question will be able to find this answer.

Thank you for the documentation, there is lot of useful information. I am able to get project ID by passing project Key now. However I am still not able to get Version ID by passing Version name. I wish there is a way to get version ID from UI.

Yes, It partially helped me.

You can find version id in ui. Open the version in Jira and look at the url. It will look like this:

http://yourhost/jira/browse/BP/fixforversion/10001

The last part is the version id (10001)

Thank you, it worked

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted in Jira

We want to hear from you! How do you use Slack and Atlassian together?

Hi Everyone! My name is Mina and I am on Atlassian’s Ecosystems Marketing team. Our team is focused on our technology partnerships and marketplace apps. One of Atlassian’s partners is Slack, who ...

94 views 1 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you