Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Add an issue to a sprint using the rest API

Adam
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 21, 2018

Following the format of

https://confluence.atlassian.com/jirakb/creating-an-issue-in-a-sprint-using-the-jira-rest-api-875321726.html

and having retrieved the customfield id for the sprint field using

/rest/api/latest/field

and

/rest/agile/1.0/board/24/sprint

I get the error 

It is not on the appropriate screen, or unknown."

on endpoint

/rest/api/latest/issue/

1 answer

1 accepted

2 votes
Answer accepted
Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 21, 2018

Hello,

You should use the Jira Software Rest Api to add an issue to a sprint. You will avoid all possible problems:

https://developer.atlassian.com/cloud/jira/software/rest/#api-sprint-sprintId-issue-post

Adam
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 21, 2018

Hi Alexey, thanks for the pointer and I accepted the solution.

I can now move the issue into an existing sprint.

Is the information https://confluence.atlassian.com/jirakb/creating-an-issue-in-a-sprint-using-the-jira-rest-api-875321726.html no longer valid?

Alexey Matveev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 22, 2018

I am not sure, if it is valid or not. But I use Jira Software Rest Api to do such things. I had same problems like you had. But with Jira Software Rest Api, there are no problems.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events