The Zurich release has arrived! Interested in new features and functionalities? Click here for more

create new flag type for needs attention field on HR case list view of case table

nikhitha24
Tera Guru

Hi All,

Can someone please help me on below query.

 

I want to create new flag type for needs attention field on HR case list view of case table, so that whenever the case gets updated by someone other than assigned to person , the flag will turn RED and when the Assigned to person updates it, flag will turn green.

 

Please help me to achieve this.

 

Thank you.

1 ACCEPTED SOLUTION

For the workspace, you can follow this part here: https://docs.servicenow.com/bundle/vancouver-platform-administration/page/administer/navigation-and-...

 

Bear in mind that for the new configurable workspace you must connect the record to the "configID Record" of the new workspace.

View solution in original post

8 REPLIES 8

AshishKM
Kilo Patron
Kilo Patron

Hi @nikhitha24 ,

You can create new styles [ sys_ui_style ] on the field with condition on updated by & assignee to.

Check the exiting record in table [sys_ui_style] and try to replicate the same.

 

-Thanks,

AshishKMishra


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution

Vasu ch
Kilo Sage

Hi @nikhitha24 

You can check with below approach.

1. Create the a check box field for your flag field on HR Case table.

2. Write the business rule on HR Case table such that, whenever the record is updated by the assigned to, set the flag field FALSE. Else set is to TRUE

3. Define the styles for the flag field. Refer https://docs.servicenow.com/bundle/vancouver-platform-administration/page/administer/navigation-and-...

 

Regards,

Vasu Cheeli

Hi @Vasu ch 

 

I have written the below script, but it is not working.

 

(function executeRule(current, previous /*null when async*/) {

if (current.assigned_to.changes()) {
current.needs_attention = false;
} else {

current.needs_attention = true;
}
})(current, previous);

Please help me on this.

Hi @nikhitha24 

Sorry for the late reply. You can do this without Business rule. At the field dictionary entry record, use calculated value as below

Vasuch_0-1701349619662.png

And for the same flag field, define the styles like below:

Vasuch_1-1701349695522.png

Output will be like this:

Vasuch_2-1701349751084.png

 

Hope this will help you.

 

Regards,

Vasu Cheeli