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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Apr 09, 2019 in Portfolio for Jira

Portfolio for Jira 3.0 is here!

The wait is over... Portfolio for Jira Server and Data Center 3.0 is now officially here! Platform releases offer Atlassian an opportunity to shift our strategy, make bold predictions about t...

1,391 views 14 26
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you