on configuration item ref field on incident table how is sysparam_target_value set

Woz
Tera Contributor

Hello,

How is sysparam_target_value set on the pop out when I click the magnifying glass on the config item field on the incident form?

find_real_file.png

Thanks,


Warren 

4 REPLIES 4

JP52
Mega Expert

Are you wondering how Service-Now filters the cmdb_ci table for this reference field?

It's the Dictionary Entry for the "Configuration item" field on the task table. The "Reference qual" field is where you will find the conditions.

**Warning, altering this will impact all task types (Incident, change, problem etc.), and is not something you'd likely want to do.

Let us know what you're trying to do, and I'm sure there is a solution that doesn't involve modifying OOB.

Chavan AP
Tera Guru

Hi Warren,

 

You are actually looking for reference qualifier in servicenow:

go through below links this might help you:

 

https://www.servicenowguru.com/scripting/script-includes-scripting/advanced-reference-qualifier-scri...

 

https://docs.servicenow.com/bundle/london-platform-administration/page/script/server-scripting/conce...

 

If you need anymore help on the same let me know

 

Regards,

Ajay

Glad I could help! If this solved your issue, please mark it as Helpful and Accept as Solution so others can benefit too.*****Chavan A.P. | Technical Architect | Certified Professional*****

Woz
Tera Contributor

I'm working on a instance I am unfamiliar with and trying to workout how the previous dev has configured incident form to fix some defects that have been raised - ref qualifier is unchanged on the form is unchanged from OOTB

 

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

the problem I face:

when I create a new incident and click the magnifying glass next the config item ref field the url is as below with not value set in sysparm_reference_value

/cmdb_ci_list.do?sysparm_target=incident.cmdb_ci&sysparm_target_value=&sysparm_reference_value=&sysp...

 

But once the form is saved sysparm_target_value has a sys id and no records are returned. I am tring to firgure out where the value is set so I can unset it  

find_real_file.png

Woz
Tera Contributor

Ignore the above post I have just noticed sysparam_target_value is the value on the form 😐 Doh