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?
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:
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.