Add method for getting and creating task objects by code name