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: 

Using REST API to move stories to next sprint error

Alisa Gromova
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!
March 1, 2022

I've created an automation that POSTs to the "rest/
agile/1.0/sprint/{sprintnumber}/issue" endpoint to move stories from one sprint to the next. I subsequently end the current sprint and start the next. This has worked for about a year and but suddenly this specific endpoint started throwing this error: "We couldn't make that happen because you don't have Schedule Issues permission." (code 403).

I do have the permissions, I was able to manually stop the current sprint and start the next. I can't seem to find any kind of answers on this elsewhere. Anyone have any ideas?

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Trudy P Claspill
Community Champion
March 1, 2022

Hello @Alisa Gromova 

Being able to start and stop a sprint confirms only that you have the Manage Sprint permission.

Can you tell us which identity is being used to run the Automation? In the Rule Details what is the value of the Actor field?

Does the identity specified there have the Schedule Issues permission in the project against which the rule is running?

Alisa Gromova
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!
March 1, 2022

Sorry, by automation I mean separate code, not JIRA Automations. My role allows me to add stories to future sprints, etc. That is the role that is used to authenticate for the API call.