Assign the second task to the same user as the previous task assignee

Priyanka145
Tera Contributor

Hi All,

im having a workflow with few tasks . Once the task 1 is completed the task 2 triggers. Both are of same assignment group. My requirement is to assign the second task to the fulfiller who has assigned to the first task

please let me know how it can be done. I tried with BR but not working . 

3 REPLIES 3

Rene El Hamzh
Kilo Sage

Hi @Priyanka145

 

to better assist you, please show us how you set up your business rule. 

 

Best regards,

Rene

Sohail Khilji
Kilo Patron
Kilo Patron

Hi @Priyanka145 ,

 

Between your 1st task and 2nd task you need to create a varaible and store the value of 1st task assignment group. and using g_scratchpad you can set the 2nd task assignment group.

 

1. First task get created and user sets ''service desk'' as assignment group.

2. This assignment group value will be stored in your workflow g_scratchpad variable when the task is closed.

3. When the 1st task is closed and 2nd task get created use the g_scratchpad varaible to set the assignemt group of the 2nd task.

 

You will need to script on 1st and 2nd task to get and set the assignment groups..

 

I hope this helps...


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

Robert51
Tera Contributor

Hi @Priyanka145,

How about using the reference to the previous task's 'Assigned to'?

In Task#2 click on +Add field value select Assigned to and then, with the Data Pill Picker navigate to the Task#1->Catalog Task->Assigned to

Hope it helps.