Support filtering licenses on the basis of terms being set/not set

Description

In ERM-668 it is specified that it should be possible to include a filter for a term being set/not set (rather than filtering for a specific set value). Support to be able to filter to licenses with a term value set/not set for a particular license should be added and included in the filter query builder as being implemented for ERM-668

Checklist

hide

TestRail: Results

Activity

Show:

Jag Goraya April 6, 2020 at 10:44 AM

Completed Sprint 86

steve.osguthorpe March 24, 2020 at 4:42 PM

Given that isNull is semantically different to not being set I have added isSet and isNotSet as operators.

steve.osguthorpe March 12, 2020 at 2:09 PM

This is already supported.
'customProperties.illElectronic.value isNull' or 'customProperties.illElectronic.value==null'
'customProperties.illElectronic.value isNotNull' or 'customProperties.illElectronic.value!=null'
Should work.

Bonus these work for normal properties too but not for collections. You should use isEmpty or isNotEmpty for collections. For instance:
'/erm/packages?filters=contentItems isEmpty' finds all packages with no content.

Done

Details

Components

Assignee

Reporter

Priority

Sprint

Development Team

Bienenvolk

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created February 5, 2020 at 3:03 PM
Updated April 6, 2020 at 10:44 AM
Resolved April 6, 2020 at 10:44 AM
TestRail: Cases
TestRail: Runs