Workflow page rejected email

We have a basic workflow applied to our site as follows:


Author group (backend user write permissions) -> edits page then applies for approval

Approver group (backend user admin permissions) -> approves or rejects page



Currently, when a page is rejected through workflow an email is sent to the approver group saying the page is rejected, but no email is sent to the author group that did the editing and applied for approval.



Can someone please help and tell me how we can get an email to the author group when the page is rejected through workflow.



Thanks

Make the first step of the Workflow Schema the Author Group with only 1 member required. The 2nd step is then the Approver group. When an Author applies, it'll auto-bypass the first step. But when its rejected, it'll notify them.


This is also useful for Up for Review – means the authors get notified when an asset comes up for review, instead of the approvers.

Thanks Avi, but our system doesn't appear to do this. I have added the Authors as the first step in the workflow, with "at least one" member to approve, and this does auto-bypass the first step. But when the page is rejected the email is always sent to the approver group, no the author group.


I also tried this with a three step workflow:

author group

Approver 1 group

Approver 2 group



If approver 1 group rejected it, then they get the rejected email, if approver 2 group reject, they get the email.



Any ideas?

It may be that the workflow doesn't notify the downstream approvers. You may need to log this so that our developers can investigate if its a bug, or not an intended function.

Thanks Avi - will do.
In the mean time is there any way to send an email on reject in workflow via a trigger?


Hmm.. perhaps well crafted. If you do it on status change to Safe Edit with the current status as Pending Approval, perhaps. Haven't tried it though.

Sorry to ask a dumb question, but how do I set a trigger that does that.
We have done heaps of triggers that fire on status change to "whatever status", but where do you set the "with the current status of Pending Approval"?

This can be done by setting the adding an "Asset Status" condition type under the "Conditions" section of the trigger.

Commit this page and a status list will be shown in the "Conditions" section from which you can select "Pending Approval".

Sorry - I still don't get it.
We need to use the "Asset Status" condition to tell the trigger to fire when the status is changed to live.

And you then can't add the asset status condition twice.



So… I thought the trigger would be:



Event - Status Changed

Condition - Asset Status of "Safe Edit"

Action - Send email



This would fire the trigger when the status is changed to safe edit.

I still dont see where you can add the condition of what the current status is.

Bum, you're right. :frowning: There's no way to setup a condition based on a specific Status A to Status B shift.