Community Announcements have moved! To stay up to date, please join the new Community Announcements group today. Learn more
×Python Code:
import requests
from requests.auth import HTTPBasicAuth
import json
url = "https://<site-url>/jira/rest/agile/1.0/sprint"
auth = HTTPBasicAuth("userid", "Password")
headers = {
"Accept": "application/json",
"Content-Type": "application/json"
}
payload = json.dumps( {
"name": "sprint test",
"startDate": "2019-07-01T15:22:00.000+10:00",
"endDate": "2019-07-12T01:22:00.000+10:00",
"originBoardId": 5,
"goal": "sprint test goal"
} )
response = requests.request(
"POST",
url,
data=payload,
headers=headers,
auth=auth
)
print(json.dumps(json.loads(response.text), sort_keys=True, indent=4, separators=(",", ": ")))
Output:
{
"errorMessages": [
"To start a sprint, you must have the Manage Sprints permission for all of the following projects: <Project Name>"
],
"errors": {}
}
How to resolve this error?
Hello,
You need to grant the Manage Sprints permission to the user, under whom you perform the rest call, in all projects, which issues are selected by the board.
Hi Alexey,
Thank you so much for your reply.
Could you please explain, how to grant the Manage Sprints permission to the user for projects in jira.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
You can find it here:
https://confluence.atlassian.com/adminjiraserver073/managing-project-permissions-861253293.html
Choose the required project -> Project Settings -> Permissions
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.