Can I apply User condition on rules triggered by other rules?

Josef Žáček
Contributor
January 16, 2025

Hi,

I have a technical question regarding Confluence Automation. For context, we’re currently using the Confluence Standard plan.

 

Here’s the scenario:

  • I have a Smart Button that sets a page status and adds a specific label to a page.
  • I also have a second automation rule that triggers when that specific label is added to a page.

 

My question is:

Is it possible to apply a User Condition to the second rule to prevent it from triggering if the label is added manually, but continue if triggered by Smart Button?

 

The Smart Button is located on a restricted page, so only specific users can access and trigger it. Unfortunately, modifying the Smart Button’s automation isn’t an option in this case.

 

Any guidance on how to achieve this would be greatly appreciated.

Thank you!

2 answers

1 accepted

Suggest an answer

Log in or Sign up to answer
4 votes
Answer accepted
Rune Rasmussen
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 16, 2025

I just did a quick test using the same Smart Button template and a second automation that is triggered when a label is set (that will trigger by other automations).

It is possible to apply a User Condition to the second rule, and have whatever happen that you want accordingly.

image.pngimage.png

Josef Žáček
Contributor
January 17, 2025

Thank you for your quick test and screenshots @Rune Rasmussen !

1 vote
Koloman Pfeffer
Contributor
January 16, 2025

Short answer: Yes, it's possible.

Long answer: It depends. If the second rule is triggered by the first rule, then the rule actor of the first rule will be regarded as the person who triggered the second rule. So any user restriction you set in the second rule will always only check the actor of the first rule. If you're fine with excluding this rule actor from your use case, then this will work. But the rule would then also trigger, when the actor of the first rule adds the label manually.

To solve some of these problems, we set up an additional rule actor-account in our instance which offers some flexibility and could minimise erroneous rule triggers.

Josef Žáček
Contributor
January 17, 2025

Thank you for your insightful response, the Rule Actor account never came to my mind. I will try how that works in my case!

Like Koloman Pfeffer likes this
TAGS
AUG Leaders

Atlassian Community Events