Hello!
I created plugin using
mvn archetype:generate -DarchetypeGroupId=com.atlassian.connect -DarchetypeArtifactId=atlassian-connect-spring-boot-archetype -DarchetypeVersion=1.5.1
atlassian-connect.json
{...
"scopes": [
"read", "write"
],
"authentication": {
"type": "jwt"
},
"lifecycle": {
"installed": "/installed",
"uninstalled": "/uninstalled"
},
"enableLicensing": false,
"modules": {
"generalPages": [
{
"key": "comments",
"location": "system.top.navigation.bar",
"name": {
"value": "Comments"
},
"url": "/rest/api",
"conditions": [{
"condition": "user_is_logged_in"
}]
}
]
}
}
I am trying to access my API
AJS.$.ajax({
url: "https://X.ngrok.io/rest/api",
type: "GET",
dataType: "json",
contentType: "application/json",
async: false, headers: {
'Authorization' : "JWT {{sessionToken}}"
},
success: function (data) {
console.log(e);
},
error: function(response) {
console.log(response);
}
})
- How to get jwt on JS side (it is better to describe simple plugin step by step, if u could (I checked many links with examples, but…))?
- What is valid path to place my x-addon.js with all small logic?
I know all ways for server development, but not for cloud. - Does expired license affects this? Is it possible to get free license without buying it or without buying addons? It is normal to buy, but not for casem when development is unclear and support gives no response. Will buy it later.
special thx, if u write me to skype dn230687kav, I will repost answer here.