The error comes as follows :
2021-08-04 12:08:59,077 : INFO : Failed in Boards details: xxxx ---> JiraError HTTP 401 url: https://xxxx.atlassian.net/rest/greenhopper/1.0/sprint/xccsx/edit/model
text: Only a Jira administrator can update this sprint. Try selecting a project in your current board filter.
response headers = {'Server': 'AtlassianProxy/1.19.3.1', 'www-authenticate': 'OAuth realm="https%3A%2F%xcdfsfc.atlassian.net"', 'cache-control': 'no-cache, no-store, no-transform', 'Content-Type': 'application/json;charset=UTF-8', 'Strict-Transport-Security': 'max-age=315360000; includeSubDomains; preload', 'Date': 'Wed, 04 Aug 2021 12:08:59 GMT', 'ATL-TraceId': 'b07b182325c7394d', 'x-arequestid': 'f3dfdsdfdb6-541a-sdfd-faf-cadfsdfd3b', 'x-aaccountid': '609bc1sfsdfda5a0sdfdzv62f19', 'X-XSS-Protection': '1; mode=block', 'Transfer-Encoding': 'chunked', 'timing-allow-origin': '*', 'x-envoy-upstream-service-time': '282', 'X-Content-Type-Options': 'nosniff', 'Connection': 'keep-alive', 'Expect-CT': 'report-uri="https://web-security-reports.services.atlassian.com/expect-ct-report/global-proxy", enforce, max-age=86400'}
response text = {"errorMessages":["Only a Jira administrator can update this sprint. Try selecting a project in your current board filter."],"errors":{}}
Hello @Subhash Singh ,
Thanks for reaching out, and I would be happy to take a look but looking at the details I am not entirely sure where you are seeing this error. Can you please provide some additional details on the steps you are taking to trigger the error like if this occurring on the front end when accessing something in the UI or are you doing an API call, and if so what is the endpoint you are trying to reach?
However, on the surface the error is noting a permissions issue indicating that the account does not have Jira administrator permissions required for the action you are attempting to complete, I would recommend verifying the account has the "Administer Jira" global permission as the first check as covered in:
Regards,
Earl
Hello @Earl McCutcheon ,
We are basically trying to get the different jira board details through an API call using a service-id which has board admin access and the thing is for some of the boards we are able to fetch the data using the same access permissions while for others the above error is coming up.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @Subhash Singh ,
This might be related to a permissions conflict stemming from a complex filter on the boards, as covered in "Use manage sprints permission for advanced cases" :
A filter query is considered complex when Jira Software can't determine which projects will be returned by the query. When this happens, Jira Software will require users to have the 'Manage Sprints' permission for all projects in the instance — essentially, you'll need to manually set users to have this permission for all projects.
And there are some more details on complex filters in the following KB:
Can you check the filter on the boards that are experiencing this error and see if it falls into this scenario, and if you need a second set of eyes to verify send me the full filter so I can check it out.
Things to look for would be a section that allows a non project-specific restriction, like an OR value, Something like the following where the OR value removes the project-specific identifier and would allow for any project where the issue had a label of "example":
project = ABC AND label = test OR label = example
Where a fix to this scenario would be as follows so the project restriction passes to both of the OR values:
project = ABC AND (label = test OR label = example)
Regards,
Earl
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.