Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

how to create incident task using workflow?

DS20
Tera Contributor

Hi,

Question:-

(a) An incident is raised. 2 tasks get associated simultaneously and parallel (not one after another) i.e task 1 and task 2.

  (b)After the completion of tasks, task 3 gets generated from task 1 and task 4 gets generated from task 2.

  (c)A request cannot end until each both tasks are closed.  

I have created workflow for the same,but when I create incident ,incident tasks are not getting attached to incident.

Please refer the screen shots for the same.

Thanks in advance

1 ACCEPTED SOLUTION

Hi DS


Yes you can create without writing script. There is a task activity that you need to add in the workflow.Make sure that the task type you selected is incident task. Please see the screenshot attached.


find_real_file.png


View solution in original post

5 REPLIES 5

Deepak Kumar5
Kilo Sage

Use run script activity and insert a new record in task.



var NS= new GlideRecord("u_incident_task");


NS.initialize();


NS.u_short_description = current.short_description;


NS.u_description = current.description;


NS.u_caller = current.caller_id.getDisplayValue();


NS.u_manager = current.u_manager.getDisplayValue();


NS.u_location = current.location.getDisplayValue();


NS.u_assigned_to = current.assigned_to.getDisplayValue();


NS.u_assignment_group = current.assignment_group.getDisplayValue();


NS.insert();


gs.addInfoMessage(gs.getMessage('record inserted:'+current.number));


Hello,



  Without using script can I create incident task using workflow?


Hi DS


Yes you can create without writing script. There is a task activity that you need to add in the workflow.Make sure that the task type you selected is incident task. Please see the screenshot attached.


find_real_file.png


When I change it to incident task they show up as a task in the list view instead of incident task.