adding users at watchers based on value of (checkboxes selected)

Issue #926 resolved
Scott McDonald
created an issue

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)

  1. Fidel Castro Armario repo owner

    Hi @Scott McDonald,

    You should use "Set a field as a function of other fields" post-function with a configuration like the following one:

    • Field to be checked...: Missing Items
    • Target field: New watchers
    • Setting rules:
    (.*enpoint.*)john, mary
    (.*badge.*)mike
    (.*documents.*)susan
    
    • Evaluate all the setting rules...: CHECKED

    Note that:

    • john, mary, susan, etc... are user names, nor user's full names.
    • You should write the name of the options in the checkbox exactly, i.e., respecting the case, and without extra spaces.
  2. Scott McDonald reporter

    Hi @Fidel Castro Armario

    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

  3. Fidel Castro Armario repo owner

    Hi @Scott McDonald,

    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
    
  4. Log in to comment