As has been pointed out this capability isn't natively in the product today. However it may be possible to achieve your goal regarding mandatory tasks in the following way:
* Create a hidden incident field: num_mandatory_tasks_open: number. Don't put this on a layout which makes it effectively "hidden".
* Create a task rule: When a mandatory task is opened, increment the field by one (this can be done using a script).
* Create a task rule: When a mandatory task is closed, decrement the field by one.
* Create a rule: When an incident is closed, throw an error if the field is greater than zero( this can be done using a script with helper.fail()).
Here is an example task script that decrements the count:
i
f incident.properties.num_mandatory_tasks_open is None: incident.properties.num_mandatory_tasks_open = 0val = int(incident.properties.num_mandatory_tasks_open) incident.properties.num_mandatory_tasks_open = str(val + 1)I think this strategy could work.
Ben
------------------------------
Ben Lurie
------------------------------