Can anyone help explain why users are not seeing my comments when rejecting work submitted though Workflow? They have no idea why their work has been rejected. I have to enter a comment in order to be able to reject but it isn’t appearing in their notification email.
Hi @Janegeol
I’m not familiar with Umbraco Workflow it sounds like the email template is missing the comments field. Are you able to check?
See details here on the template and notifications.
Justin
Yes, that’s what I’m thinking. I did check the documentation you refer to but it hasn’t helped unfortunately. If anyone out there has the line of code for those comments i’d be grateful. Thanks @justin-nevitech
Hey @Janegeol , try adding @Model.Summary to your rejection template it’s a pre-built field that captures the full workflow state including the reviewer’s comment. Just drop this in:
html
@if (Model.Summary != null)
{
<div>@Model.Summary</div>
}
Your template will be at ~/Views/Partials/workflow/email/ (newer versions) or ~/Views/Partials/WorkflowEmails/ on older ones. You can also edit it straight from the Backoffice under Settings → Content Approvals → Notifications → Email Templates.
If you’d rather pull the comment out directly, something like @Model.CurrentTask?.Comment might work but the package is closed-source so the exact property name is hard to confirm without IntelliSense — open the template in Visual Studio and type @Model.CurrentTask. to see what’s available.
One other thing worth checking — in your Notifications settings, make sure rejections are set to notify Author rather than just the group, otherwise the submitter won’t get the email at all.
(Used AI to help research this verified against the official docs)
all the best : )
/Bishal