Modify

Opened 15 months ago

Last modified 15 months ago

#14243 new defect

Unable to use pipe-delimiting syntax for Set rule

Reported by: Alfred Owned by: Ryan J Ollos
Priority: normal Component: DynamicFieldsPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.4

Description (last modified by Alfred)

I'm trying to set one value in response to another and it is only working if I use a single value. Trying to have multiple listed does not respond. I have the following setup under the tickets-custom:

cfc = select 
cfc.label = Critical Facility Capability
cfc.options = |Electrical|Hydraulic
cfc.order = 2
cfc.value =
itemcode = select
itemcode.value =
itemcode.label = Item Code
itemcode.order = 6
itemcode.options = |BCA|BAC|BNE|P400|HPU|NPW

I then have these two rules setup:

cfc.set_to_Electrical_when_itemcode = BCA|BAC|BNE|P400  (overwrite)
cfc.set_to_Hydraulic_when_itemcode = HPU|NPW (overwrite)

Written as above, they do nothing, but if I remove all but the first option for each rule then setting my itemcode field to BCA will set cfc to Electrical, and setting it to HPU will set it to Hydraulic.

Unsure where to go from there.

Attachments (0)

Change History (3)

comment:1 Changed 15 months ago by Jun Omae

Description: modified (diff)

comment:2 Changed 15 months ago by Alfred

Description: modified (diff)

comment:3 Changed 15 months ago by Alfred

Description: modified (diff)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain Ryan J Ollos.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.