Send email when task is closed

MMKK
Tera Expert

Hi All,

I want to send attachments of task to a group when the task is closed.

Please let me know how this can be achieved.

3 REPLIES 3

Community Alums
Not applicable

If your attachment is related to records in servicenow
 
1) Navigate to: Reports > Createn New 
Create a new report in which you create your attachment data.

2) Navigate to: Reports > Scheduled Reports

Create New, Give any name and select report in Report reference field.

Select group and in the Run field, select On Demand, check to Condition, in condition area define your condition (task==closed)

If it doesn't work let me know 🙂 

Sumit46
Kilo Contributor
template.print ( 'Attachment: <a href="/sys_attachment.do?sys_id=' + gr. sys_id + '">' + gr. file_name + '</a>\n ' ) ;

Hello MMKK,

You can create a email notification with conditon 'state changes to closed' and it will fire whenever your task is closed.

Attaching attachments of task can be done through Email Scripts.

Full link here : Attachments in Reports

Hope this helps.

 

asifnoor
Kilo Patron

Hi,

Create a notification on your task table.

Add a condition state is closed.

Then configure who to receive.

To add attachment in the notification, refer to this link

https://docs.servicenow.com/bundle/jakarta-servicenow-platform/page/script/useful-scripts/reference/...

Mark the comment as a correct answer and helpful if it answers your question.