Confluence automation trigger if page label removed
Asked by Paul Rinnert:

Hey,

we are currently using page labels in our process descriptions to define which role needs to read what process (using [QC Read and Understood for Confluence \| Atlassian Marketplace](https://marketplace.atlassian.com/apps/1219398/qc-read-and-understood-for-confluence?tab=overview&hosting=cloud)).

The page labels therefore are something that should not be changed by anyone but the responsible QM personnel. Confluence unfortunately does not allow to restrict right for adding and removing page labels.

We are therefore now looking Confluence automations to implement a monitoring/restriction.

[Triggers in Confluence automation \| Cloud automation Cloud \| Atlassian Support](https://support.atlassian.com/cloud-automation/docs/triggers-in-confluence-automation/) states that there is a *Page labeled* trigger that fires if a new label was added to a page.

Is there also a trigger that can be set to fire if a page label is removed?

(We are currently not on the premium plan and therefore can only consult the documentation)


Answers:
author: Paul Rinnert
body: Functionality is currently not implemented.

In case someone also wants this trigger to be implemented:

See [\[CONFCLOUD-77876\] Trigger for a label removed on a page in Confluence automation - Create and track feature requests for Atlassian products.](https://jira.atlassian.com/browse/CONFCLOUD-77876) for a feature request


author: Sayed Bares [ServiceRocket]
body: [@Paul Rinnert](/t5/user/viewprofilepage/user-id/4082323) automation doesn't have a page label removed trigger.

If this is something you really need then I would suggest looking at third-party solutions like scriptrunner:

* [https://marketplace.atlassian.com/apps/1215215/scriptrunner-for-confluence?hosting=cloud\&tab=overview](https://marketplace.atlassian.com/apps/1215215/scriptrunner-for-confluence?hosting=cloud&tab=overview)
  * <https://docs.adaptavist.com/sr4cc/latest/features/script-listeners>

comments: author: Jessie Wang_ScriptRunner_The Adaptavist Group
body: Hey [@Paul Rinnert](/t5/user/viewprofilepage/user-id/4082323)

Jessie here from ScriptRunner.

Just want to confirm what [@Sayed Bares \[ServiceRocket\]](/t5/user/viewprofilepage/user-id/1480984) stated above.

With ScriptRunner you can create a Listener that executes when a label is removed (see screenshot) and execute a script that checks to see who did it etc, and reverse that process if needed.

A [Listener](https://docs.adaptavist.com/sr4cc/latest/features/script-listeners) is a ScriptRunner feature that allows you to create triggered automations. More details can be found in [our documentation.](https://docs.adaptavist.com/sr4cc/latest/features/script-listeners)

![image (2).png](https://community.atlassian.com/t5/image/serverpage/image-id/280392i79AE3B23E2AE069A/image-size/large?v=v2&px=999 "image (2).png")


author: Paul Rinnert
body: Thanks for the quick response!

While the ScriptRunner extension looks interesting its unfortunate that there is no such trigger in the Confluence automations. It would not seem to complicated to have a "Page labels changed" trigger that could handle both adding and removing of labels. Adding a new extension would mean additional cost and validation for us


Tags: cloud

confluence-cloud