Hello,
I’m building a confluence app with UIKit 1 on the NodeJS runtime. I’d like to create a JIRA issue from the confluence app. I have the app installed on both confluence and JIRA. The scope seems to be flakey, sometimes the create works, other times i get Error: Failed to create issue: {"code":401,"message":"Unauthorized; scope does not match"}
. Running an upgrade always says the latest version is running, so its unclear what the issue is.
Please assist.
Syntax
const response = await api.asApp().requestJira(route`/rest/api/2/issue/`, {
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify({
fields: {
project: {
key: projectKey,
},
summary,
description,
issuetype: {
name: "Task", // todo 3 - this should be dynamic
},
},
}),
});
Scopes
- storage:app
- read:page:confluence
- read:configuration:confluence
- write:jira-work
- write:issue:jira