Hi @megkart,
Could you please describe what have you done so far or do you still not have any idea how to start?
It would really help with providing the answer that brings value to you.
I have not done the thing you mention but if I had that task on my plate this is how I would start/execute
- Fetching the tasks and subtasks (based on the needed state -> once the subtasks are created?)
- Now there are two options either aggregating each subtask resource group and creating an array where it relates with tasks for with tasks (for example TAKS_ID-GROUP_ID) or just doing the standard fetch one subtask -> fetch resource group -> fetch users -> assign user, either is ok the first one will have less operations but the second one would be more readable and if the number of operations is not a thing might also be better option but I let you decide this
- Third option is assignment one approach is assigning one by one or doing it in bulk if you would do it in bulk you can refer to the internal API and the implications that come with using it (https://experienceleaguecommunities.adobe.com/t5/workfront-questions/fusion-sends-several-emails-whe...)
- Additional consideration do you have to consider when the users are free for work or not, do cost for user play a role, for details about the User object and the data you can get for it you can refer to the https://developersupport.workfront.com/page-api-explorer.html API explorer.
Hopefully this helps. If you have already built something please provide what you have so we can discuss this further.
Best regards,
Ivan