How to create Incident and make case as its parent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 09:07 AM
Hi All
Can anyone help me with the requirement
when we have created a case
and created one incident how to make case as parent to this incident,
and custom field in incident is mandatory when incident moved to Resolve/ Close
Case can not be closed until child incident closed.
Please help with me script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 09:31 AM
There is a parent field out of box on incident field. You can just store the case sysid as parent in the incident.
You should also provide option as a related list under case for users to create incident from the case, which will bydefault make the case parent of the incident.
Then you need a business rule on the incident to abort action when someone is closing the case, if there are open incidents.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 09:57 PM
HI Sanjiv can you help me with script part?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2024 01:06 AM
@Community Alums How are you creating incident from case? If there is a UI Action, then you can set inc.parent = current.sys_id+''; in the UI Action script field
Where inc is the GlideRecord object of incident and current is case record.