How to send a notification to parent when child state changes.

jay1111
Kilo Guru

Hi Experts,

I trying to create notification on child(demand task). But, the notification should send to demand manager on demand. whenever state changes on demand task.

I tried to do dotwalking on parent feild, but i dont see a demand manager field.

Any suggestions?

find_real_file.png

Thanks,

Jay

1 ACCEPTED SOLUTION

DirkRedeker
Mega Sage

Hi

The "Parent" field will refer to another Task record, where this current task (demand) is located below.

If you want to send a notification to the "manager", I am asking where you find the "Manager" for your demand. If this is the manager of the "Assigned to" user of the Task, you can create a Business Rule to fire on "After UPDATE" of the demand table records, and take the condition "When State changes".

In this case, you can script to fire an event (for triggering the notification), if there is a manager mentioned of the user record of the assigned to user.

current.assigned_to.manager

Use this Sys_id in "Parm1" of the notification and use Parm1 as recipient in the notification.

That way, it should do what you are heading for.

Let me know if that answers your question and mark my answer as correct and helpful.

BR

Dirk

View solution in original post

10 REPLIES 10

denu
Kilo Expert

Hello denu,

I attempted to follow along but it appears something is not correct.

It would help if I provided additional information:

If a Problem containing PTasks were to be Cancelled I would like the "assigned_to" on the Ptask to be notified of the cancellation.

My Event is called "problem.cancelled" and it is on the Problem table.

My business rule is as follows:

 

DirkRedeker
Mega Sage

Hi

The "Parent" field will refer to another Task record, where this current task (demand) is located below.

If you want to send a notification to the "manager", I am asking where you find the "Manager" for your demand. If this is the manager of the "Assigned to" user of the Task, you can create a Business Rule to fire on "After UPDATE" of the demand table records, and take the condition "When State changes".

In this case, you can script to fire an event (for triggering the notification), if there is a manager mentioned of the user record of the assigned to user.

current.assigned_to.manager

Use this Sys_id in "Parm1" of the notification and use Parm1 as recipient in the notification.

That way, it should do what you are heading for.

Let me know if that answers your question and mark my answer as correct and helpful.

BR

Dirk

Hello Dirk,

It would help if I provided additional information:

If a Problem containing PTasks were to be Cancelled I would like the "assigned_to" on the Ptask to be notified of the cancellation.

My Event is called "problem.cancelled" and it is on the Problem table.

My business rule is as follows:

 

OK

current.parent.assigned_to.manager

If you want to use the Manager of the Assigned To User on the Parent Task.

Give it a shot and let me know.

BR

Dirk