Report @mentions with comment text and ticket number (Incidents & RITMs)

SwathiBanda
Tera Contributor

Context:
Right now, when someone @mentions me on a record, I only get an email like “You have been mentioned in the Incident record INC0100444,” but the actual comment text isn’t in the email preview (screenshot attached). I’d like to build a report that shows:

  • The actual comment where the @mention happened

  • The ticket number (e.g., Incident/RITM) and a link to the record

  • Filterable by mentioned user and date range

Question:
Has anyone implemented this as a reportable data source? I’m considering a Database View joining activity/journal data to the task record, specifically for Incidents (incident) and RITMs (sc_req_item).

SwathiBanda_0-1757627853196.png

 

2 REPLIES 2

shun6
Giga Sage

Hi @SwathiBanda

 

When someone is mentioned, a new record is created in the Notification [live_notification] table.

In this table, you can check:

  • Which record the mention occurred in,
  • Who mentioned the user, and
  • Who was mentioned.

I believe you can join the Document ID field from the Notification [live_notification] table with the Element ID field in the Journal Entry [sys_journal_field] table to trace the related journal entry.

shun6_0-1757636394496.png

Thanks!

  

Bhuvan
Kilo Patron

@SwathiBanda 

 

When mentions are used in record, it triggers email notification

Bhuvan_0-1757638096436.png

Below is the event that triggers the notification 'sysevent'

Bhuvan_2-1757638208354.png

Below is the notification 'sysevent_email_action'

Bhuvan_1-1757638138868.png

Email notification will have record details in 'document' field

Bhuvan_3-1757638328587.png

sys_journal_field table 'element_id' field can be used as relation to look up corresponding work notes

Bhuvan_4-1757638424620.png

There are 2 options,

 

1. Check the possibility of adding latest work notes from sys_journal_field as part of email notification so that it simplifies the whole process and eliminates the need for additional customization

 

2. Only if above does not work, create a database view table using above relations to fulfill the requirements

 

I hope you appreciate the efforts to provide you with detailed information. If my response helped to guide you or answer your query, please mark it helpful & accept the solution.

 

Thanks,

Bhuvan