How can i send email to Assignment group with all the ticket detail assigned to them?

Ankit Kumar6
Tera Contributor

Hi 

I have a requirement where i have to send mail to each assignment group with all the incident detail assigned to them.

so my question is:

1.  How can i extract the detail like incident number,description etc. of each assignment group?

2. How can i send those extracted data to each assignment group via mail (can i create excel file automatically and send to each assignment group)?

3.Then assignment group have to provide their response to each incident number,How can i capture this responses in incident table (group will provide their response either in shared excel or in mail).

 

How can i do this via script .please help.

 

Thanks in advance

Ankit

2 REPLIES 2

The Matrix
Tera Contributor

Community Alums
Not applicable

Hi @Ankit Kumar6 ,

I tried your problem in my PDI and it works for me please refer below 

You can pass data to email notification by 3 ways 

1. By passing the events. You have to create before BR and call the event and in that event you have to pass the obj.

(function executeRule(current, previous /*null when async*/) {

	// Add your code here
	var obj = {};
	obj.number = current.number + "";
	obj.description = current.description + "";
	obj.shortDescription = current.short_description + "";

	gs.eventQueue('incident.details', current, JSON.stringify(obj), gs.getUser().getEmail());

})(current, previous);

SarthakKashyap_0-1715337836261.png

2. You can create the notification on incident table and access the variables 

SarthakKashyap_1-1715337922964.png

 

3. By email script 

 

Please mark my answer correct and helpful if this works for you

Thanks and Regards 

Sarthak