- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2019 12:06 PM
"Create Request" button on Incident table redirects to Service Catalog home page. We would like to configure this to trigger the current incident to canceled state and create a request ticket with details provided in the Incident form. Would also like same behavior when using "Create incident" from Request. Will appreciate any assistance you are able to provide to set this up.
I read a few post on community about this but none of them are clear to me. I also know this will require scripting which I am not very good at so I am hoping for a very simplified solution if possible. Thanks you.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2019 10:35 AM
You can use current to set your field values before the current.update(); line
so current.incident_state =. x;
current.close_code = x;
current.close_notes = x;
then current.update(); <- this line saves the current record before showing the catalog.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-24-2019 11:10 AM
Thank you Michael. I will put this to test and report back.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-25-2019 12:56 PM
Hello Michael, adding the fields you specified to the script works for me. I appreciate your assistance with this.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-26-2019 08:34 AM
You're very welcome.