---
title: "resolveTargetTaskList(for:with:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/inaddtasksintenthandling/resolvetargettasklist(for:with:)-2uevx"
---

# resolveTargetTaskList(for:with:)

Called when it is time for you to resolve the task list to receive the new tasks.

## Declaration

```swift
optional func resolveTargetTaskList(for intent: INAddTasksIntent, with completion: @escaping @Sendable (INTaskListResolutionResult) -> Void)
```

```swift
optional func resolveTargetTaskList(for intent: INAddTasksIntent) async -> INTaskListResolutionResult
```

## Parameters

- `intent`: Details about the user’s request. Use this object to get the initial information, if any, provided by the user.
- `completion`: The handler block to execute with the resolution. You must execute this handler at some point during your implementation of this method. This handler has no return value and takes the following parameter:

## Discussion

Discussion Use the intent object to obtain the task list, if any, suggested by the user. If the intent doesn’t specify a task list, choose a resolution that’s most appropriate for your app. If you can select a default task list, return a result of success with that task list. If you can’t select a default task list, you might ask the user to provide a value or choose from among a few likely candidates.

## See Also

### Resolving the Intent Parameters

- [resolveTargetTaskList(for:with:)](intents/inaddtasksintenthandling/resolvetargettasklist(for:with:)-2er0u.md)
- [resolveTaskTitles(for:with:)](intents/inaddtasksintenthandling/resolvetasktitles(for:with:).md)
- [resolveSpatialEventTrigger(for:with:)](intents/inaddtasksintenthandling/resolvespatialeventtrigger(for:with:).md)
- [resolveTemporalEventTrigger(for:with:)](intents/inaddtasksintenthandling/resolvetemporaleventtrigger(for:with:)-7yrz3.md)
- [resolvePriority(for:with:)](intents/inaddtasksintenthandling/resolvepriority(for:with:).md)
- [resolveTemporalEventTrigger(for:with:)](intents/inaddtasksintenthandling/resolvetemporaleventtrigger(for:with:)-2h9ff.md)
