I started successfully the hello-world example in spring boot with the static content macro. Now i added to the atlassian-connect.json
{
"url": "/workitem?body={macro.body}&spaceId={space.id}&pageId={page.id}&pageVersion={page.version}¯oId={macro.id}",
"name": {
"value": "Render workitem"
},
"description": {
"value": "Display the workitem"
},
"outputType": "block",
"bodyType": "rich-text",
"key": "workitem-renderer",
"parameters": [
{
"identifier": "mode",
"aliases": [],
"defaultValue": "html",
"values": [
"html",
"text"
],
"name": {
"value": "Mode of Rendering"
},
"description": {
"value": "Render Mode"
},
"type": "enum",
"hidden": false,
"required": true
}
]
},
and to the Rest Controller the method
@RequestMapping(value = "/workitem?body={body}&spaceId={spaceId}&pageId={pageId}&pageVersion={pageVersion}¯oId={macroId}", method = RequestMethod.GET)
@ResponseBody
public String renderWorkitem(@RequestParam String body, @RequestParam String spaceId, @RequestParam String pageId,
@RequestParam String pageVersion, @RequestParam String macroVersion,
@AuthenticationPrincipal AtlassianHostUser hostUser) {
log.debug("Body: " + body);
log.info(hostUser.getHost().getClientKey());
return "";
}
But only the hello-world example is visible. I cleared the browser-cache, change the ngrok-ip, deinstalled the addon from confluence and installed it again. I did all twice. But the second macro named “workitem-renderer” is not shown. I checked Log in with Atlassian account and there it is not shown. But i get no exceptions, so i not know whats wrong.