Add issues to sprint

I'm trying to add issue by using method `POST /api/agiles/{agileID}/sprints/{sprintID}`. But api ignores list of issues in my request. And in the same time name field is being changed to new value. Am I proper using this method? I can't find other way to add an issue to a sprint.

1 comment
Comment actions Permalink
Official comment


I'm Sergey from the Youtrack team.

Firstly, it depends on how you add issues to the board as specified in Agile board → Board Behaviour. As you want to add it manually, I assume that it's set to 'Manually assign issues'. 

In this case, the API request should be the following: 

POST /youtrack/api/agiles/112-0/sprints/113-6/issues

where 112-0 — agileID, 113-6 — sprintID, 2-1 — issueID. 

If any questions appear, please let me know. 

Please sign in to leave a comment.