curl --location --request POST 'http://jira.local:8080/jira/rest//rest/atlassian-connect/1/migration/workflow/rule/search' \
--header 'Atlassian-Transfer-Id;' \
--header 'Content-Type: application/json' \
--data-raw '{
"expand": "transition",
"ruleIds": [
"55d44f1d-c859-42e5-9c27-2c5ec3f340b1"
],
"workflowEntityId": "a498d711-685d-428d-8c3e-bc03bb450ea7"
}'
{
"workflowEntityId": "a498d711-685d-428d-8c3e-bc03bb450ea7",
"invalidRules": [
"55d44f1d-c859-42e5-9c27-2c5ec3f340b1"
],
"validRules": [
{
"workflowId": {
"name": "Workflow name",
"draft": true
},
"postFunctions": [
{
"id": "123",
"key": "WorkflowKey",
"configuration": {
"value": "WorkflowValidator"
},
"transition": {
"name": "transition",
"id": 123
}
}
],
"conditions": [
{
"id": "123",
"key": "WorkflowKey",
"configuration": {
"value": "WorkflowValidator"
},
"transition": {
"name": "transition",
"id": 123
}
}
],
"validators": [
{
"id": "123",
"key": "WorkflowKey",
"configuration": {
"value": "WorkflowValidator"
},
"transition": {
"name": "transition",
"id": 123
}
}
]
}
]
}
transition
which, for each rule, returns information about the transition the rule is assigned to.