Forums

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

POST method, REST API : fix version required

Vincent Palermini July 26, 2021

I am facing a problem with the robot framework multipart option of the REST API, I tried to create a new test execution and import the result of the output.xml thanks to curl but REST do not accept my json file below :

{
"fields":{
"summary":"Test execution from Robot Framework",
"issuetype":{
"id":"10004"
},
"project":{
"id":"10301"
},
"fixVersions":[
{
"set":{
"id":"10300"
}
}
]
}
}

 

Rest give me this output :

fixVersions: Fixed version (s) is required.


Thanks for your time !

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 26, 2021

I'm not sure why you have put in the "set" part of the value.  fixVersions expects an array of version objects, which doesn't need any control on top of the array indicators.

Try:

 "fixVersions":[{"id":"10300"}, {"id":"10301"}]

(Obviously, remove the 10301 element, I've added it to show that it's an array)

Also, you can get this error if the version selected is not for the project you are in, so it may be worth checking that too.

Vincent Palermini July 27, 2021

Thanks a lot for your reply, I tried your solution before but wasn't working, I resolve the problem this morning, it was my robotframework xml.
Dont know why but Jira do not accept it and ask me the fixVersions.
I tried with the robot framework example xml and all is working !

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events