Get a manual sorting(the position of the task) on the board via REST API

Hello!
I have an agile board with manual sorting - task position may be changed by mouse drag and drop action. 
Is it any way to get the position of the tasks?
ChatGPT said that I can use “GET /api/agiles/{agileId}/sprints/{sprintId}/board” to get tasks and the order of the issues array within each column reflects their manual position. But it's not true.
Thank you!

0
2 comments

Vlif Developer hello!

You can open an Agile board and check the browser's network tab to see which requests are made. You should see the one like example.youtrack.cloud/api/agiles/<agile-id>/sprints/current?issuesQuery=&$top=-1&$topLinks=3&$topSwimlanes=50&fields=agile(hideOrphansSwimlane,id,name,orphansAtTheTop… . The response to this request has issues in the correct order. This default query is quite long, so I suggest you find it in the browser and shorten it, if needed.

0

Alisa Kasyanova Thank you a lot! Check out the requests in the network tab! You're a genius! :)

0

Please sign in to leave a comment.