Automate Notification Bug

I believe I found a bug, I guess posting this to improvement is the best route.

Automate function backed notifications aren’t displaying the headless html in the email.

Notification Function:

        // Define the email body
        const body = `
            Hello!
            <br>
            <br>
            You have been assigned a new task. in the project: ${project.projectName}.
            <br>
            <br>
            
            <b><u>Task Name:</b></u> ${pmTask.name}
            <br>
            <b><u>Task Description:</b></u> ${pmTask.description}
            <br>
            <b><u>project:</b></u> ${project.projectName}.
        `;

        // Create a short notification that will be shown within the platform
        const shortNotification = ShortNotification.builder()
            .heading(`New Task in project: ${project.projectName}.`)
            .content(body)
            .addObjectLink("View Task", pmTask)
            .build();
        
        // Create Email Notification Content
        const emailNotificationContent = EmailNotificationContent.builder()
            .subject(`New Task in Project: ${project.projectName}`)
            .body(body)
            .addObjectLink("View Task", pmTask)
            .build();

        return Notification.builder()
            .shortNotification(shortNotification)
            .emailNotificationContent(emailNotificationContent)
            .build();

Expected Email Display:
Hello!

You have been assigned a new task. in the project: ${project.projectName}.

Task Name: ${pmTask.name}
Task Description: ${pmTask.description}
project: ${project.projectName}.

Actual Email Display:
Hello, You have been assigned a new task in the project: NA. Task Name: NA Task Description: NA

1 Like