Update workflow transition rule configurations
PUT
/rest/api/3/workflow/rule/config
Workflow transition rules
tag
. Use this to filter rules in the Get workflow transition rule configurations.disabled
parameter is not provided.Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'http://jira.local:8080/jira/rest//rest/api/3/workflow/rule/config' \
--header 'Content-Type: application/json' \
--data-raw '{
"workflows": [
{
"conditions": [
{
"configuration": {
"disabled": false,
"value": "{ \"size\": \"medium\" }"
},
"id": "d663bd873d93-59f5-11e9-8647-b4d6cbdc"
}
],
"postFunctions": [
{
"configuration": {
"disabled": false,
"value": "{ \"color\": \"red\" }"
},
"id": "b4d6cbdc-59f5-11e9-8647-d663bd873d93"
}
],
"validators": [
{
"configuration": {
"disabled": false,
"value": "{ \"shape\": \"square\" }"
},
"id": "11e9-59f5-b4d6cbdc-8647-d663bd873d93"
}
],
"workflowId": {
"draft": false,
"name": "My Workflow name"
}
}
]
}'
Response Response Example
200 - Success
{
"updateResults": [
{
"workflowId": {
"name": "Workflow with one rule not updated",
"draft": false
},
"ruleUpdateErrors": {
"example-rule-id": [
"The rule with this id does not exist: example-rule-id"
]
},
"updateErrors": []
},
{
"workflowId": {
"name": "Workflow with all rules successfully updated",
"draft": true
},
"ruleUpdateErrors": {},
"updateErrors": []
},
{
"workflowId": {
"name": "Non-existing workflow",
"draft": false
},
"ruleUpdateErrors": {},
"updateErrors": [
"Workflow not found: WorkflowIdBean{name=Non-existing workflow, draft=false}"
]
}
]
}
Request
Body Params application/json
Responses
Modified at 2023-07-13 03:27:27