File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 1919- [ API Methods] ( #api-methods )
2020 - [ Ticket API Methods] ( #ticket-api-methods )
2121 - [ Ticket Relationship API Methods] ( #ticket-relationship-api-methods )
22+ - [ Ticket Scopes] ( #ticket-scopes )
2223 - [ Category & Label Scopes] ( #category--label-scopes )
2324- [ Testing] ( #testing )
2425- [ Changelog] ( #changelog )
@@ -230,6 +231,21 @@ The `ticket` model has also a list of methods for interacting with another relat
230231
231232The ` commentAsUser ` accepts a user as a first argument, if it's null, the __ authenticated__ user will be user as default.
232233
234+ ### Ticket Scopes
235+ The ` ticket ` model has also a list of scopes to begin filter with.
236+
237+ | Method | Arguments | Description | Example |
238+ | ---| ---| ---| ---|
239+ | ` closed ` | ` void ` | get the closed tickets | ` Ticket::closed() ` |
240+ | ` opened ` | ` void ` | get the opened tickets | ` Ticket::opened() ` |
241+ | ` resolved ` | ` void ` | get the resolved tickets | ` Ticket::resolved() ` |
242+ | ` locked ` | ` void ` | get the locked tickets | ` Ticket::locked() ` |
243+ | ` unlocked ` | ` void ` | get the unlocked tickets | ` Ticket::unlocked() ` |
244+ | ` withLowPriority ` | ` void ` | get the low priority tickets | ` Ticket::withLowPriority() ` |
245+ | ` withNormalPriority ` | ` void ` | get the normal priority tickets | ` Ticket::withNormalPriority() ` |
246+ | ` withHighPriority ` | ` void ` | get the high priority tickets | ` Ticket::withHighPriority() ` |
247+ | ` withPriority ` | ` string ` $priority | get the withPriority tickets | ` Ticket::withPriority('critical') ` |
248+
233249### Category & Label Scopes
234250| Method | Arguments | Description | Example |
235251| ---| ---| ---| ---|
You can’t perform that action at this time.
0 commit comments