# org.tangled.track.defs

- Kind: defs
- Authority: track.tangled.org
- Lexicon: 1
- Published by [tangled.org](https://lexicon.garden/identity/did:plc:wshs7t2adsemcrrd4snkeqli), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.track.defs)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.track.defs/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.track.defs/analytics)

## #ticketState (`org.tangled.track.defs#ticketState`)

Type: string

Constraints: enum: open | closed | completed

## #ticketViewDetailed (`org.tangled.track.defs#ticketViewDetailed`)

Type: object

### Properties

- `author` (ref, required): The account that opened the ticket, the editor of its first version. Not the account that last edited or closed it.
  - Reference: `org.tangled.actor.defs#profileViewBasic`
- `body` (union)
  - One of: `org.tangled.markup.markdown`
- `cid` (string · cid, required)
- `createdAt` (string · datetime, required)
- `repo` (ref, required)
  - Reference: `org.tangled.repo.defs#repoViewBasic`
- `state` (ref, required)
  - Reference: `#ticketState`
- `tangledLabels` (array)
  - `items` (union)
    - One of: `org.tangled.label.defs#labelToken`
- `targetBranch` (string): Present when the ticket is a pull request.
- `title` (union, required)
  - One of: `org.tangled.markup.markdown#inline`
- `uri` (string · at-uri, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "ticketState": {
      "enum": [
        "open",
        "closed",
        "completed"
      ],
      "type": "string"
    },
    "ticketViewDetailed": {
      "properties": {
        "author": {
          "description": "The account that opened the ticket, the editor of its first version. Not the account that last edited or closed it.",
          "ref": "org.tangled.actor.defs#profileViewBasic",
          "type": "ref"
        },
        "body": {
          "refs": [
            "org.tangled.markup.markdown"
          ],
          "type": "union"
        },
        "cid": {
          "format": "cid",
          "type": "string"
        },
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "repo": {
          "ref": "org.tangled.repo.defs#repoViewBasic",
          "type": "ref"
        },
        "state": {
          "ref": "#ticketState",
          "type": "ref"
        },
        "tangledLabels": {
          "items": {
            "refs": [
              "org.tangled.label.defs#labelToken"
            ],
            "type": "union"
          },
          "type": "array"
        },
        "targetBranch": {
          "description": "Present when the ticket is a pull request.",
          "type": "string"
        },
        "title": {
          "refs": [
            "org.tangled.markup.markdown#inline"
          ],
          "type": "union"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "cid",
        "author",
        "repo",
        "title",
        "state",
        "createdAt"
      ],
      "type": "object"
    }
  },
  "id": "org.tangled.track.defs",
  "lexicon": 1
}
```
