Hi JP,
I would like to make sure I have your question right:
Here's what you have to start:
1. Parent
1.1 Child #1
1.2 Child #3
1.3 Child #2
You'd like the order to be instead:
1. Parent
1.1 Child #1
1.2 Child #2
1.3 Child #3
Updating an item's sort order is not supported by our API with a single un-creative call, though I am a little confused on how you learned to work around it, would you mind clarifying which endpoints an field values you are using to do this update?
We have a PUT /items/{id}/location endpoint that only supports moving an item between projects. You can see the item's existing sort order with the GET /items/{id}/location endpoint.
Thanks!
------------------------------
Sara Jensen
Developer Support Engineer
Jama Software
Portland OR
503.922.1058
------------------------------
Original Message:
Sent: 03-26-2018 05:27
From: Garros JP
Subject: Set position when adding an item (API REST)
Hi everybody,
I just want to know if it is possible to set the position on an item when we add it using API REST ?
For Exmaple : I add parent item, then child item "One" , child item "Three" and finally child item "Two" but i want thaht two is after "One" and before "Three". It is possible to set the position of "Two" directly via the PUT request ? Or The only way is to PUT "Two" and then change parent of "Three" two times so it will be under "Two" ?
Thanks.
------------------------------
Garros JP
------------------------------