ScriptRunner seems to be capable of so many things, but can it set the page author on sub-pages / child-pages?
Scenario:
We have pages describing a service and containing the initials of the current service-owner.
We need to use these initials to make that person the author of not only the service-page but also all child-pages of the service-page. If the initials of the service-owner changes, the script will also change the page author accordingly.
Could that be done with ScriptRunner?
You can not and should not alter the author of a page! Even if you could do it (which is not possible in an easy way), it would destroy the reliable history of the page which is a must for future audits.
Instead, use the page owner and page tree owner features of the Better Content Archiving app. You can choose multiple owners for a single page or for a page tree:
In your concrete use case, you should choose the service owner as the sole page tree owner of the root page of his service's documentation. It is that simple!
Then he can be auto-emailed when any of the service's documentation pages expire, gets archived, etc:
Overall, it is a major help for him to maintain the validity and reliability of his service's documentation. And ultimately it leads to better quality documentation.
(Discl. it is a paid and supported app developed by our team.)
You cannot and should not change the author, because (if it was possible at all) it would alter the page's precise history. "Immutability" is a must for audits.
The Better Content Archiving app has a smart page owner and page tree owner concept. The latter is a person who is responsible not only for a single page, but also all its descendants (children, grandchildren, etc. recursively). You can choose multiple owners and even combine page owner and page tree owners:
In your case, you could choose the service-owner to the sole page-tree-owner of the root page of the service's documentation. It is that simple.
Then he can receive notifications when the page expires, gets archived, etc:
It will help the service-owner maintain the reliability of his service's documentation.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.