Getting sprint issues returns Unauthorized; scope does not match

Hello!
I am developping forge webtrigger app, and on sprint start trigger, I am trying to get list of issues in Sprint:

    const response = await api.asApp()
      .requestJira(route`/rest/agile/1.0/sprint/${parsedBody.sprint_id}/issue`);

but I am receiving

Unauthorized; scope does not match

my manifest file contains scopes:

permissions:
  scopes:
    - read:sprint:jira-software
    - read:issue:jira-software
    - write:issue:jira-software
    - read:jira-work
    - write:jira-work

What may be wrong ?

Thanks, Sasha

I found a list of correct scopes for this call: https://developer.atlassian.com/cloud/jira/software/rest/api-group-sprint/#api-rest-agile-1-0-sprint-sprintid-issue-get

read:sprint:jira-software, read:issue-details:jira, read:jql:jira

Now it works.

Before I was checking JIRA Agile 7.0.4, but there is no scopes listed so was just guessing :slight_smile:

1 Like