How to use automation to create sub-tasks for a new issue and assign those subtaks to an assignee?
Asked by cpasfield:

Updated Per Bill.

Hi forum!

I apologize if something like this has been asked before but I haven't had any lunch searching for it.

I am trying to create the following automation. When a ticket comes in to create a new onboarding request for a new employee. I would like to automatically create several tasks and subtasks and assign them HR personnel. However, when I add the Assignee field to the subtask in the And: Create New Sub-task step in my automation I get the following error in the Audit log:  
*Unknown fields set during create, they may be unavailable for the project/type. Check your custom field configuration. Fields ignored -*  
*Assignee (assignee)*  
The Assignee field is in the field configuration for the Sub-task issue.  
Thanks for any help.  
-Curt  
**Rule:**  
![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/157020i6E56C02A16346517/image-size/large?v=v2&px=999 "image.png")  
Detail of Create Rule (Note Assignment):![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/157021i01BAE4CAF35B6CCF/image-size/large?v=v2&px=999 "image.png")  
Error Received in Audit Log: ![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/157022i047C282C48696D70/image-size/large?v=v2&px=999 "image.png")  
Result:  
![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/157023iE95173E8118AA104/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Bill Sheboy
body: Hi [@cpasfield](/t5/user/viewprofilepage/user-id/4155784)

Would you post an image of your rule? That may provide some context for the community to offer ideas. Thanks!

And a few follow-up questions:

1. After seeing that error, did the rule still assign the user to the sub-tasks successfully?
2. Is this a project-scope or global/multi-project scope rule?
3. Is the target project for this rule company-managed or team-managed?

Best regards,  
Bill

comments: author: cpasfield
body: Hi Bill,

Thanks for your reply. I uploaded the results of one of my test runs that did not work. My colleague had the same results as I. I just tried it again and it appears to have worked. I didn't do anything other then review the field configurations again...making no changes mind you. In fact all of our test rules that we created to try and troubleshoot what we were seeing, none of which worked before, are all now working.

I appreciate your reply and attention!

-Curt


author: Simmo
body: Hi [@cpasfield](/t5/user/viewprofilepage/user-id/4155784)

I have a look at the logs for one of the executions of your rule above. When we ask Jira which fields we're allowed to edit/set, the assignee field isn't one of those. This is usually related to some sort of screen configuration. You might have a different screen for sub tasks that doesn't have the assignee on it.

I also noticed that you've changed the actor away from Automation for Jira. Is there a reason for this? I ask because the Automation for Jira user is allowed to do a few things that normal users aren't. One of which is to bypass those field configurations. This means that it can sometimes set a field even if it isn't on the particular screen.

Cheers,

Simeon.


Tags: cloud