fields
or update
parameters in the request body. Get details about the fields using Get transitions with the transitions.fields
expand.curl --location --request POST 'http://jira.local:8080/jira/rest//rest/api/3/issue//transitions' \
--header 'Content-Type: application/json' \
--data-raw '{
"fields": {
"assignee": {
"name": "bob"
},
"resolution": {
"name": "Fixed"
}
},
"historyMetadata": {
"activityDescription": "Complete order processing",
"actor": {
"avatarUrl": "http://mysystem/avatar/tony.jpg",
"displayName": "Tony",
"id": "tony",
"type": "mysystem-user",
"url": "http://mysystem/users/tony"
},
"cause": {
"id": "myevent",
"type": "mysystem-event"
},
"description": "From the order testing process",
"extraData": {
"Iteration": "10a",
"Step": "4"
},
"generator": {
"id": "mysystem-1",
"type": "mysystem-application"
},
"type": "myplugin:type"
},
"transition": {
"id": "5"
},
"update": {
"comment": [
{
"add": {
"body": {
"content": [
{
"content": [
{
"text": "Bug has been fixed",
"type": "text"
}
],
"type": "paragraph"
}
],
"type": "doc",
"version": 1
}
}
}
]
}
}'
null
update
. Fields included in here cannot be included in update
.fields
.