以下其中一项应该适合您,
def show(){
def taskName = Task.get(params.id)
//Using redirect
redirect(controller: "AnotherController", action: "ActionInAnotherController", params: [taskName:taskName])
//OR using forward
def model = [
taskName : taskNme,
]
forward(controller:"AnotherController",action:"ActionInAnotherController", model:model)
//OR using chain
chain(controller:'AnotherController',action:'ActionInAnotherController ',model:model)
//Redirect to another domain controller
redirect(url: "anotherDomainUrl/AnotherController/ActionInAnotherController", params: [taskName:taskName])
}