How to sync Assignee in Asana

    How to Sync Assignee in Asana

    This article describes how to synchronize assignee information between Asana and other systems.

    Assignee in Asana: The assignee field represents the single user responsible for completing a task. Asana tasks can have only one assignee at a time.

    Outgoing sync (Asana → Remote system)

    To send assignee information from Asana to the remote system:

    replica.assignee = entity.assignee

    Incoming sync (Remote system → Asana)

    To receive assignee information from the remote system and assign to Asana tasks:

    // Assign user by email
    entity.assignee = nodeHelper.getUserByEmail("user@example.com")
    
    // Assign from replica data
    if (replica.assignee?.email) {
        entity.assignee = nodeHelper.getUserByEmail(replica.assignee.email)
    }
    
    // Clear assignee
    entity.assignee = null
    Important: The getUserByEmail() method requires that users exist in your Asana workspace with the specified email addresses. Users who don't exist cannot be assigned to tasks.

    More information

    Have more questions? Ask the community