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

It is posible to receive a notification when a page is include with the include page macro?

Miriam I'm New Here Apr 05, 2019

It is posible to receive a notification when a page is include with the include page macro?

2 answers

2 accepted

1 vote
Answer accepted
Tony Gough [Adaptavist] Apr 12, 2019 • edited

Hi Miriam & Shannon,

Unfortunately Notifications for ScriptRunner won't satisfy this requirement. The main intention behind Notifications is to make it easier for users to manage the content they are watching, and in turn the content they receive notifications for.

The requirement is a tricky one. It would be possible to come up with a solution for this using ScriptRunner, which provides the ability to write custom scripts which can access Confluence's Java API. It would not be a trivial script to write, though. At a high level, you would need to do the following:

1) Create an Event Listener which triggers on PageUpdateEvents.

2) The event handler code should retrieve the triggering page's body content and search for the presence of the Include macro.

3) You could then search the raw macro xhtml for the parameter value returning the included page.

4) At this point you could send email notifications or take other actions as required.

We don't have a specific custom scripting example for this use case, but you can find other examples along with further information on ScriptRunner in our documentation:

https://scriptrunner.adaptavist.com/latest/confluence/quickstart.html

Kind regards,
Tony

Shannon Spaniol Atlassian Team Apr 12, 2019

Tony,

Thank you so much for the detailed explanation! It's really appreciated.

Regards,

Shannon

0 votes
Answer accepted
Shannon Spaniol Atlassian Team Apr 08, 2019

Hello Miriam,

Welcome to Community. It's nice to meet you.

This isn't a feature built into Confluence, but you might be able to use an add-on such as Scriptrunner Notifications for this. I'm not personally familiar with that add-on, but I'm tagging the vendor in case they can confirm that with us.

I've also moved your question to Marketplace in case other users could recommend an add-on that could help to accomplish this.

Regards,

Shannon

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 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...

964 views 0 19
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you