AnsweredAssumed Answered

How to filter Change tickets based on existence of attached CIs?

Question asked by Brett_Zipkin on Nov 14, 2018
Latest reply on Dec 3, 2018 by Brett_Zipkin

My Chg Mgmt team has asked to be able to filter Change Tickets based on whether or not they have CIs attached.

 

I was easily able to add a column to the list result to show the count of CIs with the following tag

 

<PDM_MACRO name=lsCol attr=asset display_attr=length export=no label="#CIs">

 

However, I have no been able to get a filter field to work. I have tried various versions of the below using asset by itself, asset.length, adding it to the 2nd parameter after the label, consistently failing.  Most often it tells me "Attr not found or not atomic"

 

searchFilterDropdown("Has CIs Attached","","",
"Yes","(asset.length > 0)",
"No","(asset.length = 0)",1);

 

 

Is there a way to do this in the search filter?

Outcomes