Ticket #2165 (closed enhancement: fixed)
Support ternary substitution in WithProperties
|Reported by:||jaredgrubb||Owned by:||jaredgrubb|
I think it would be nice to have support for "if (prop) then substitute X else substitute Y".
Python supports back-references in a regex, so I'm imagining that a possible syntax would be:
:? + delimiter + true_substitution + delimiter + false_substitution
I'm not sure if ":?" would check the property based on existence (i.e. as ":+" does) or on true-ness (i.e. as ":~" does), or whether it would be nice to support both options?
- Owner set to jaredgrubb
- Status changed from new to assigned
- Status changed from assigned to closed
- Resolution set to fixed