if problem is created same time incident also create with problem description.

BheemavarapuTej
Tera Expert

if the problem is created at the same time, an incident is also created with the problem description.

1 ACCEPTED SOLUTION

Unique45
Mega Sage

Hello @BheemavarapuTej,

Create 'after insert'  Business Rule like this :

Pratiksha_PP_0-1703521396959.png

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

Please mark correct/helpful if this helps you!

View solution in original post

4 REPLIES 4

Unique45
Mega Sage

Hello @BheemavarapuTej,

Create 'after insert'  Business Rule like this :

Pratiksha_PP_0-1703521396959.png

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

 

Please mark correct/helpful if this helps you!

Aniket Chavan
Tera Sage
Tera Sage

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

thank you bro

Hello @BheemavarapuTej ,

 

You're welcome!😉