How to updatye Parent Task through Redmine Rest API
I need to update Parent Task using Redmine Rest API.
I am passing following things :
URL to update : http://localhost:3000/issues/2.xml
Method : PUT
Body : <issue><parent_id>1</parent_id></issue>
I am doing this through REST client of mozilla. It gives 200 status code that is OK, but parent task doesn't seem to be updated.
If I am doing the same above procedure to update status or priority, it is working.
Please let me know how to update Parent Task.
P.S. Assume that id of the issue I want to add Parent Task is 2. And id of parent task to be added to issue is 1. Both of them are created and already exist.
I got it!
Sorry for posting unnecessarily over here.
I need to pass parent_issue_id instead of parent_id.
So, my request body will form something like this :
Body : <issue><parent_issue_id>1</parent_issue_id></issue>