Hi,
Is there a way to reliably detect by JSON-RPC or REST if a Confluence page has been created from a page template or not? Some kind of metadata or history information? I was not able to find any...
Thanks,
Michael
Nope. But you could give your templates a special label for this. Then any page getting created from that template will get the label as well. Assuming the users don't remove the label (big assumption) then you could query it up that way.
But to do this a precondition would be to differentiate "normal" Confluence pages from templates. Is there any way to achieve that with the REST/JSON RPC API?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There are methods for getting pages by label. I think a label is really the easiest way to accomplish something like this. It isn't a sure thing because people can add and remove labels, but I've got no better ideas for what you are trying to accomplish. With a little bit of user training you may be able to mitigate them adding or removing the template label.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.