On change() of Work notes(journal field)- Client script

aahitha2
Mega Expert

Hi All,

As we know, we have Work notes(journal) field on incident form.

My requirement:

1. when ever any end user/any user opens and post the work notes then logged user primary role should be populated in activity log.

a). I have u_primary role in user table- which is storing users' primary role.

b).i have same field in incident form to fetch the same role from user table to incident table and same is configured in activity log list to show changes.like below

find_real_file.png

 

when ever logged in user post the work notes using post button, then user role shoulb be populated in activity log.

 

Can any one help me?.

 

Thanks,

Aahitha

6 REPLIES 6

Inactive User24
Mega Expert

What do you achieve by showing User role in activities?

just wanted to know, which role user updated the work notes.

Worknotes can only be updated by fulfiller(Who has ITIL role) and the users without role can only comment.

vkachineni
Kilo Sage
Kilo Sage

Not digging into the code but, I think this needs to be a Business rule, Before insert / update, when work notes change. Append the primary role from the table to work notes.

Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Vinod Kumar Kachineni
Community Rising Star 2022