Restrict SCTASK closure in list view

s_dinesh01
Tera Expert

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

3 REPLIES 3

Brian Lancaster
Tera Sage

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.

 

BrianLancaster_1-1712770171175.png

BrianLancaster_2-1712770184450.png

 

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

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.