Can a checkbox be used as a trigger to update another field on the page?

Christine Green
Contributor
July 8, 2024

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?

3 answers

1 accepted

2 votes
Answer accepted
Darryl Lee
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 8, 2024

Ah, Confluence templates.

Unfortunately I don't think there's any Automation actions 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:

Darryl Lee
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 8, 2024

Despite Nic's objections otherwise, I think your case is a fine example of why someone might need to View template used. (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.

 

Christine Green
Contributor
July 10, 2024

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.

1 vote
Bill Sheboy
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.
July 8, 2024

Hi @Christine Green 

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

Christine Green
Contributor
July 8, 2024

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!

 

0 votes
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 8, 2024

Hello @Christine Green 

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.

Christine Green
Contributor
July 8, 2024

Confluence

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events