How to know HR cases REJECT Acceptance by users

akhila13
Tera Expert

How to know HR cases REJECT Acceptance by users

13 REPLIES 13

To piggy back off of Rob - We also added a field called "Reopened count" and created a simple business rule that will increment this field if the state changes from Awaiting Acceptance to Work In Progress. 

With that field you can do any number of visuals that you want to indicate that it is a case that has been reopened. You can use it for your filter or you can add field styles.

That is interesting that you added the Reopened Count filed and created the BR for it. I too just created that today however, mine is not adding the count when I test it. Would you mind sharing your creation with me so I can see what I must have done wrong?

For 'When to run' tab I have:

Before

Update: Checked

Order: 9,000

Then under 'Advanced' tab I have:

Condition: new hr_Case(current).hasReopened()

Script: current.reopen_count += 1;

 

Thanks alihubran!

-Rob

Rob, for the two templates, are there mail scripts required to make them clickable and cause it to open a new email?  How should those be created?

alijubran
Kilo Expert

Hi Rob,

 

I'm not using hasReopened() in mine, that might still work but not sure. Also maybe your Order is too late?

 

Instead i have:

 

When: before

Order: 100

On: update

Filter Conditions: State changes from Awaiting Acceptance AND State changes to Work in Progress

Script: current.u_rejection_count += 1;

 

Got it!!

Took out the condition (I copied that from the Incident Table - so that could have been why).

Changed condition filter as you mentioned

script you had was not working for me, so I changed it back to my original, However - noticed I had that wrong all along. I needed to match the actual field which was u_reopen_count. So I fixed that, and also made the order much much lower.

find_real_file.png

 

find_real_file.png

 

All is working exactly how I needed it to!

Thanks so much for you help!

Cheers!

-Rob