Where is e.name coming from on Ticket Conversation widget on Service Portal?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2017 04:56 AM
On the <h4 class="timeline-title">{{::e.name}}</h4> part of the HTML code, where is e.name coming from and how can we replace it with just the First Name of the agent that commented on the ticket instead of full name.
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2017 05:13 AM
That is the result from this function call at line 95:
$scope.data.mergedEntries = $scope.data.stream.entries.slice();
$scope.data.stream.entries is part of the response from the record watcher so this mergeStreamEntries function is the first place you'll really have access to that data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-05-2018 03:33 AM
Hi jesseadams,
how can I see where these fields populate? And how can I add additional field to this list?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2018 05:29 AM
Hey avivs,
This stuff gets built in the call to $sp.getStream in line 63 of the server script. Whatever that stream pushes back ends up in mergedEntries but $sp.getStream is back-end code and as far as I can tell the included fields are hardcoded in the back-end code. It doesn't look like they can be changed.