# issueComment

A query of the [Archipad API](https://docs.archipad.dev/apis/archipad-graphql.md).

```graphql
issueComment(id: UUID!): IssueComment!
```

Fetches a note of an issue that was not deleted, by its identifier, whatever its type: a comment, or a history entry such as a status change and its motive.

## Arguments

- `id`: [`UUID!`](https://docs.archipad.dev/apis/archipad-graphql/types/UUID.md) (required) — Identifier of the note.

## Returns [`IssueComment!`](https://docs.archipad.dev/apis/archipad-graphql/types/IssueComment.md)

```graphql
type IssueComment
```

A note of an issue: a comment, or a history entry such as a status change and its motive. `Issue.comments` lists only comments with text; the `issueComment` query returns any note.

### Fields

- `authorId`: `String!` — Identifier of the project user who wrote the note; empty when unknown.
- `createdAt`: [`DateTime!`](https://docs.archipad.dev/apis/archipad-graphql/types/DateTime.md) — When the note was written.
- `id`: `String!` — Identifier of the note.
- `text`: `String!` — Text of the note, such as the comment or the motive of a status change.

## Example

Request:

```graphql
{
  issueComment(id: "00000000-0000-0000-0000-000000000000") {
    authorId
    createdAt
    id
    text
  }
}
```

Response:

```json
{
  "data": {
    "issueComment": {
      "authorId": "string",
      "createdAt": "2024-01-01T00:00:00.000Z",
      "id": "string",
      "text": "string"
    }
  }
}
```
