Can I change the parent field of sub-task in Jira via REST API ?
I tried the command:
/usr/bin/curl -u admin:zubur1 -X POST -H Content-Type:application/json 'http://<my-jira>:<port>/rest/api/2/issue/<issue_key>' --data @@@jsonfile.json
jsonfile content:
{
"fields":
{
"parent":
{
"key": "<issue_key>",
"id": "<issue_id>"
}
}
}
I got HTTP response code 405
There are other ways?