---
title: issue query | Wartiva GraphQL API
description: Retrieves an Issue by its graph object id: the triage record for a policy violation on one graph object, which users move between OPEN, IN_PROGRESS.
url: https://wartiva.com/api-docs/queries/issue.html
updated: 2026-10-07
---

Policies and findings · GraphQL query

# `issue` query

Retrieves an [Issue](https://wartiva.com/api-docs/types/issue.html) by its graph object id: the triage record for a policy violation on one graph object, which users move between OPEN, IN_PROGRESS, and IGNORED with [issueUpdate](https://wartiva.com/api-docs/mutations/issue-update.html). An issue opens when a policy rule fails against an object; an OPEN or IN_PROGRESS issue resolves when a later evaluation passes, and a resolved issue reopens if the rule fails again. Every graph object lists its issues through `issues`; find them across the organization with [graphSearch](https://wartiva.com/api-docs/queries/graph-search.html) on the ISSUE object type. Returns a not-found error when no object has the id, and an error when the id belongs to another object type.

## Response

Returns an [`IssuePayload!`](https://wartiva.com/api-docs/types/issue-payload.html)

## Arguments

| Name | Description |
|---|---|
| `id` - [`ID!`](https://wartiva.com/api-docs/types/id.html) | The Issue identifier. |
| `mockOptions` - [`MockDataInput`](https://wartiva.com/api-docs/types/mock-data-input.html) | Options for mock data generation. Options supported: none. |

## Example

### Query

```graphql
query issue(
  $id: ID!,
  $mockOptions: MockDataInput
) {
  issue(
    id: $id,
    mockOptions: $mockOptions
  ) {
    node {
      id
      orgId
      objectType
      objectTypeLabel
      displayName
      firstSeen
      lastSeen
      name
      foundOnObject {
        ...GraphObjectFragment
      }
      seen {
        ...SeenOnlineFragment
      }
      createdAt
      updatedAt
      snapshotInfo {
        ...GraphObjectSnapshotInfoFragment
      }
      status
      statusChanges {
        ...IssueStatusChangesPayloadFragment
      }
      severity
      notes
      type
      typeMetadata {
        ... on IssueTypeMetadataConfiguration {
          ...IssueTypeMetadataConfigurationFragment
        }
        ... on IssueTypeMetadataFile {
          ...IssueTypeMetadataFileFragment
        }
        ... on IssueTypeMetadataVulnerability {
          ...IssueTypeMetadataVulnerabilityFragment
        }
      }
      rule {
        ...RuleFragment
      }
      findings {
        ...FindingsPayloadFragment
      }
      issues {
        ...IssuesPayloadFragment
      }
      issuesSummary {
        ...IssuesSummaryFragment
      }
    }
  }
}

```

### Variables

```json
{"id": 4, "mockOptions": MockDataInput}

```

### Response

```json
{"data": {"issue": {"node": Issue}}}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
