Convert task to role