Assignee not included in duplicated task

I am duplicating a task in a project, but ‘assignee’ is not preserved. I checked my token scope, that’s not the problem. ‘include:parent, projects’ is working, but assignee is not.

Dupbody = {‘data’:{‘name’:Name,‘include’:[‘assignee’,‘parent’,‘projects’]}}
Dupopts = {}
api_response = tasks_api_instance.duplicate_task(Dupbody, TaskGid, Dupopts)

I’ve moved this topic to English Forum > Developers & API for better help.

Thanks,

Larry

Hi @Rebecca56, I can see that you are defining the include parameter as an array. As per our documentation, this should be a comma-separated list of fields. Could you try this variant and check if this works for you?

"include": "assingee,parent,projects"

I tried that first!

The weird thing is I can run exactly this function on another project, and it works (assignee is preserved). I am a ‘Project admin’ in both projects.

Hi @Rebecca56

If the same API code works correctly with another project, then the issue may be specific to this particular project or its configuration.

In that case, I’d recommend reaching out to Asana Support so they can investigate the project directly and check whether there’s any underlying issue affecting the conversion behavior.