Service Portal Ticket Conversation

Sam Ogden
Tera Guru

Hi All,

On the service portal we user the OTTB 'ticket conversation' widget for our customers to view additional comments and add additional comments to open tickets.

currently when a comment is added the timestamp displays as time ago e.g. 2m ago, 5d ago etc

This works fine when the comments are recent e.g. couple of minutes or hours ago, but as time elapses it becomes less useful. Also when looking back at close logs it will say for example 3 months ago.

Instead we want this to display as a full date/time stamp in the format dd/mm/yyyy hh:mm:ss

How would we amend the widget for this?

Thanks

Sam

1 ACCEPTED SOLUTION

Yes, use {{e.sys_created_on_adjusted}}

View solution in original post

19 REPLIES 19

Mike Patel
Tera Sage

You will have to clone widget and change below  to 

<small class="text-muted">

<span class="glyphicon glyphicon-time " />{{data.created_on}}

</small>

 

find_real_file.png

Hi Mike,

I've cloned the OTTB ticket conversation widget and replaced the widget on the portal page I want. 

I have not yet made any changes to the scripts in the widget,

When I go back into the Widgets list I get alot of error messages?

find_real_file.png

Managed to replicate the above errors in a developer instance.  Seems to be an issue with the OTTB 'ticket attachment' widget - raised a hi ticket on this.

Hi Mike,

Thanks for the above.  Just tried this and not getting a full date/time rather than time ago which is great.

The date however is showing as yyyy/mm/dd

We need this to be dd/mm/yyyy.  

For the second Highlighted section in your screenshot:

<sn-time-ago timestamp="data.created_on" />

i've seen the section in the server script and amended this to getDisplayValue :

find_real_file.png

however the first highlighted section in you screenshot uses e.sys_created_on.

I'm guessing I some how need to get this to get the display value as well, but not sure how to achieve this, any suggestions?

Thanks