UI Action Enable

beycos
Tera Contributor

Hello Community, 

There are  catalog tasks assigned to Assignment group X,  Assignment group Y,  Assignment group Z are all created at the same time from one Request Item. When the tasks for Assignment group X  or  Assignment group Y  have their state field set to Closed complete , I want to enable the "Close Task" button on the task assigned to Assignment group Z. In other words, The task for Assignment Group Z's state should not be closed complete until the tasks for Assignment Group X or Assignment Group Y are closed complete. If the state of Assignment Group X catalog task  or Assignment Group Y  catalog task is "Open," the "Close Task" button for Assignment Group Z catalog task should not be active or visible.

How can I achieve this?

Many Thanks 

Regards, 

Beyza

5 REPLIES 5

Runjay Patel
Giga Sage

Hi @beycos ,

 

I have given you the working code here: https://www.servicenow.com/community/developer-forum/how-to-prevent-z-task-closure-if-x-and-y-tasks-...

 

Did it not work?

 

-------------------------------------------------------------------------

If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.


Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay

-------------------------------------------------------------------------

Part 2. In this video i have talked about overview on ServiceNow platform/tool. How you can opt for personal dev instance (PDI)? how to login in ServiceNow instance and navigation to OOB modules. For document please visit: https://servicenowwithrunjay.com/ Follow Facebook page for latest update on