Is it possible to display actual time stamp of transferring an incident in LIST VIEW?

Anastasia Ty-Ch
Tera Contributor

Hi guys!

 

I just want to ask if it's possible to display the actual time and date when an incident was transferred from one group to another in LIST VIEW?

 

For example, this incident was transferred from GROUP 1 to GROUP 2 last September 13, 2023 at 01:21. Can I put the time and date in LIST VIEW?

 

INC TIME.jpg

1 ACCEPTED SOLUTION

Hi @Anastasia Ty-Ch,

 

Create a custom field on your table for this you can refer the product document https://docs.servicenow.com/en-US/bundle/vancouver-it-service-management/page/product/change-managem...

 

Once custom field is created then create on After business rule on Update operation and use below code to populate value in your custom field.

VijayBalotia1_0-1695123459075.png

(function executeRule(current, previous /*null when async*/) {
 
// Add your code here
 
current.u_test_date(your custom field backend name)= gs.nowDateTime();
current.update();
 
})(current, previous);
 
Result:
VijayBalotia1_1-1695124543302.png

 

Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Thanks
Vijay Balotia

View solution in original post

9 REPLIES 9

Vijay Balotia1
Tera Guru

Hi @Anastasia Ty-Ch,

OOTB is not feasible but you can create a custom field and when the assignment group changes you can update value in that field. If you want you can add that in your list layout.

 

 Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Thanks
Vijay Balotia

Hi @Vijay Balotia1 thanks for responding. I'm actually not familiar with that. Can you teach me how to do it?

Hi @Anastasia Ty-Ch,

 

Create a custom field on your table for this you can refer the product document https://docs.servicenow.com/en-US/bundle/vancouver-it-service-management/page/product/change-managem...

 

Once custom field is created then create on After business rule on Update operation and use below code to populate value in your custom field.

VijayBalotia1_0-1695123459075.png

(function executeRule(current, previous /*null when async*/) {
 
// Add your code here
 
current.u_test_date(your custom field backend name)= gs.nowDateTime();
current.update();
 
})(current, previous);
 
Result:
VijayBalotia1_1-1695124543302.png

 

Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Thanks
Vijay Balotia

@Anastasia Ty-Ch

 

If you don't want to use custom field then you can go with define matrix.

 

Please mark the appropriate response as correct answer and helpful, This may help other community users to follow correct solution.
Thanks
Vijay Balotia