History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: QB-2359
Type: New Feature New Feature
Status: Open Open
Priority: Minor Minor
Assignee: Robin Shen
Reporter: Justin Georgeson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
QuickBuild

New Node Selection criteria for "list" attribute contains value

Created: 09/Mar/15 08:26 PM   Updated: 09/Mar/15 08:26 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown


 Description  « Hide
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.

 All   Comments   Work Log   Change History      Sort Order:
No work has yet been logged on this issue.