The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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 Champions.
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.

TAGS
AUG Leaders

Atlassian Community Events