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
View example object
{
"id": 123,
"category": "system",
"created_datetime": "2019-11-23T15:59:41.966927",
"deactivated_datetime": "2020-01-30T11:04:34.345123",
"decoration": {
"emoji": "\ud83d\ude4f"
},
"display_order": "100",
"fields": [
"details",
"tags",
"customer"
],
"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"
}