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

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

Tony,

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

Regards,

Shannon

0 votes
Answer accepted

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
Community showcase
Published in Confluence

Introducing Confluence Cloud and Jira Software Cloud Premium

Wherever you are in your team’s journey , our goal is to support your big ambitions. We’re a cloud-first company with the mission of unleashing the potential of every team, and to address the range ...

590 views 4 17
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