UI actions Create child incident; Solved!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-20-2025 03:47 PM - edited 11-20-2025 06:35 PM
Hello! this code is not working with the options I have selected. I am trying to create a child incident button using UI actions. I am using Xanadu. The "Create Child Incident" button is not showing on the incident form.
Any tips appreciated!
Hi! This problem has been solved! I figured out that the missing parts of the code was
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
@LaasyaV71587518 Try:
var cinc = new GlideRecord('incident');
cinc.initialize();
cinc.short_description = current.short_description;
cinc.category = current.category;
cinc.subcategory = current.subcategory;
cinc.priority = current.priority;
cinc.work_notes = 'New incident has been created from ' + current.number;
var childID = cinc.insert(); // This actually creates the record
gs.addInfoMessage('Child Incident has been created: ' + cinc.number);
action.setRedirectURL(cinc);
@LaasyaV71587518 - Please mark this Solution as Accepted and thumbs up if you find helpful!
