Restrict SCTASK closure in list view
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2024 09:40 AM
Hello,
i have a variable in SCTASK variables section which is mandatory only in SCTASK, if the field is Empty i want to restrict the task closure from the list view.
i have written an before business rule and abort action, but that works both on the form and list view
i did write the onChangeCellEdit glide AJAX script & script include but it is also not working,
can anyone suggest for this requirement, that would be great help

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2024 10:30 AM - edited 04-10-2024 10:31 AM
I think the simplest solution would be to create a list edit ACL that blocks changing the state from the list. Its usually not good practice to have state changes allowed from the list anyway. I would leave Admin override checked just in case you need to close out tasks for some reason. For Example we saw that we had old tasks that were never completed as the user left the company. So I just went in and just closed incomplete all the tasks. This is what the ACL would look like.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2024 11:08 PM
Hi @Brian Lancaster
i did create a list_edit ACL on the sc_task table state field with the condition, item is (xxx) and variables.itemName.variableName is empty, condition shows the correct number of records but im able to change to state in the list view to any even if the field is empty

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-11-2024 07:57 AM
Are you logging in with an admin account? By default Admin override is check when creating an ACL. You should impersonate someone with the ITIL role. I would also just remove the conditions and set it up the way I have it. People should not be changing stats from the list layout.