I am trying to follow the examples for atlassian connect express
...
"scopes": ["READ"],
"modules": {
"generalPages": [
{
"key": "activity-page-jira",
"location": "system.top.navigation.bar",
"name": {
"value": "test activity"
},
"url": "/test-activity",
"conditions": [{"condition": "user_is_logged_in"}]
...JS-Code in index.js
...
app.get('/test-activity', addon.authenticate(), function (req, res) {
var httpClient = addon.httpClient(req);
httpClient.get('/rest/api/1.0/search', function(err, res, body) {
console.log(res);
});
...
}
...Error in JIRA log:
Request not in an authorized API scope from add-on