Incident field in the activity log of Service Portal

salu
Mega Guru

Hello All,

This really urgent requirement for us.

We need to add the fields from the incident record   in the activity log.

In CMS it was coming like below

find_real_file.png

But in the Service portal,

find_real_file.png

I can only see the comments.

How this fields can be added..

Can some please help me this issue..

Its really bit urgent

Thanks

Saranya

16 REPLIES 16

anurag92
Kilo Sage

You need to update the widget which is showing the activities, add the fields in the server script, and then save and test.


Hello Anuraj,


I have just created a view and added the actvities(filtered).



Thanks


Saranya


Yes that's the front-end way to add activities. But for Service Portal, Activity Widget will have few defined number of fields (like number, comments). You need to add a few fields in Server code of this widget in order to display them all in activity.


Hello Anurag,


I am not getting how can add field there.Can you please suggest on this?



How can set field here?



// Activity formatter is hardcoded to set specific options


  for (var f in data.f._formatters) {


  var fm = data.f._formatters[f];


  if (fm.formatter == "activity.xml") {


  fm.hardcoded = true;


  fm.widgetInstance = $sp.getWidget('widget-ticket-conversation',


  {table: data.table,


  sys_id: data.sys_id,


  includeExtended: true,


  title: "${Activity}",


  placeholder: "${Add a comment}",


  btnLabel: "${Post}"});


  } else


  fm.widgetInstance = $sp.getWidget(fm.widget, data);