Creating an HR Task from a Workflow with a Template is Not Setting the Assigned To

Nick Peters
Tera Guru

I have an HR service which is configured to run a workflow when a case is created with that HR service selected. In the workflow, a Create Task activity is creating an HR task using a template. On that HR task template are a number of conditions:

Short description: Test Short Description
HR task type: Collect Employee Input
Employee form: Test Form
Assignment type: Employee - Parent case subject person

When the task is created, all of the conditions are properly set except for the Assigned to - it's empty. I never had an issue with setting the Assigned to with this same template before when it was part of a Lifecycle Event. 

Does anyone know some troubleshooting steps I can try?

4 REPLIES 4

Willem
Giga Sage
Giga Sage

OOTB there is a Dependency of the Assignment group:

find_real_file.png

 

 

 Are you setting the assignment group as well, if so, can you check the user you want to assign is in that group?

Willem
Giga Sage
Giga Sage

I looked back in my emails because I thought we had the same issue. However, we were never able to figure out why it would not save assigned to.

 

As a workaround we added in the Script - advanced section of the Create Task activity the following:

task.assigned_to = <user id of the person to assign to>;
task.insert();

 

You are welcome to try if that works for you.

Willem
Giga Sage
Giga Sage

Hi Nick,

Hope you are doing well.

Is your question resolved? Or do we need to follow-up on this?

Please mark this answer as correct if it solves your question. This will help others who are looking for a similar solution. Also marking this answer as correct takes the post of the unsolved list.
Thanks.

Kind regards,

Willem

Rajender1
Mega Sage

Hey Nick,

Its an expected result. ServiceNow has provided Below article which help you to understand this.

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0860554

 

Please Mark Answered/Helpful