Can a checkbox be used as a trigger to update another field on the page?
Asked by Christine Green:

We have a template with a checkbox field. We would like to trigger an update on another field on the page when the checkbox is checked. Is that possible?


Answers:
author: Darryl Lee
body: Ah, Confluence templates.

Unfortunately I don't think there's any [Automation actions](https://support.atlassian.com/cloud-automation/docs/actions-in-confluence-automation/) available for those (yet).

Best case scenario is you could trigger off of Page Published, although I can't remember if there's even a property (and most definitely not a Smart Value) that lets you see if a template was used to create a page, much less what that template WAS.

If you could figure that out, then I suppose you could look to see if certain values were checked, and IF SO, update other values, on the page.

But it's all very fiddly and would require a lot of API hackery. Here's some starting points on that:

* [Automating the creation of a Confluence page linked to a Jira ticket](https://community.atlassian.com/t5/Jira-articles/Automating-the-creation-of-a-Confluence-page-linked-to-a-Jira/ba-p/1760738)
* [Jira Automation: Updating a Confluence page with information from Jira issues](https://community.atlassian.com/t5/Automation-articles/Jira-Automation-Updating-a-Confluence-page-with-information-from/ba-p/2660113)

comments: author: Darryl Lee
body: Despite Nic's objections otherwise, I think your case is a **fine example** of why someone might need to [View template used](https://community.atlassian.com/t5/Confluence-questions/View-template-used/qaq-p/1209981). (See what template was used to create a page.)

So then, Dominic's suggestion of using a label on the template might be very helpful indeed, as you could definitely do a check after a Page Published trigger to see **{{page.labels}}** contains a unique value you might choose.

But ooof, yeah, the next bit, updating the page is where the API hackery comes into play.


author: Christine Green
body: Thank you for the suggestions. I'm new to automation and this is beyond my level of expertise but I passed along to the user as she is more experienced with Confluence.


author: Bill Sheboy
body: Hi [@Christine Green](/t5/user/viewprofilepage/user-id/4639784)

I believe that is possible, and...

If you mean a built-in checkbox field, the rule could be triggered by a change to the field, and then add a condition to check the value before the issue edit.

If you mean a checkbox field from a marketplace addon / app, please check the vendor documentation to learn if the field adds a custom field which can be checked by the rule.

Kind regards,  
Bill

comments: author: Christine Green
body: I am asking for a colleague, so will get more specifics as to what she wants to happen when the user clicks the checkbox. It's a Confluence page with a checkbox. Thanks!


author: Trudy Claspill
body: Hello [@Christine Green](/t5/user/viewprofilepage/user-id/4639784)

In which product are you building this automation?

I see within Jira Cloud that I can create an Automation Rule using the Field Changed trigger and I can select a Checkbox field as the field to monitor.

comments: author: Christine Green
body: Confluence