- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-19-2023 01:12 PM
Hi,
I have an issue where if the Incident state is moved from 'New' straight to 'Resolved' then the SLA Definition is not attached to the Incident record. Ideally I need to force the user to move the Incident state from 'New' to 'In progress' before it is moved to 'Resolved'.
I believe I need to create a Client Script but I'm not sure on the script to validate if the Incident State value has moved to 'In progress' before it is moved to 'Resolve'.
Any help appreciated.
Thank you in advance!
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2023 01:17 AM
This needs to be done on onchange client script with the state filed as the column
if (oldValue == newValue)
return;
if(oldValue == "2" && newValue =="6"){
//write your script
}
Please mark correct if my response has solved your query.
Cheers,
Mohammed Basheer Ahmed.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2023 01:17 AM
This needs to be done on onchange client script with the state filed as the column
if (oldValue == newValue)
return;
if(oldValue == "2" && newValue =="6"){
//write your script
}
Please mark correct if my response has solved your query.
Cheers,
Mohammed Basheer Ahmed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-20-2023 04:00 AM
Perfect, that worked.
Many thanks