Forums

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

Move issue to active sprint using jira api

Aleister Crowley
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!
January 25, 2022

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)

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events