- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2016 04:23 AM
Hi All,
Please advise me on how to configure the option/button for creating New Child Incident from being on the Parent incident form. Once the Create New child is clicked, it should link to the existing parent on which we are currently in?
Can someone help me with the steps I need to follow in order to achieve this? If anyone has done this, please share the script pattern for the same.
Awaiting your response.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2016 02:02 AM
1) If your requirement is to achieve it specifically via a UI button then have a UI Action with below code.
var inc = new GlideRecord("incident");
inc.initialize();
inc.short_description = 'Child Incident';
inc.parent = current.sys_id; //Relating the current incident as the parent
var sysID = inc.insert();
gs.addInfoMessage("Child Incident " + inc.number + " created");
action.setRedirectURL(inc);
action.setReturnURL(current);
2) You can also do this via the related list as Mrudula suggested. Personalize/Configure the list control and ensure the 'Omit new button' is unchecked.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2016 09:49 PM
Hi Pavithra,
The New button is available to ITIL user as well. I have checked this on one of service-now's demo instance ServiceNow . Please chek if the Incident table has create ACL for ITIL users. Or check in list control for incident if the "new" button has any roles associated to it.
Thanks,
Mrudula
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2016 01:14 AM
Configure List Control within Parent Form Related List of Child Incidents
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-03-2016 06:46 AM
Does anyone know how to create an indicator to differentiate parent and child?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2016 01:33 AM
Right click on the list header --> configure-> List Control -- >uncheck the New Check box and save.