Project

General

Profile

How to updatye Parent Task through Redmine Rest API

Added by ishita tailor almost 12 years ago

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.
Thanks,
Ishita


Replies (1)

RE: How to updatye Parent Task through Redmine Rest API - Added by ishita tailor almost 12 years ago

Heavens!!

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>

Thanks,
Ishita :)

    (1-1/1)