Email notification on project task changes

Sonali01
Tera Contributor

Good morning,
Please help me to resolve this issue as its a priority 
On the email Project task status change notification, the requirement is to add the Project name and project number, which I added as highlighted in the screenshot.
The issue I'm having is it's showing the correct information when I try to modify the existing Project task record to close completed, skipped, and incomplete, but when I create a new project and create a new task under that it shows project task name and project task number on (Project Number, Project Name).

Sonali01_1-1718546044750.png

 

Sonali01_0-1718545890002.png

Thanks in advance

3 REPLIES 3

Deepak Shaerma
Kilo Sage

Hi @Sonali01 

 

 

### 1. Checking Notification Script

First, ensure the notification script correctly references the fields in the Project Task table to pull the Project Name and Project Number. Double-check the syntax and variable assignment.

 

### Example Notification Script

 

// Make sure these are the correct field names

var projectName = current.project.name;

var projectNumber = current.project.number;

 

email.body_text = "Project Name: " + projectName + “\n” +

                  "Project Number: " + projectNumber;

 

 

### 2. Confirm Field Names

Ensure that current.project.name and current.project.number (or their equivalents) are the correct references to the Project Table fields.

 

### 3. Notification Conditions

Ensure that the notification conditions are correctly set to trigger appropriately:

 

1. Navigate to System Notification > Email > Notification.

2. Open the specific notification or create a new one.

3. Specify the Table as “Project Task” (pm_task).

4. Set the conditions under “When to send” based on your requirements.

 

### 4. Correct Variable Syntax

You mentioned using variables like $(top_task.URI_REF) and $ftop_task. They might be incorrect or improperly formatted. Ensure you’re using the correct methods to refer to fields.

Check if there are any business rules that might interfere with the data your script should fetch or that could potentially override expected fields.

 

please mark this Helpful and Accepted Solution if this helps you. Your action will help me and the community in understanding same requirements.

Thanks & Regards

Deepak Sharma

Thanks Deepak this email notification not using any notification script.
SO the project number and Project name are using the (PM_Project) table.
Below is my notification screenshot and its using table (pm_project_task)

Sonali01_0-1718645645826.png

I tired different variables , but still no luck.

Hi @Sonali01 I have activated this OOTB notification but notification not triggering while project task state changes or assigned to changes. Is there anything need to activate

 

Thank you!