- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-24-2023 08:42 PM
if the problem is created at the same time, an incident is also created with the problem description.
Solved! Go to Solution.
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2023 08:24 AM - edited 12-25-2023 09:07 AM
Hello @BheemavarapuTej,
Create 'after insert' Business Rule like this :
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2023 08:24 AM - edited 12-25-2023 09:07 AM
Hello @BheemavarapuTej,
Create 'after insert' Business Rule like this :
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2023 08:48 AM
Hello @BheemavarapuTej ,
Sure, to accomplish this, you can set up an 'after insert' Business Rule on the Problem table. Refer to the code below:
(function executeRule(current, previous /*null when async*/) {
// Create a new incident record
var incident = new GlideRecord('incident');
incident.initialize(); // Initialize the incident record
incident.short_description = current.short_description; // Use the same description as the problem
incident.insert(); // Insert the new incident record
})(current, previous);
Let me know your views on this and Mark ✅Correct if this solves your query and also mark 👍Helpful if you find my response worthy based on the impact.
Thanks,
Aniket
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-25-2023 10:02 PM
thank you bro
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2023 04:29 AM