It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is there a reliable way to determine if a page was created from a template?

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

2 answers

1 accepted

0 votes
Answer accepted
Davin Studer Community Leader Sep 12, 2014

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?

Davin Studer Community Leader Sep 15, 2014

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.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published Apr 18, 2019 in Confluence

Confluence CVEs and common questions

Two vulnerabilities have been published for Confluence Server and Data Center recently: March 20, 2019 CVE-2019-3395 / CVE-2019-3396 April 17, 2019 CVE-2019-3398 The goal of this article is...

361 views 0 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you