Lists all tasks or retrieves the details for a specific task