Hi all,
I'm implementing an application that, using the JIRA REST API, automatically creates issues: I would also like to assign them to the current active sprint. To do so, I've retrieved the customfield_XXXX code of the "Sprint" field and implemented the following alike body request:
/rest/api/3/issue
{
"fields": {
"project":
{
"key": "SP"
},
"summary": "Sprint issue test",
"description": "REST APIs are great.",
"issuetype": {
"name": "Bug"
},
"customfield_XXXX": activeSprintID
}
}
Still, I need an automatic way to retrieve the ID of the current active sprint and I'm trying to use this REST API to get it:
/rest/agile/1.0/board/{boardId}/sprint?state=active&maxResults=1which apparently does not work and links me to a dead link.
How can I retrieve the ID of the current active sprint to embed it in the previous body request?
Thanks all,
Andrea