def METHOD_NAME(self, project, key, task):
    assigned_task = {
        'project': project
    }
    if task['type'] == 'Ticket':
        # Load Ticket data
        # @todo Implement threading here.
        ticket_data = self.call_api(
            "/projects/" + str(task['project_id']) +
            "/tickets/" + str(task['ticket_id']))
        assignees = ticket_data['assignees']
        for assignee in assignees:
            if (
                (assignee['is_owner'] is True)
                and (assignee['user_id'] == self.user_id)
            ):
                assigned_task.update(ticket_data)
                return assigned_task
    elif task['type'] == 'Task':
        # Load Task data
        assigned_task.update(task)
        return assigned_task