Advanced reference qualifier on cmdb_ci

now developer
Tera Contributor

Hello,

 

I am trying to modify the advanced reference qualifier on the incident form for cmdb_ci field. 

I tried adding an extra condition with name not empty. But it is not working.

 

javascript: (['incident', 'problem'].indexOf(current.sys_class_name + '') == -1? '' : 'operational_statusNOT IN' + new OpsStatusFilter('cmdb_ci').by('CreateTask').join() + '^nameISNOTEMPTY');

 

Thanks

3 REPLIES 3

-O-
Kilo Patron
Kilo Patron

Are you modifying the dictionary for task or the dictionary override for incident? 😄

I am modifying on the task table it self, as that is the requirement across Incident, Problem, change and service requests.

 

If we can apply the filter as name not empty in override reference qualifier,  please let me know.

 

Thanks

If incident, problem or change have dictionary overrides for the reference qualifier, those will overwrite whatever is defined for task.

If I were to implement this, I would do it using the dictionary overrides.

If you want to write less code, put it into a Script Include and call that from all dictionary overrides.