# org.cairnsproto.draft.issueState

> Opens or closes an issue. Counts only when written by a maintainer of the issue's project.

- Kind: record
- Record key: tid
- Authority: draft.cairnsproto.org
- Lexicon: 1
- Published by [cairnsproto.org](https://lexicon.garden/identity/did:plc:np7ezqujtsry4bkogisaabul), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:np7ezqujtsry4bkogisaabul/org.cairnsproto.draft.issueState)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:np7ezqujtsry4bkogisaabul/org.cairnsproto.draft.issueState/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:np7ezqujtsry4bkogisaabul/org.cairnsproto.draft.issueState/analytics)

## Record (`org.cairnsproto.draft.issueState`)

Type: record · key tid

### Properties

- `createdAt` (string · datetime, required)
- `issue` (ref, required)
  - Reference: `com.atproto.repo.strongRef`
- `reason` (string)
  - Constraints: maxLength: 3000, maxGraphemes: 300
- `state` (string, required)
  - Constraints: maxLength: 32, knownValues: open | closed

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Opens or closes an issue. Counts only when written by a maintainer of the issue's project.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "issue": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "reason": {
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          },
          "state": {
            "knownValues": [
              "open",
              "closed"
            ],
            "maxLength": 32,
            "type": "string"
          }
        },
        "required": [
          "issue",
          "state",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "org.cairnsproto.draft.issueState",
  "lexicon": 1
}
```
