File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 19
19
- [ API Methods] ( #api-methods )
20
20
- [ Ticket API Methods] ( #ticket-api-methods )
21
21
- [ Ticket Relationship API Methods] ( #ticket-relationship-api-methods )
22
+ - [ Ticket Scopes] ( #ticket-scopes )
22
23
- [ Category & Label Scopes] ( #category--label-scopes )
23
24
- [ Testing] ( #testing )
24
25
- [ Changelog] ( #changelog )
@@ -230,6 +231,21 @@ The `ticket` model has also a list of methods for interacting with another relat
230
231
231
232
The ` commentAsUser ` accepts a user as a first argument, if it's null, the __ authenticated__ user will be user as default.
232
233
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
+
233
249
### Category & Label Scopes
234
250
| Method | Arguments | Description | Example |
235
251
| ---| ---| ---| ---|
You can’t perform that action at this time.
0 commit comments