- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2023 06:19 AM
I am trying to stop all editing of a related list when an incident is closed or cancelled. The related list is 'related services' which appears on Incident and I want to make the list view of related services read only when incident is in one of two states. I cant get this to work and it seems to ignore what task.state is. Any help is appreciated
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-07-2023 02:26 AM
Thanks for everyone's input. The answer was to manually script it:
if(current.task.sys_class_name == 'incident'){
if(current.task.state == 7 || current.task.state == 8){
answer = false;
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-01-2023 01:40 PM
What's the script? Can you show it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2023 12:06 AM
The script just has answer=false: I tried scripting the condition but nothing changed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2023 05:35 AM
Why aren't you using the Condition builder? What I offered up should work if your Condition is correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2023 06:03 AM
I am using the condition builder and the script now just says answer=false. I tried the above script but nothing changed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-04-2023 10:17 AM
Here are screen shots of our two write ACLs for Incident. The first disallows write for itil once the record is closed.
This one disallows write for the Caller or Opened By once the record is closed.