Error using API to get epics: {"code":401,"message":"Unauthorized; scope does not match"}

Hello! :smile:

I am trying the get the epics using:
https://api.atlassian.com/ex/jira/${ID}/rest/agile/1.0/board/${boardId}/epic

I am getting the following error:
{"code":401,"message":"Unauthorized; scope does not match"}

Reference: JIRA Agile Server 7.4.0-SNAPSHOT REST API reference

Welcome to the Atlassian developer community @CarlosAugusto,

There’s a mismatch between the URL you posted and the doc you linked. For Cloud you want:
https://developer.atlassian.com/cloud/jira/software/rest/api-group-epic/#api-rest-agile-1-0-epic-epicidorkey-get

From the correct docs, you can find:

OAuth 2.0 scopes required:
read:epic:jira-software

4 Likes