I would like to run code like this in my Custom UI or a resolver:
const url = route`/rest/dev-status/latest/issue/detail?issueId=${issueId}&applicationType=GitHub&dataType=branch`;
const response = await api.asUser().requestJira(url);
I don’t know what scopes to put in my manifest. These don’t seem sufficient:
- read:jira-work
- read:jira-user
- write:jira-work
- manage:jira-configuration
- storage:app
I get:
status: 401,
statusText: 'Unauthorized'
{"code":401,"message":"Unauthorized; scope does not match"}
Same with asApp().
@paulprescod This is a private API that returns development information. However, the endpoints discussed in your post are intended for internal use only. Therefore, they are not part of the official Jira Software REST APIs, they are not supported with the Forge or Connect platform and they can change without any notice.
3 Likes
Thank you for the warning @kashsingh . I am aware of those risks and have decided to proceed with the project.
Do you know what scopes I should apply to my forge app to get access to those APIs?
@paulprescod,
It’s more blocker than risk. Private APIs do not have scopes; hence, cannot be accessed from Forge.
1 Like
@ibuchanan Thanks for clarifying.
I absolutely do need to know the Github repo, branch and commit for my application. I’m willing to use any API hosted on my own server, or in Custom UI or elsewhere. I’m willing to risk API breakage in the future.
What is my best option?
@paulprescod,
I’m not aware of any existing options. I recommend watch, vote, and comment on JSWCLOUD-16901.
2 Likes