---
title: "resolveTargetTask(for:with:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/insettaskattributeintenthandling/resolvetargettask(for:with:)"
---

# resolveTargetTask(for:with:)

Resolves which task the user wants to modify.

## Declaration

```swift
optional func resolveTargetTask(for intent: INSetTaskAttributeIntent, with completion: @escaping @Sendable (INTaskResolutionResult) -> Void)
```

```swift
optional func resolveTargetTask(for intent: INSetTaskAttributeIntent) async -> INTaskResolutionResult
```

## Parameters

- `intent`: The intent object containing 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 Implement this method to resolve the task that the user wants to modify. Use the intent object to obtain information about the task that the user wants to modify. Use the information in the INTask object to look up the corresponding task information in your app’s data structures. Return a resolution that includes as much information about the task as you have available.

## See Also

### Resolving the Intent Parameters

- [resolveStatus(for:with:)](intents/insettaskattributeintenthandling/resolvestatus(for:with:).md)
- [resolveSpatialEventTrigger(for:with:)](intents/insettaskattributeintenthandling/resolvespatialeventtrigger(for:with:).md)
- [resolveTemporalEventTrigger(for:with:)](intents/insettaskattributeintenthandling/resolvetemporaleventtrigger(for:with:)-9bfly.md)
- [resolvePriority(for:with:)](intents/insettaskattributeintenthandling/resolvepriority(for:with:).md)
- [resolveTaskTitle(for:with:)](intents/insettaskattributeintenthandling/resolvetasktitle(for:with:).md)
- [resolveTemporalEventTrigger(for:with:)](intents/insettaskattributeintenthandling/resolvetemporaleventtrigger(for:with:)-1wr3f.md)
