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
Hello,
You can find in this KB how to find project id in UI:
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Alexey Matveev Thank you so much. That helps but isn't performant. Querying /rest/api/2/project/{projectIdOrKey} just to get hold of the project id is just so inefficient when the response returned is so bulky. In my case the response size as per postman is 162 KB and it takes about 3 secs.
Shouldn't we have a more specialized endpoint just to return the project Id for a project-key, given the fact that usage of plane project-key is deprecated in few rest apis, like Create Version and yet their usage is so common. Remembering project keys sounds more intuitive than having to remember project Ids or worse yet having to make a heavyweight call to /rest/api/2/project/{projectIdOrKey} and starve our system.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.