Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Create fix version for multiple projects via Jira API

Semih Ural
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 26, 2022

Hi,

I have two different Jira keys under different objects. I would like to create a fix version with the name Release_20220226_19 at the same time via Rest API but I am getting a 404 error.

What I am doing wrong? Docs says 404 error due to permission or if the version does not exist but then I expect to get some error for the first request as well. Any help will be appreciated.

+ curl -v -u xxx:**** POST --data {"name":"Release_20220226_19","description":"","userReleaseDate":"","project":"ABC","archived":false,"released":false} -H Content-Type: application/json https://xxxx/jira/rest/api/2/version/
HTTP/1.1 201

+ curl -v -u xxx:**** -X POST --data {"name":"Release_20220226_19","description":"","userReleaseDate":"","project":"AFN","archived":false,"released":true} -H Content-Type: application/json https:/xxxxxjira/rest/api/2/version/
HTTP/1.1 404

 Here is the payload

{
"name":"Release_20220226_19",
"description":"",
"userReleaseDate":"",
"project":"ABC",
"archived":false,
"released":true
}
,
{
"name":"Release_20220226_19",
"description":"",
"userReleaseDate":"",
"project":"CDE",
"archived":false,
"released":true
}

 

 

0 answers

Suggest an answer

Log in or Sign up to answer