Create multiple incident tasks though a templete from an incident

denu
Kilo Expert

Hi,

I am looking for a way to create multiple incident tasks through a template from an Incident. I know this can be done through the catalogue workflow.

Unfortunately we unable to apply that method in here.

Is there any way that I can create 5 incident tasks from parent incident by applying a template?

Please provide some information.

1 ACCEPTED SOLUTION

Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

Hmmm. I don't think you can do a "template" for this. If I had to solve this without workflow I think I would create each incident task as a template and either have a very good namning convention or I add a field which I could use to group those templates together.



Then I'll either make it automatically through a after/async BR so it gets created depending on some conditions like category/subcategory or I'll make a UI action for the Service Desk to press and it will then create the tasks from templates and connect them to the incident.



Does that make sense?
//Göran


View solution in original post

8 REPLIES 8

Harish KM
Kilo Patron
Kilo Patron

you can do like this. this would create 3 task



  1. for(var i=0;i>3;i++)  
  2. {  
  3. var gr = new GlideRecord('incident_task');  
  4. gr.initialize();  
  5. gr.short_description = 'This is a test incident task';  
  6. gr.insert();  
  7. }  
Regards
Harish

Thanks Hariah,



How do I apply this business rule?



Our service desk receive incident from customers , sometimes they need to create more than 5 tasks writhin an incident. In that case they would like to apply a Template to auto create those tasks and assigned to different team.



Can i include this business rule within the template?


I did not understand your requirement


Regards
Harish

Creating a Template - ServiceNow Wiki


section 5


Regards
Harish