---
title: Resolve a New Relic issue
source: https://docs.newrelic.com/docs/workflow-automation/setup-and-configure/actions-catalog/newrelic/issue/newrelic-issue-resolve
---

Closes an open New Relic Alert Intelligence issue once remediation is complete.

For prerequisites, see [New Relic Issue actions](https://docs.newrelic.com/docs/workflow-automation/setup-and-configure/actions-catalog/newrelic/issue/newrelic-issue#prerequisites).

## Resolve issue

The action identifier is `newrelic.issue.resolve`.

Resolves an open New Relic issue (AI Issues), closing it once remediation steps are complete. The issue's state transitions to `CLOSED` and New Relic records the resolution on the issue record. Built on `newrelic.nerdgraph.execute`.

### Inputs

The following table describes all available input fields for this action.

| Input         | Type   | Description                                                                          | Example                                                                                            |
| ------------- | ------ | ------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------- |
| **accountId** | Int    | **Required.** The New Relic account that owns the issue. Must be a positive integer. | `123456`                                                                                           |
| **issueId**   | String | **Required.** The AI Issues issue identifier to resolve. Must be a valid UUID.       | `"123e4567-e89b-12d3-a456-426614174000"`                                                           |
| **selectors** | List   | **Optional.** JQ selectors to extract specific values from the response.             | ```yaml selectors:   - name: action     expression: ".data.aiIssuesResolveIssue.result.action" ``` |

### Outputs

The following table describes all output fields returned by this action.

| Output           | Type    | Description                                                                                                                                                                                                                                                                                                                                     |
| ---------------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **success**      | Boolean | `true` when the step executed without an HTTP/transport error, independent of the mutation's own error field (`data.aiIssuesResolveIssue.error`).                                                                                                                                                                                               |
| **errorMessage** | String  | Contains an error message only when the call fails at the HTTP/transport level, distinct from `data.aiIssuesResolveIssue.error` (the mutation's own business-logic error field). `null` on success.                                                                                                                                             |
| **data**         | Map     | NerdGraph response: ```json {   "data": {     "aiIssuesResolveIssue": {       "error": null,       "result": {         "accountId": 123456,         "action": "RESOLVE",         "issueId": "123e4567-e89b-12d3-a456-426614174000"       }     }   } } ``` Use `selectors` to extract `error`, `action`, `issueId`, or `accountId` from `data`. |

### Example

The following example shows how to use this action.

| Workflow example                                                                                                                                                                                                                                                                                           |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ```yaml name: newrelic_issue_resolve_workflow description: resolve a newrelic issue steps:   - name: newrelic_issue_resolve     type: action     action: newrelic.issue.resolve     version: 1     inputs:       accountId: 123456       issueId: "123e4567-e89b-12d3-a456-426614174000"     next: end ``` |
