I would like to be able to have HR Managers be able to Re-Open Closed Employee Relations (HRSD) case

Hola Ola
Giga Guru

Hello all, 


•    We’d like a UI Action (button) labeled ‘Reopen Case’
•    The UI Action should be only visible to Managers and ONLY when the Case State is ‘Closed Complete’, ‘Closed Incomplete’ or ‘Cancelled’
•    When used, the Employee Relations Case should change from one of the Inactive/Resolved States to Work In-Progress

 

Any help on starting and/or completing these requirements will be very appreciated. 

 

Thank you.

 

2 ACCEPTED SOLUTIONS

abirakundu23
Mega Sage

Hi @Hola Ola ,

Please try for 'Reopen Case' Ui action.
Condition: (current.state == 3 || current.state == 4 || current.state == 7) && gs. hasRole("sn_hr_core.manger")
script:

current.state=18;
current.update();

Please mark helpful & accept the answer if it's really worthy for you.



 

View solution in original post

abirakundu23
Mega Sage

Hi @Hola Ola ,

I don't think that state field is editable however it's 'Reopen case' or not. If you want to move state to another state, you can go forward use respective button from native view as well as Agent workspace.

Please mark helpful & correct my previous answer as you mentioned it worked for you.
Please mark helpful & correct answer it's worthy for you.

View solution in original post

3 REPLIES 3

abirakundu23
Mega Sage

Hi @Hola Ola ,

Please try for 'Reopen Case' Ui action.
Condition: (current.state == 3 || current.state == 4 || current.state == 7) && gs. hasRole("sn_hr_core.manger")
script:

current.state=18;
current.update();

Please mark helpful & accept the answer if it's really worthy for you.



 

@abirakundu23 

Thank you for the response, it works.
Do you however have a way or script that will make the State field editable after re-opening the case?

 

1111.png

Again, thank you for the response.

abirakundu23
Mega Sage

Hi @Hola Ola ,

I don't think that state field is editable however it's 'Reopen case' or not. If you want to move state to another state, you can go forward use respective button from native view as well as Agent workspace.

Please mark helpful & correct my previous answer as you mentioned it worked for you.
Please mark helpful & correct answer it's worthy for you.