# Jitbit Helpdesk

> Create, update, comment on and close Jitbit Helpdesk tickets, manage their subscribers, tags, links and time spent, look up and add users, and read and write Knowledge Base articles and assets.

App · 28 actions. Web page: https://docs.lodol.com/docs/integrations/jitbit

## Actions

### Add comment

Reply to a ticket, or add a note only technicians see.

**Inputs**

- Ticket ID (`ticket_id`, number, required): The ticket's ID, the number in its address.
- Comment (`body`, text, required): The reply.
- Technicians only (`techs_only`, true/false): Show it only to technicians.
- Notify only (`recipient_ids`, list): Only email these subscribers, by user ID.

**Outputs**

- `data` (object): The response from Jitbit Helpdesk.

**Example output**

```json
{
  "data": {
    "done": true,
    "message": "example"
  }
}
```

### Add subscriber

Add a user to a ticket's subscribers, who are emailed about it.

**Inputs**

- Ticket ID (`ticket_id`, number, required): The ticket's ID, the number in its address.
- User (`person_id`, number, required): The user's ID.

**Outputs**

- `data` (object): The response from Jitbit Helpdesk.

**Example output**

```json
{
  "data": {
    "done": true,
    "message": "example"
  }
}
```

### Close ticket

Close a ticket, optionally without emailing anyone.

**Inputs**

- Ticket ID (`ticket_id`, number, required): The ticket's ID, the number in its address.
- Close silently (`suppress_notification`, true/false): Close it without sending email notifications.

**Outputs**

- `data` (object): The response from Jitbit Helpdesk.

**Example output**

```json
{
  "data": {
    "done": true,
    "message": "example"
  }
}
```

### Create Knowledge Base article

Write a Knowledge Base article in a category.

**Inputs**

- Category (`category_id`, number, required): The ticket category.
- Subject (`subject`, text, required): The article's title.
- Body (`body`, text, required): The article's text.
- Technicians only (`techs_only`, true/false): Show it only to technicians.

**Outputs**

- `data` (object): The response from Jitbit Helpdesk.

**Example output**

```json
{
  "data": {
    "article_id": 1
  }
}
```

### Create ticket

Create a ticket in a category, as the connected user or on behalf of another user.

**Inputs**

- Category (`category_id`, number, required): The ticket category.
- Subject (`subject`, text, required): The ticket's subject.
- Body (`body`, text, required): The ticket's text.
- Priority (`priority`, text, required): How urgent it is. One of: `-1` (Low), `0` (Normal), `1` (High), `2` (Critical).
- On behalf of (`on_behalf_of`, number): Create it for this user (needs technician rights).
- Assign to (`assignee_id`, number): Assign it to this technician.
- Tags (`tags`, text): Tags, separated by commas.
- Came in via (`origin`, text): Where it came from, shown as its 'via'. One of: `0` (Web app), `1` (Email), `2` (Widget), `3` (API), `4` (Scheduler), `5` (Mobile app), `6` (Phone), `7` (Live chat), `8` (In person).
- Custom fields (`custom_fields`, object): Custom field values by field ID, such as {"12": "Berlin"}.
- No confirmation email (`suppress_confirmation`, true/false): Don't email the user that the ticket was created.

**Outputs**

- `data` (object): The response from Jitbit Helpdesk.

**Example output**

```json
{
  "data": {
    "ticket_id": 1
  }
}
```

### Create user

Add a user to the helpdesk (needs administrator rights).

**Inputs**

- Email (`email`, text, required): Their email address.
- Username (`username`, text): Their username. Defaults to their email address.
- First name (`first_name`, text): Their first name.
- Last name (`last_name`, text): Their last name.
- Phone (`phone`, text): Their phone number.
- Location (`location`, text): Where they are.
- Company (`company`, text): Their company. A new one is created.
- Department (`department`, text): Their department. A new one is created.
- Send welcome email (`send_welcome_email`, true/false): Email them a welcome message.

**Outputs**

- `data` (object): The response from Jitbit Helpdesk.

**Example output**

```json
{
  "data": {
    "user_id": 1
  }
}
```

### Delete user

Delete a user. This can't be undone (needs administrator rights).

**Inputs**

- User (`person_id`, number, required): The user's ID.

**Outputs**

- `data` (object): The response from Jitbit Helpdesk.

**Example output**

```json
{
  "data": {
    "done": true,
    "message": "example"
  }
}
```

### Find user by email

Find a user by their email address (needs technician rights).

**Inputs**

- Email (`email`, text, required): The email address.

**Outputs**

- `data` (object): The response from Jitbit Helpdesk.

**Example output**

```json
{
  "data": {
    "CompanyId": 1,
    "CompanyName": "example",
    "Department": "example",
    "Disabled": true,
    "Email": "example",
    "FirstName": "example",
    "FullName": "example",
    "IsAdmin": true,
    "IsManager": true,
    "IsTech": true,
    "LastName": "example",
    "LastSeen": "example",
    "Location": "example",
    "Notes": "example",
    "Phone": "example",
    "UserID": 1,
    "Username": "example"
  }
}
```

### Get asset

Get an asset by its ID.

**Inputs**

- Asset ID (`asset_id`, number, required): The asset's ID.

**Outputs**

- `data` (object): The response from Jitbit Helpdesk.

**Example output**

```json
{
  "data": {
    "AssignedUsers": [
      {}
    ],
    "Comments": "example",
    "Company": "example",
    "CompanyID": 1,
    "Fields": [
      {}
    ],
    "ItemID": 1,
    "Location": "example",
    "Manufacturer": "example",
    "ModelName": "example",
    "Quantity": 1,
    "SerialNumber": "example",
    "Supplier": "example",
    "TicketCount": 1,
    "Type": "example"
  }
}
```

### Get current user

Get the helpdesk user the connection acts as.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Jitbit Helpdesk.

**Example output**

```json
{
  "data": {
    "CompanyId": 1,
    "CompanyName": "example",
    "Department": "example",
    "Disabled": true,
    "Email": "example",
    "FirstName": "example",
    "FullName": "example",
    "IsAdmin": true,
    "IsManager": true,
    "IsTech": true,
    "LastName": "example",
    "LastSeen": "example",
    "Location": "example",
    "Notes": "example",
    "Phone": "example",
    "UserID": 1,
    "Username": "example"
  }
}
```

### Get Knowledge Base article

Get a Knowledge Base article with its text.

**Inputs**

- Article ID (`article_id`, number, required): The article's ID.

**Outputs**

- `data` (object): The response from Jitbit Helpdesk.

**Example output**

```json
{
  "data": {
    "ArticleId": 1,
    "Body": "example",
    "CategoryID": 1,
    "CategoryName": "example",
    "DateCreated": "example",
    "ForTechsOnly": true,
    "LastUpdated": "example",
    "Subject": "example",
    "TagString": "example",
    "Url": "example"
  }
}
```

### Get ticket

Get a ticket with its body, status, assignee, tags and attachments.

**Inputs**

- Ticket ID (`ticket_id`, number, required): The ticket's ID, the number in its address.

**Outputs**

- `data` (object): The response from Jitbit Helpdesk.

**Example output**

```json
{
  "data": {
    "AssignedToUserID": 1,
    "AssigneeUserInfo": {},
    "Attachments": [
      {
        "CommentID": 1,
        "FileID": 1,
        "FileName": "example",
        "Url": "example"
      }
    ],
    "Body": "example",
    "CategoryID": 1,
    "CategoryName": "example",
    "DueDate": "example",
    "IssueDate": "example",
    "Priority": 1,
    "ResolvedDate": "example",
    "StartDate": "example",
    "Status": "example",
    "StatusID": 1,
    "Subject": "example",
    "SubmitterUserInfo": {},
    "Tags": [
      {
        "Name": "example",
        "TagID": 1
      }
    ],
    "TicketID": 1,
    "TimeSpentInSeconds": 1,
    "UpdatedByPerformer": true,
    "UpdatedByUser": true,
    "UserID": 1
  }
}
```

### Get user

Get a user by their ID.

**Inputs**

- User (`person_id`, number, required): The user's ID.

**Outputs**

- `data` (object): The response from Jitbit Helpdesk.

**Example output**

```json
{
  "data": {
    "CompanyId": 1,
    "CompanyName": "example",
    "Department": "example",
    "Disabled": true,
    "Email": "example",
    "FirstName": "example",
    "FullName": "example",
    "IsAdmin": true,
    "IsManager": true,
    "IsTech": true,
    "LastName": "example",
    "LastSeen": "example",
    "Location": "example",
    "Notes": "example",
    "Phone": "example",
    "UserID": 1,
    "Username": "example"
  }
}
```

### Link tickets

Link two tickets as related.

**Inputs**

- Ticket ID (`ticket_id`, number, required): The ticket's ID, the number in its address.
- Other ticket ID (`other_ticket_id`, number, required): The ticket to link it to.

**Outputs**

- `data` (object): The response from Jitbit Helpdesk.

**Example output**

```json
{
  "data": {
    "done": true,
    "message": "example"
  }
}
```

### List assets

List assets, 50 a page, optionally by name, user, company or ticket.

**Inputs**

- Page (`page`, number): Which page, from 1. At least 1.
- Name starts with (`name_prefix`, text): Only assets whose name starts with this (3 letters or more).
- Assigned to (`assigned_user_id`, number): Only assets assigned to this user.
- Ticket ID (`ticket_id`, number): Only assets on this ticket.

**Outputs**

- `data` (object): The response from Jitbit Helpdesk.

**Example output**

```json
{
  "data": {
    "assets": [
      {
        "AssignedUsers": [
          {}
        ],
        "Comments": "example",
        "Company": "example",
        "CompanyID": 1,
        "Fields": [
          {}
        ],
        "ItemID": 1,
        "Location": "example",
        "Manufacturer": "example",
        "ModelName": "example",
        "Quantity": 1,
        "SerialNumber": "example",
        "Supplier": "example",
        "TicketCount": 1,
        "Type": "example"
      }
    ]
  }
}
```

### List categories

List the ticket categories the connected user can see.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Jitbit Helpdesk.

**Example output**

```json
{
  "data": {
    "categories": [
      {
        "CategoryID": 1,
        "ForTechsOnly": true,
        "Name": "example",
        "NameWithSection": "example",
        "SectionID": 1
      }
    ]
  }
}
```

### List comments

List a ticket's replies and notes.

**Inputs**

- Ticket ID (`ticket_id`, number, required): The ticket's ID, the number in its address.

**Outputs**

- `data` (object): The response from Jitbit Helpdesk.

**Example output**

```json
{
  "data": {
    "comments": [
      {
        "Body": "example",
        "CommentDate": "example",
        "CommentID": 1,
        "Email": "example",
        "FirstName": "example",
        "ForTechsOnly": true,
        "IsSystem": true,
        "IssueID": 1,
        "LastName": "example",
        "Recipients": "example",
        "UserID": 1,
        "UserName": "example"
      }
    ]
  }
}
```

### List Knowledge Base articles

List the Knowledge Base's articles, without their text.

**Inputs**

- Category (`category_id`, number): The ticket category.

**Outputs**

- `data` (object): The response from Jitbit Helpdesk.

**Example output**

```json
{
  "data": {
    "articles": [
      {
        "ArticleId": 1,
        "Body": "example",
        "CategoryID": 1,
        "CategoryName": "example",
        "DateCreated": "example",
        "ForTechsOnly": true,
        "LastUpdated": "example",
        "Subject": "example",
        "TagString": "example",
        "Url": "example"
      }
    ]
  }
}
```

### List linked tickets

List the tickets linked to a ticket.

**Inputs**

- Ticket ID (`ticket_id`, number, required): The ticket's ID, the number in its address.

**Outputs**

- `data` (object): The response from Jitbit Helpdesk.

**Example output**

```json
{
  "data": {
    "tickets": [
      {
        "IssueDate": "example",
        "StatusID": 1,
        "Subject": "example",
        "TicketID": 1,
        "UserID": 1,
        "Username": "example"
      }
    ]
  }
}
```

### List priorities

List the ticket priorities, standard and custom.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Jitbit Helpdesk.

**Example output**

```json
{
  "data": {
    "priorities": [
      {
        "Name": "example",
        "PriorityID": 1
      }
    ]
  }
}
```

### List subscribers

List a ticket's subscribers.

**Inputs**

- Ticket ID (`ticket_id`, number, required): The ticket's ID, the number in its address.

**Outputs**

- `data` (object): The response from Jitbit Helpdesk.

**Example output**

```json
{
  "data": {
    "subscribers": [
      {
        "CompanyId": 1,
        "CompanyName": "example",
        "Department": "example",
        "Disabled": true,
        "Email": "example",
        "FirstName": "example",
        "FullName": "example",
        "IsAdmin": true,
        "IsManager": true,
        "IsTech": true,
        "LastName": "example",
        "LastSeen": "example",
        "Location": "example",
        "Notes": "example",
        "Phone": "example",
        "UserID": 1,
        "Username": "example"
      }
    ]
  }
}
```

### List tickets

List tickets, newest first, filtered by status, category, dates, creator or assignee.

**Inputs**

- Show (`mode`, text): Which tickets. Defaults to all. One of: `all` (All tickets, including closed), `unanswered` (New or updated by the customer), `unclosed` (Open tickets), `handledbyme` (Assigned to me).
- Categories (`category_ids`, list): Only tickets in these categories.
- Status IDs (`status_ids`, list): Only tickets in these statuses: 1 New, 2 In process, 3 Closed, or a custom status's ID.
- Created from (`created_from`, date): Only tickets created on or after this date.
- Created to (`created_to`, date): Only tickets created on or before this date.
- Updated from (`updated_from`, date): Only tickets updated on or after this date.
- Updated to (`updated_to`, date): Only tickets updated on or before this date.
- Last updated by (`updated_by`, text): Only tickets last updated by a technician or by the customer. One of: `tech` (A technician), `cust` (The customer).
- Created by (`from_user_id`, number): Only tickets created by this user.
- Assigned to (`assignee_id`, number): Only tickets assigned to this technician.
- Tag (`tag`, text): Only tickets with this tag.
- How many (`count`, number): How many to return, up to 300. Jitbit's default is 10. From 1 to 300.
- Skip (`offset`, number): How many to skip, to page through. At least 0.

**Outputs**

- `data` (object): The response from Jitbit Helpdesk.

**Example output**

```json
{
  "data": {
    "tickets": [
      {
        "AssignedToUserID": 1,
        "Category": "example",
        "CategoryID": 1,
        "CompanyID": 1,
        "CompanyName": "example",
        "DueDate": "example",
        "Email": "example",
        "FirstName": "example",
        "IssueDate": "example",
        "IssueID": 1,
        "LastName": "example",
        "LastUpdated": "example",
        "LastUpdatedByUserID": 1,
        "Origin": "example",
        "Priority": 1,
        "ResolvedDate": "example",
        "StartDate": "example",
        "Status": "example",
        "StatusID": 1,
        "Subject": "example",
        "TechFirstName": "example",
        "TechLastName": "example",
        "UpdatedByPerformer": true,
        "UpdatedByUser": true,
        "UserID": 1,
        "UserName": "example"
      }
    ]
  }
}
```

### List users

List the helpdesk's users (needs administrator rights).

**Inputs**

- Show (`list_mode`, text): Which users. Defaults to all. One of: `all` (All users), `techs` (Technicians and admins), `admins`, `regular` (Regular users), `disabled` (Deactivated users).
- How many (`count`, number): How many to return. Jitbit's default is 500. At least 1.
- Page (`page`, number): Which page, from 1. At least 1.
- Company ID (`company_id`, number): Only users of this company.

**Outputs**

- `data` (object): The response from Jitbit Helpdesk.

**Example output**

```json
{
  "data": {
    "users": [
      {
        "CompanyId": 1,
        "CompanyName": "example",
        "Department": "example",
        "Disabled": true,
        "Email": "example",
        "FirstName": "example",
        "FullName": "example",
        "IsAdmin": true,
        "IsManager": true,
        "IsTech": true,
        "LastName": "example",
        "LastSeen": "example",
        "Location": "example",
        "Notes": "example",
        "Phone": "example",
        "UserID": 1,
        "Username": "example"
      }
    ]
  }
}
```

### Log time spent

Log time the connected technician spent on a ticket.

**Inputs**

- Ticket ID (`ticket_id`, number, required): The ticket's ID, the number in its address.
- Minutes (`minutes`, number, required): How many minutes. At least 1.
- Status ID (`status_id`, number): The status to log it under. Defaults to the ticket's current one.

**Outputs**

- `data` (object): The response from Jitbit Helpdesk.

**Example output**

```json
{
  "data": {
    "done": true,
    "message": "example"
  }
}
```

### Remove subscriber

Remove a user from a ticket's subscribers.

**Inputs**

- Ticket ID (`ticket_id`, number, required): The ticket's ID, the number in its address.
- User (`person_id`, number, required): The user's ID.

**Outputs**

- `data` (object): The response from Jitbit Helpdesk.

**Example output**

```json
{
  "data": {
    "done": true,
    "message": "example"
  }
}
```

### Search tickets

Find tickets by text, with optional filters.

**Inputs**

- Search text (`query`, text, required): The text to find.
- Categories (`category_ids`, list): Only tickets in these categories.
- Status IDs (`status_ids`, list): Only tickets in these statuses: 1 New, 2 In process, 3 Closed, or a custom status's ID.
- Created from (`created_from`, date): Only tickets created on or after this date.
- Created to (`created_to`, date): Only tickets created on or before this date.
- Assigned to (`assignee_id`, number): Only tickets assigned to this technician.

**Outputs**

- `data` (object): The response from Jitbit Helpdesk.

**Example output**

```json
{
  "data": {
    "tickets": [
      {
        "AssignedToUserID": 1,
        "Category": "example",
        "CategoryID": 1,
        "CompanyID": 1,
        "CompanyName": "example",
        "DueDate": "example",
        "Email": "example",
        "FirstName": "example",
        "IssueDate": "example",
        "IssueID": 1,
        "LastName": "example",
        "LastUpdated": "example",
        "LastUpdatedByUserID": 1,
        "Origin": "example",
        "Priority": 1,
        "ResolvedDate": "example",
        "StartDate": "example",
        "Status": "example",
        "StatusID": 1,
        "Subject": "example",
        "TechFirstName": "example",
        "TechLastName": "example",
        "UpdatedByPerformer": true,
        "UpdatedByUser": true,
        "UserID": 1,
        "UserName": "example"
      }
    ]
  }
}
```

### Tag ticket

Add a tag to a ticket. A new tag is created.

**Inputs**

- Ticket ID (`ticket_id`, number, required): The ticket's ID, the number in its address.
- Tag (`name`, text, required): The tag.

**Outputs**

- `data` (object): The response from Jitbit Helpdesk.

**Example output**

```json
{
  "data": {
    "done": true,
    "message": "example"
  }
}
```

### Update ticket

Change a ticket's category, priority, status, assignee, due date, subject, body or tags. Fields left empty are kept.

**Inputs**

- Ticket ID (`ticket_id`, number, required): The ticket's ID, the number in its address.
- Category (`category_id`, number): The ticket category.
- Priority (`priority`, text): How urgent it is. One of: `-1` (Low), `0` (Normal), `1` (High), `2` (Critical).
- Status ID (`status_id`, number): The status: 1 New, 2 In process, 3 Closed, or a custom status's ID.
- Assign to (`assignee_id`, number): The technician to assign it to. 0 removes the assignee.
- Due (`due_date`, date and time): When it is due.
- Subject (`subject`, text): A new subject.
- Body (`body`, text): A new body.
- Tags (`tags`, text): Tags, separated by commas. They replace every tag it has.

**Outputs**

- `data` (object): The response from Jitbit Helpdesk.

**Example output**

```json
{
  "data": {
    "done": true,
    "message": "example"
  }
}
```
