<< Back to previous view

[QB-2359] New Node Selection criteria for "list" attribute contains value
Created: 09/Mar/15  Updated: 09/Mar/15

Status: Open
Project: QuickBuild
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor
Reporter: Justin Georgeson Assigned To: Robin Shen
Resolution: Unresolved Votes: 0
Remaining Estimate: Unknown Time Spent: Unknown
Original Estimate: Unknown


 Description   
We use a number of standardized User Attributes which contain a comma-separated list of values. However if we use the "specified attribute value" selection criteria and use operator "contains" then the value will we request will match any super-string values. For example a requested value of "linux" will match "linux32" or "linux64" etc. I can achieve the desired result using a "script evaluates to true" criteria with a script like this

util.split(node.getAttribute("attrName","NO_ATTR_SPECIFIED").contains("value")

But it'd be nice to have that built-in so that new people who aren't as familiar with the script API don't get caught but the substring problem.
Generated at Fri Apr 19 05:43:53 UTC 2024 using JIRA 189.