Update Short Description When Work Notes Are Updated

ZubairQ
Tera Contributor

Requirement

Whenever Work Notes are updated on an Incident, automatically append the user details to the Short Description field.

 

Solution: After Business Rule

We can achieve this using an After Business Rule on the Incident table that triggers whenever the work_notes field changes.

 

Condition:  current.work_notes.changes()

 

If(!current.work_notes.changes()){

return;

}

var usr = gs.getUserDisplayName();

current.short_description = current.short_description +“ ”+ “updated by ” + usr;

 

Script Explanation

  • current.work_notes.changes()
    Checks whether the Work Notes field was modified in the current update.

  • gs.getUserDisplayName()
    Retrieves the display name of the currently logged-in user.

  • current.short_description
    Appends the user information to the existing short description.

 

 

Conclusion

This approach provides a simple way to reflect user activity directly in the Incident short description without additional fields or tables.