Hi.
I tried to run below code in Macro Editor Dialog for getting pageID
AP.context.getContext(function(response){ console.log("Jira Issue Key", response.issue_key); console.log("Confluence page id", response.pageId); console.log("license status", response.license); });
unfortunately, variable "response " not contain value.
response.pageId is not defined ....
How to get Page ID in Macro Editor Dialog ???
help, please
Thank you
AP.navigator.getLocation(function (location) {
//console.log(location)
// location will be:
// {
// "target": "contentview",
// "context": {
// "contentId": 1234,
// "contentType": "page",
// "spaceKey": "DS"
// }
// }
});
context.contentId is page ID
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.