UI Action Enable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2025 03:42 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2025 09:56 PM
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
-------------------------------------------------------------------------