How to set the values in work notes my scenario is when I press reopen button work notes should be updated with the "incident reopend by"<current user> at <current time>

k chaitanya kum
Giga Contributor

How to set the values in work notes my scenario is when I press reopen button  work notes should be updated with the "incident reopend by"<current user> at <current time>

1 ACCEPTED SOLUTION

Kamal17
Kilo Sage

In your Reopen UI action, you could try using below code,

var notes = 'Incident reopened by '+gs.getUser().getDisplayName()+' at '+new GlideDateTime().getDate();

current.work_notes.setJournalEntry(notes);

current.update();

 

Mark Correct if this solves your issue. Hit Like/Helpful based on the impact of this solution.

-Regards,

Udhay

 

View solution in original post

2 REPLIES 2

Kamal17
Kilo Sage

In your Reopen UI action, you could try using below code,

var notes = 'Incident reopened by '+gs.getUser().getDisplayName()+' at '+new GlideDateTime().getDate();

current.work_notes.setJournalEntry(notes);

current.update();

 

Mark Correct if this solves your issue. Hit Like/Helpful based on the impact of this solution.

-Regards,

Udhay

 

Thanks bro its working