I have a basic dropdown that contains all the tags defined for a project and two extra fields "All" and "None". The dropdown is used to filter stories on a cardboard. I have managed to make it work for individual tags and the "All" field (to show all user stories) but am having difficulties filtering the cardboard by user stories that do not have tags associated with them.
My cardboard config looks similar to this:
var cardboardConfig = {
types: ['HierarchicalRequirement'],
attribute: "ScheduleState",
sortAscending: true,
order: "Rank",
fetch: "Name,FormattedID,Owner,ObjectID,Tags,Discussion",
};
For the cardboardConfig.query
, I have some logic to generate the query that eventually looks similar to this:
'Tags contains "/tag/12345"'
I know Tags
is an array containing Tag
objects and I've written a test that showed that stories that don't have tags associated with them have an empty Tags
array, so I tried the following to query for stories without tags but all didn't return any results:
'Tags = null'
'Tags = []'
'Tags contains null'
'Tags contains ""'
On the net and stackoverflow, there are answers saying that Rally doesn't support not contains
so I couldn't do the reciprocate of filtering the cardboard by all stories that have tags as well.