Forums

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

'Manage Sprints permission for projects' error, while creating new sprint using JIRA Rest API.

Puja Kumari June 26, 2019

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?

1 answer

1 accepted

1 vote
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 Leaders.
June 27, 2019

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.

Puja Kumari June 27, 2019

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.

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 Leaders.
June 27, 2019

Hello,

You can find it here:

https://confluence.atlassian.com/adminjiraserver073/managing-project-permissions-861253293.html

Choose the required project -> Project Settings -> Permissions

Puja Kumari June 28, 2019

It works, thanks!

Suggest an answer

Log in or Sign up to answer