Create an incident from catalog item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-25-2018 10:25 PM
We have a catalog item which has variables like below
1) Category
2) Sub category
3) Type ( Incident / Service request)
Based on Category & Sub category, type is decided If type is incident, I need to create an incident when the catalog item is submitted. If the type is service request, i need to follow the normal SR.
I am facing issues while creating incident on submission of service request. We do not use cart (add to cart is disabled). So when the item is submitted, how to i stop REQ creation & log incident?
- Labels:
-
Service Catalog
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2018 01:29 AM
Hi Nithin,
Return false would stop the submission itself, I dont want to stop the submission.
my requirement is after clicking on submit, i need to stop the system from creating RITM & generate an incident
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2018 01:35 AM
You don't need to submit the Request to create an incident 🙂 Just put your incident generating code before return false and it will generate incident without creating an RITM.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2018 01:48 AM
On submit of a catalog item will always generate RITM even if we write code to create incident. Just putting incident code will result in creating of Incident as well as RITM for the same.
My requirement is : when user click on submit, it should create a RITM rather create an incident.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2018 01:52 AM
If you return false from your on Submit script, it will not create the Request Item. You can simply just redirect the user from this request.