adding users at watchers based on value of (checkboxes selected)
Hello:
I know I can automatically add users as watchers based on a certain value selected in a drop-down field but that same configuration doesn't work when the field I want to use (Set a field as a function of other fields Function for this transition) has values listed as checkboxes.
For instance, I want to set watchers based on the Missing items [checkboxes] a user selects.
Field Name: Items Missing Values to select from (each has an individual check box): endpoint, badge, documents)
What is the configuration?
Thank you,
Scott
Comments (6)
-
repo owner -
reporter Hi @fcarmario
As you can see below, I've modified my configuration but I can't get the missing items with spaces to add the watchers. I know you mentioned no extra spaces but what exactly do you mean? The entry in the parentheses is exactly how the option reads in the UI.
(.Endpoint (laptop or tablet).)fred.smith (.Removable media (ie thumb drive, hard drive).)fred.smith (.Documents falling under data classification guidelines.)fred.smith (.Code42 hardware or components.)fred.smith (.Devices or documents containing passwords or credentials.)fred.smith (.Badges.)fred.smith (.Personal devices containing Code42 data.)fred.smith (.Other.)fred.smith
Thank you,
Scott
-
repo owner Hi @scottjmcdonald,
Please, attach a screenshot of your post-function's configuration, since it's not correctly displayed when you copy + paste it in bitbucket.
-
reporter -
repo owner Hi @scottjmcdonald,
The problem is that
(
and)
are characters with special meaning in regular expressions. You can solve the problem by escaping(
and)
characters using\
character:(.*Endpoint \(laptop or tablet\).*)fred.smith (.*Removable media \(ie thumb drive, hard drive\).*)fred.smith
-
reporter - changed status to resolved
- Log in to comment
Hi @scottjmcdonald,
You should use "Set a field as a function of other fields" post-function with a configuration like the following one:
Note that: