need_attention flag on case records

priya92
Kilo Expert

Hi,

we are facing issues with case records not auto closing as per the flow after seven days ,state resolved and auto close set to true,upon further sleuthing found an OOB BR "mark for auto close" does not set the autoclose flag since needs_attention flag is set to true by the following  "actionable case flow"- Set Needs Attention if additional comment changes" 

The stuck unclosed cases have these fields set to true since comments were either added by an agent who is not the assigned to or comments being copied over from related record(incident, problem or change).

I need help to understand on what condition does the flag clear. does this need to be done manually and  how to rescue these records?

if so , this will be overhead for our operational team as in most cases , it is likely many users can work on the case record.

-Alternatively, we were thinking of deactivating the actionable case flows or only the flow mentioned earlier.

Please advice

Thanks

1 ACCEPTED SOLUTION

Mahesh Kumar7
Mega Expert

Hi Priya,

Even we faced the same issue in one of our implementation. Needs attention flag is set to true if there is a blocked by record created which may be due to state being changed to awaiting info or case being escalated. But this Needs attention flag never get unchecked. You will have to modify this BR as per your need.

Even we did the same. After that it worked fine.

Thanks,

Mahesh Kumar.

View solution in original post

6 REPLIES 6

Mahesh Kumar7
Mega Expert

Hi Priya,

Even we faced the same issue in one of our implementation. Needs attention flag is set to true if there is a blocked by record created which may be due to state being changed to awaiting info or case being escalated. But this Needs attention flag never get unchecked. You will have to modify this BR as per your need.

Even we did the same. After that it worked fine.

Thanks,

Mahesh Kumar.

Thanks Mahesh,

can you please share the details on what changes were made to the BR. 

 

Thanks

 

Hi Priya,

If you observe the script part in mark for auto close BR :

find_real_file.png

It is checking for action status plugin being inactive or needs attention being inactive.

In my scenario I didn't had much concern with action status plugin so I made this plugin inactive and created a simple BR i.e. advanced unchecked, and I kept the condition same as this BR. And in the set value part I simply put auto close to true. PFB :

find_real_file.png

No need of advanced script part you do not rely on this plugin. Additionally, you can also modify this plugin as I created a new one in my case.

Hope this helps you. 

 

 

EDIT:

One more thing you can do is that create an after update advance BR with the same condition. Add one more condition to it as state changes to resolved. In the script part check if for the current case all the blocked by task in sn_action_status_blocked_by table is unblocked then set auto close to true. You can use below script and check if it satifies your use case :

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

var blocked = false;
var gr = new GlideRecord('sn_action_status_blocked_by');
gr.addQuery('blocked_task', current.sys_id);
gr.query();
while (gr.next()) {
if (gr.unblocked_on == '') {
blocked = true;
}
}
if(!blocked){
current.auto_close=true;
}

})(current, previous);

 

Hi Priya,

Please review the answer and mark helpful and correct if it helped you.

 

 

Regards,

Mahesh Kumar