I'm currently using the POST method URL https://abc.atlassian.net/rest/api/2/issue to add an issue and sending the following JSON in the body. I'm successfully able to create the bug in the project where I have access.. But, I would like to add this bug into the active sprint. Don't know how and I have tried to check all the documentation but no avail.
Hi @Venkat Mavillapalli -- Welcome to the Atlassian Community!
I believe you would need to get all sprints for the board, and then identify the one with a state that is "active":
Once you have the sprint id, you can create the issue using the custom field id for sprint in your site to set the value.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This answer helped me, but you don't need to get all sprints, you can query for only the active one
.../rest/agile/1.0/board/{boardNumber}/sprint?state=active
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.