I created a custom field with "Labels" via the Jira UI:
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).
- 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' }
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." ])
Hi @Julian Götze -- Welcome to the Atlassian Community!
You may want to also ask this question in the developer community: https://community.developer.atlassian.com/
Kind regards,
Bill
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.