I want to convert a task to a subtask and the parent key ID is available in a custom field. How can I do this?
As soon as the task is created, I would like to convert it to a subtask.
I tried to edit the task using automation and added these additional values -
{
"fields": {
"parent": {
"key": "ABC-5123"
}
}
}
But through this error - (Given parent issue does not belong to appropriate hierarchy.)
Edit 1 - Why not create the subtask in the first place? Why to edit type?
So the issue is created in the Service Desk Portal and the Portal can not create the subtask. So based on a condition, I need to modify the task to a subtask.