- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-02-2023 02:01 PM
Hi
Please help me to solve the use case
Child incident should not close when assigned_to field is empty in Parent incident.
Thank you:)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-03-2023 02:58 AM - edited ‎11-03-2023 03:00 AM
Create a before update BR on incident table condition state changes to closed and with below code
if(current.parent.assigned_to=='')
{gs.addErrorMessage('Parent assigned to empty');
current.setAbortAction(true);}
Regards,
Piyush Sain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-03-2023 02:58 AM - edited ‎11-03-2023 03:00 AM
Create a before update BR on incident table condition state changes to closed and with below code
if(current.parent.assigned_to=='')
{gs.addErrorMessage('Parent assigned to empty');
current.setAbortAction(true);}
Regards,
Piyush Sain
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-03-2023 05:44 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-03-2023 05:45 AM
Thanks @piyushsain
It is working.