The View object

A view allows you to filter and sort the tickets of your account according to one or more criteria. For example, you can have a view that displays tickets having the tag urgent, or a view that display closed tickets, etc...
Views are not like inboxes because a ticket can be present in 1 or more views if this one matches criterias of these views.

View properties

int32

ID of the view.

string

Category is an internal, read-only field used to identify system and user views.Example of system views: Trash or Spam. System views cannot be deleted.

ISO 8601 datetime

When the view was created.

ISO 8601 datetime

When the view was deactivated.

object

Object describing how the view appears in our applications. Currently only supports emoji field that shows before the view's name.

array

List of object's attributes to be displayed in the UI of our applications.

string

The logic used to filter the items to be displayed in the view (as JavaScript code).

object

The logic used to filter the items to be displayed in the view (as an ESTree AST representation).

string

The name of the view.

string

Name of the object's attribute used to sort the items of the view.

string

Sort direction of the items displayed in the view. Options: asc or desc.

string

Text used to search for items matching the query.

array
None
array
None
string

DEPRECATED - URL-compatible name of the view.

string

Type of objects the view is applied on.

string

URI of the object (auto-generated)

string

Visibility of the view. Possible values are: - public: any user of your helpdesk can see it - shared: users listed under shared_with_users attribute and teams listed under shared_with_teams attribute can see it. All admins and lead agents will see it as well, even if they are not explicitly listed in the shared_with_users attribute. - private: only the single user listed under shared_with_users attribute can see it

View example object

{
  "id": 123,
  "category": "user",
  "created_datetime": "2019-11-23T15:59:41.966927",
  "deactivated_datetime": "2020-01-30T11:04:34.345123",
  "decoration": {
    "emoji": "\ud83d\ude4f"
  },
  "fields": [
    "id",
    "details",
    "tags"
  ],
  "filters": "eq(ticket.assignee_user.id, '{{current_user.id}}') && eq(ticket.status, 'open')",
  "filters_ast": {
    "loc": {
      "start": {
        "line": 1,
        "column": 0
      },
      "end": {
        "line": 1,
        "column": 79
      }
    },
    "type": "Program",
    "body": [
      {
        "loc": {
          "start": {
            "line": 1,
            "column": 0
          },
          "end": {
            "line": 1,
            "column": 79
          }
        },
        "type": "ExpressionStatement",
        "expression": {
          "loc": {
            "start": {
              "line": 1,
              "column": 0
            },
            "end": {
              "line": 1,
              "column": 79
            }
          },
          "type": "LogicalExpression",
          "operator": "&&",
          "left": {
            "loc": {
              "start": {
                "line": 1,
                "column": 0
              },
              "end": {
                "line": 1,
                "column": 50
              }
            },
            "type": "CallExpression",
            "callee": {
              "loc": {
                "start": {
                  "line": 1,
                  "column": 0
                },
                "end": {
                  "line": 1,
                  "column": 2
                }
              },
              "type": "Identifier",
              "name": "eq"
            },
            "arguments": [
              {
                "loc": {
                  "start": {
                    "line": 1,
                    "column": 3
                  },
                  "end": {
                    "line": 1,
                    "column": 26
                  }
                },
                "type": "MemberExpression",
                "computed": false,
                "object": {
                  "loc": {
                    "start": {
                      "line": 1,
                      "column": 3
                    },
                    "end": {
                      "line": 1,
                      "column": 23
                    }
                  },
                  "type": "MemberExpression",
                  "computed": false,
                  "object": {
                    "loc": {
                      "start": {
                        "line": 1,
                        "column": 3
                      },
                      "end": {
                        "line": 1,
                        "column": 9
                      }
                    },
                    "type": "Identifier",
                    "name": "ticket"
                  },
                  "property": {
                    "loc": {
                      "start": {
                        "line": 1,
                        "column": 10
                      },
                      "end": {
                        "line": 1,
                        "column": 23
                      }
                    },
                    "type": "Identifier",
                    "name": "assignee_user"
                  }
                },
                "property": {
                  "loc": {
                    "start": {
                      "line": 1,
                      "column": 24
                    },
                    "end": {
                      "line": 1,
                      "column": 26
                    }
                  },
                  "type": "Identifier",
                  "name": "id"
                }
              },
              {
                "loc": {
                  "start": {
                    "line": 1,
                    "column": 28
                  },
                  "end": {
                    "line": 1,
                    "column": 49
                  }
                },
                "type": "Literal",
                "value": "{{current_user.id}}",
                "raw": "'{{current_user.id}}'"
              }
            ]
          },
          "right": {
            "loc": {
              "start": {
                "line": 1,
                "column": 54
              },
              "end": {
                "line": 1,
                "column": 79
              }
            },
            "type": "CallExpression",
            "callee": {
              "loc": {
                "start": {
                  "line": 1,
                  "column": 54
                },
                "end": {
                  "line": 1,
                  "column": 56
                }
              },
              "type": "Identifier",
              "name": "eq"
            },
            "arguments": [
              {
                "loc": {
                  "start": {
                    "line": 1,
                    "column": 57
                  },
                  "end": {
                    "line": 1,
                    "column": 70
                  }
                },
                "type": "MemberExpression",
                "computed": false,
                "object": {
                  "loc": {
                    "start": {
                      "line": 1,
                      "column": 57
                    },
                    "end": {
                      "line": 1,
                      "column": 63
                    }
                  },
                  "type": "Identifier",
                  "name": "ticket"
                },
                "property": {
                  "loc": {
                    "start": {
                      "line": 1,
                      "column": 64
                    },
                    "end": {
                      "line": 1,
                      "column": 70
                    }
                  },
                  "type": "Identifier",
                  "name": "status"
                }
              },
              {
                "loc": {
                  "start": {
                    "line": 1,
                    "column": 72
                  },
                  "end": {
                    "line": 1,
                    "column": 78
                  }
                },
                "type": "Literal",
                "value": "open",
                "raw": "'open'"
              }
            ]
          }
        }
      }
    ],
    "sourceType": "script"
  },
  "name": "My view",
  "order_by": "updated_datetime",
  "order_dir": "desc",
  "search": "where is my order?",
  "slug": "my-tickets",
  "type": "ticket-list"
}