I am a novice in rest api with JIRA so please excuse me for my question.
I am trying to set the fix version while transitioning the issue in JIRA via restapi via powershell.
Fixversion is a list of defined values and I am trying to set one of them. I continue to get data was not an array or expected object error.
This is how the fixversion list look like in html page...
<option value=\"14233\">\n
2.4474.00012\n
</option>\n ....
My code:
$transitionField= @()
$transitionField += @{'fixVersions' = @{value = '2.4508.00014'}}
Invoke-JiraIssueTransition -Issue CSAPPS-2849 -Transition 291 -Fields $transitionField -Credential $cred
Json payload that is being sent
{
"transition": {
"id": 291
},
"update": {
"fixVersions": [
{
"set": {
"value": "2.4508.00014"
}
}
]
}
}