Setup:
I created a custom field with “Labels” via the Jira UI:
Motivation:
I want to access all available options for this label from within a forge app, using the Rest API v2/ v3 (to create a custom issue-creation dialog in our application).
Problem:
-
First, I call
/rest/api/3/issue/createmeta/${projectIdOrKey}/issuetypes/${issueTypeId}
to obtain the create-issue metadata (containing the customField) -
In the response, the custom field yields the
autoCompleteUrl:"https://api.atlassian.com/ex/jira/.../rest/api/1.0/labels/suggest?"
- But when trying to call this endpoint from my forge-app, I always get a{ code: 401, message: 'Unauthorized; scope does not match' }
Question (or what I’ve tried so far):
Is there a v2/v3 equivalent for “https://api.atlassian.com/ex/jira/.../rest/api/1.0/labels/suggest”?
I’ve tried:
-
/rest/api/3/label
→ only yields the system-labels -
/rest/api/3/field/{fieldId}/context/{contextId}/option
→ yields: errorMessages: [ “The custom field doesn’t support options.” ])