Hi I am trying to move some issues to active or future sprints using jira api in python but having trouble to do so. Hoping I can get some help. This is my code so far which I tried to follow from https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint/#api-rest-agile-1-0-sprint-sprintid-issue-post
import requests
import json
url = "https://{name}.atlassian.com/rest/agile/1.0/sprint/5/issue"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer <access_token>"
}
payload = json.dumps( {
"issues": [
"A-9",
]
} )
response = requests.request(
"POST",
url,
data=payload,
headers=headers
)
print(response.text)