# org.tangled.track.defs

> Published by [tangled.org](https://lexicon.garden/identity/did:plc:wshs7t2adsemcrrd4snkeqli)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.track.defs)
- [Documentation](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.track.defs/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.track.defs/examples)

## Definitions

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

**Type**: `string`

**Allowed Values**:
- `open`
- `closed`
- `completed`

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

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `author` | `ref` → `org.tangled.actor.defs#profileViewBasic` | Yes | The account that opened the ticket, the editor of its first version. Not the account that last edited or closed it. |
| `body` | `union` | No |  |
| `cid` | `string` (cid) | Yes |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `repo` | `ref` → `org.tangled.repo.defs#repoViewBasic` | Yes |  |
| `state` | `ref` → `#ticketState` | Yes |  |
| `tangledLabels` | `array` | No |  |
| `targetBranch` | `string` | No | Present when the ticket is a pull request. |
| `title` | `union` | Yes |  |
| `uri` | `string` (at-uri) | Yes |  |

## Raw 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
}
```
