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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.