Leave Application Notification not working based on workflow state value change

Hello guys, I have a leave application workflow where officers apply for leave, the directors approve or reject, and finally, go to HR Manager. On the same workflow, the directors can apply for leave and the CEO will approve or reject it.

I have created a notification to send system notifications to the leave approvers and applicants. The employees with the officers role receive notifications when their application gets approved or rejected, but others (department directors, HR manager, and the CEO) do not receive the notification.

Can someone please help me with this?
Thank you.

Here are the screenshots from the leave application workflow and notification settings. I was testing with the department director while I was taking the screenshot


Here are the States I have defined

and here is the transition
image

The notification for leave application doctype looks like this:
image

2 Likes

Anyone here?, please support me on this

doc.workflow_state==“Approved” use this condition in condition field
also dont select 2 fileds under recipent either select owner or selecet role choose between one
i will prefer only seelcet role then the notification will be sent once the status is approved

1 Like

Thank you so much for replying, I have changed to doc.workflow_state as you suggested and it is working but, all employees are getting a notification when someone’s leave application gets updated.

dont select 2 fileds under recipent either select owner or selecet role

I chose the owner because the owner of the leave application will receive the notification; that’s how I understood it. Am I wrong?
Since the Directors will also apply for leave, I set the owner for when the workflow state changes to approved or rejected.

recepinet select the role you want to send the notification and also for owner you should select in the new row


like this
or like this