create incident ui action
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2016 09:26 AM
Has anyone created an incident for the customer or break fix request for customer/contact in the customer service management application?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2016 09:40 AM
Please go through below thread.It might help you.
Need a tip for a UI action - create incident from catalog task
Thanks,
Mihir

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-13-2016 09:48 AM
Hi Calvin,
Yes, this can be done quite easily. If you are looking to bring information from the CSM case to the incident, you simply need to identify which fields to map from/to.
The UI action script would look like something like this (modifications required to meet your needs.)
var inc = new GlideRecord('incident');
inc.newRecord();
inc.short_description = current.getValue('short_description');
inc.caller_id = current.getValue('contact');
// Add additional fields here
inc.insert();
gs.addInfoMessage('New incident created: ' + inc.number);
action.setRedirectURL(inc);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-18-2016 12:41 PM
Just one small update on line 4 - current.getValue('contact');
Works great!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2016 04:47 AM
Thank you. - corrected.