# org.cairnsproto.draft.issue

> A report or question about a project, a policy version, a site or a stone. Never changes confidence.

- 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.issue)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:np7ezqujtsry4bkogisaabul/org.cairnsproto.draft.issue/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:np7ezqujtsry4bkogisaabul/org.cairnsproto.draft.issue/analytics)

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

Type: record · key tid

### Properties

- `body` (string, required)
  - Constraints: maxLength: 100000, maxGraphemes: 10000
- `createdAt` (string · datetime, required)
- `kind` (string)
  - Constraints: maxLength: 32, knownValues: source | schema | policy | bug | other
- `subject` (union, required): A project, policy or stone, or a site in a project.
  - One of (closed): `com.atproto.repo.strongRef`, `#siteSubject`
- `title` (string, required)
  - Constraints: maxLength: 3000, maxGraphemes: 300

## #siteSubject (`org.cairnsproto.draft.issue#siteSubject`)

Type: object

### Properties

- `project` (ref, required)
  - Reference: `com.atproto.repo.strongRef`
- `site` (ref, required)
  - Reference: `org.cairnsproto.draft.defs#hash`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A report or question about a project, a policy version, a site or a stone. Never changes confidence.",
      "key": "tid",
      "record": {
        "properties": {
          "body": {
            "maxGraphemes": 10000,
            "maxLength": 100000,
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "kind": {
            "knownValues": [
              "source",
              "schema",
              "policy",
              "bug",
              "other"
            ],
            "maxLength": 32,
            "type": "string"
          },
          "subject": {
            "closed": true,
            "description": "A project, policy or stone, or a site in a project.",
            "refs": [
              "com.atproto.repo.strongRef",
              "#siteSubject"
            ],
            "type": "union"
          },
          "title": {
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          }
        },
        "required": [
          "subject",
          "title",
          "body",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "siteSubject": {
      "properties": {
        "project": {
          "ref": "com.atproto.repo.strongRef",
          "type": "ref"
        },
        "site": {
          "ref": "org.cairnsproto.draft.defs#hash",
          "type": "ref"
        }
      },
      "required": [
        "project",
        "site"
      ],
      "type": "object"
    }
  },
  "id": "org.cairnsproto.draft.issue",
  "lexicon": 1
}
```
