How to modify, the list of incidents from an value of field in Problem Management

seraias2016
Kilo Expert

Hello Experts.

I have an request from my customer.

he want select an incident and to relate to problem. but the request is that not want view all incidents

 find_real_file.png

he want view only incidents that belongs of an account, (the account is refence field in PM, but also exists in IM).

find_real_file.png

I tried it with the filter, but not can create filter dinamic with value of account field of PM.

find_real_file.png

 

I tried it with a dinamic filter witn script include, but also not function.

find_real_file.png

 

The script include get value the account in PM.  if I call the Script Include in BR it function well, but in the filter don´t funcion, 

Also I reviewed the list control but I can´t create an filter before show information in collection.

Do you have an idea, to solve it.

Is posible create an filter before show the collection.

 

 

1 ACCEPTED SOLUTION

seraias2016
Kilo Expert

I solved the requeriment for my customer.

I describe the step for it.

  • I modified the UI Action "Edit".
  • into script I obtained the sys_id of record of problem.
  • I opened the table of problem and get the value of field that is pivot
  • I added the sysparm_query to uri.set.
  • I builded the url and "ta-da👍" I view only the data desired.

So very thank you for your ideas.

 

Regards

 

kindly mark it as helpful and correct answer if it helps you.

View solution in original post

12 REPLIES 12

asifnoor
Kilo Patron

Please use an advanced reference qualifier with the help of SI.

Refer to this link on how to create SI.

https://community.servicenow.com/community?id=community_article&sys_id=f3663ed6db8a7b002e8c2183ca961...

If my answer helps you, kindly mark it as helpful and correct answer.

Hello Asifnoor, 

I tried with these options, but not are posible. 

the client scritp not pass the value, because the current.field not show value in dinamic filter.

 

Thanks

Could you share the screenshot of what you have done.

shure:

function atio_pr_estacion()
{
//var estacion = "A40030 COMAKO"; //
var estacion = current.u_estacion.getDisplayValue();
gs.addInfoMessage(estacion);
return estacion;
}