neodesk tickets
Copy as MarkdownTickets with comments and attachments.
neodesk tickets --help lists the same commands in the terminal. The flags every command takes are in the command reference.
neodesk tickets attach
Attach a file to a ticket.
neodesk tickets attach <id> --filename FILENAME --content CONTENT [flags]| Argument | What it is |
|---|---|
<id> |
The ticket number (see tickets list) |
| Flag | What it is |
|---|---|
--filename FILENAME |
the file name (required) |
--content CONTENT |
the content as base64 (required) |
--mimetype MIMETYPE |
its type |
Needs device.edit; changes something: needs a token with read and write access. Calls POST /api/tickets/{id}/attachments.
neodesk tickets attachment
Download an attachment (use --output).
neodesk tickets attachment <aid> [flags]| Argument | What it is |
|---|---|
<aid> |
The attachment ID |
Needs device.view; only reads. Calls GET /api/tickets/attachments/{aid}.
neodesk tickets attachments
List a ticket's attachments.
neodesk tickets attachments <id> [flags]| Argument | What it is |
|---|---|
<id> |
The ticket number (see tickets list) |
Needs device.view; only reads. Calls GET /api/tickets/{id}/attachments.
neodesk tickets comment
Add a comment to a ticket.
neodesk tickets comment <id> --text TEXT [flags]| Argument | What it is |
|---|---|
<id> |
The ticket number (see tickets list) |
| Flag | What it is |
|---|---|
--text TEXT |
the comment (required) |
--internal |
only staff see it |
Needs device.edit; changes something: needs a token with read and write access. Calls POST /api/tickets/{id}/comments.
neodesk tickets comments
List a ticket's comments.
neodesk tickets comments <id> [flags]| Argument | What it is |
|---|---|
<id> |
The ticket number (see tickets list) |
Needs device.view; only reads. Calls GET /api/tickets/{id}/comments.
neodesk tickets create
Open a ticket.
neodesk tickets create --title TITLE [flags]| Flag | What it is |
|---|---|
--title TITLE |
the title (required) |
--description DESCRIPTION |
what is wrong |
--priority PRIORITY |
like low, medium or high |
--category CATEGORY |
the category |
--device DEVICE |
the device it is about |
--assigned-to ASSIGNED_TO |
the user name of who handles it |
Needs device.edit; changes something: needs a token with read and write access. Calls POST /api/tickets.
neodesk tickets delete
Delete a ticket.
neodesk tickets delete <id> [flags]| Argument | What it is |
|---|---|
<id> |
The ticket number (see tickets list) |
Needs device.edit; changes something: needs a token with read and write access; deletes or ends something for good, so it asks first unless --yes is given. Calls DELETE /api/tickets/{id}.
neodesk tickets get
Show a ticket.
neodesk tickets get <id> [flags]| Argument | What it is |
|---|---|
<id> |
The ticket number (see tickets list) |
Needs device.view; only reads. Calls GET /api/tickets/{id}.
neodesk tickets list
List tickets. Filter with -q, like -q status=open.
neodesk tickets list [flags]Needs device.view; only reads. Calls GET /api/tickets.
neodesk tickets stats
Count tickets by status and priority.
neodesk tickets stats [flags]Needs device.view; only reads. Calls GET /api/tickets/stats.
neodesk tickets update
Change a ticket: status, priority, who handles it.
neodesk tickets update <id> [flags]| Argument | What it is |
|---|---|
<id> |
The ticket number (see tickets list) |
| Flag | What it is |
|---|---|
--status STATUS |
the new status |
--priority PRIORITY |
the new priority |
--category CATEGORY |
the category |
--assigned-to ASSIGNED_TO |
the user name of who handles it |
--title TITLE |
new title |
--description DESCRIPTION |
new description |
--device DEVICE |
the device it is about |
Needs device.edit; changes something: needs a token with read and write access. Calls PATCH /api/tickets/{id}.