Mark rejected HR cases

Lemajeur
Mega Expert

Hi folks,

 

Is there a way to mark all rejected hr cases in a single script? I am thinking to create a True/False field which will turn to true when a user clicks on ˇreject completionˇ or no in the HR portal. 
I wanted to write a business rule on sn_hr_core_case table, but since so many tables are inherited from it, I guess that it will not work. 

 

Any pointers on how to achieve this? 

1 ACCEPTED SOLUTION

Rob Sestito
Mega Sage

Hey Lemajeur,

So for the Business Rule way, I don't see why you could not use that with a true/false field. When Case is rejected in HR, it typically goes from Awaiting Acceptance State to WIP State (for us it does anyway).

I built a BR and True/False field on the HR Case Core Table (then within the other tables you would be using this for, you just need to configure the layout for their form to add the new field where you want it).

Here is what I did, and it works each time any case changes from Awaiting Acceptance to WIP (which constitutes as a "case being rejected for completion"):

find_real_file.png

 

find_real_file.png

find_real_file.png

 

However, if you are looking to report off of something like this, you may want to build something additional to move this field back to false when the Case is moved into Awaiting Acceptance again (or just have the Assigned To trained to uncheck the box when they attempt to resolve again).

Hope this helps - Let me know if it does or does not work for you. Maybe we can brainstorm more or another option.

Cheers!

-Rob

View solution in original post

13 REPLIES 13

Jaspal Singh
Mega Patron
Mega Patron

Yes, you can create a background script for marking all the existing Rejected HR Cases one go. Another thing you can do is

1. Create a True/False field on the HR Case table.

2. Modify UI Page: HR Comment Dialog & look for Processing script that has rejectCompletion() method used. Add line task.u_yourfield_name=true; below task.state=8;

3. Update the script.

This would imply that any HR Case that has Reject Completion clicked will set the True/False field that you would be creating update accordingly.

 

Thanks,

Jaspal Singh

 

Hit Helpful or Correct on the impact of response.

Hi Jaspal,

 

If you mean this , right? 

find_real_file.png

 

It still did not work. my field stayed false

Rob Sestito
Mega Sage

Hey Lemajeur,

So for the Business Rule way, I don't see why you could not use that with a true/false field. When Case is rejected in HR, it typically goes from Awaiting Acceptance State to WIP State (for us it does anyway).

I built a BR and True/False field on the HR Case Core Table (then within the other tables you would be using this for, you just need to configure the layout for their form to add the new field where you want it).

Here is what I did, and it works each time any case changes from Awaiting Acceptance to WIP (which constitutes as a "case being rejected for completion"):

find_real_file.png

 

find_real_file.png

find_real_file.png

 

However, if you are looking to report off of something like this, you may want to build something additional to move this field back to false when the Case is moved into Awaiting Acceptance again (or just have the Assigned To trained to uncheck the box when they attempt to resolve again).

Hope this helps - Let me know if it does or does not work for you. Maybe we can brainstorm more or another option.

Cheers!

-Rob

Hmm, for a business rule report, is this a Performance Analytics product (we do not have this).

I just don't see any option for a Business Rule report or anything related in the Filter Nav.