Is there a way via a Rest API call to add 2 fixVersions to an issue ?
Currently I am calling from a .NET program a call as follows to add one fixVersion but in some instances I need to add a second fixVersion value.
Rest call is to : rest/api/latest/issue/<issueID>
In the Body:
{
"DefectId": <issueID>,
"fields": {
"fixVersions": [
{
"id": <fix version ID>
}
]
}
}
This format is great and adds the Version that I pass to the value. But I can not get it to accept a second fix version or can find an example in the Rest Documentation that shows more then just single fixversion being added. I know the field can accept more than one as through the UI I can manually add the second and even more versions to the fixVersion field.
Any help would be greatly appreciated.
Found a way to do it.
Rest call is to : rest/api/latest/issue/<issueID>
Body:
{
"update": {
"fixVersions": [
{
"set": [
{
"name": "Version 1"
},
{
"name": "Version 2"
}
]
}
]
}
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.