245 | | == Example: Limit the resolution options for a new ticket |
246 | | |
247 | | The above `resolve_new` operation allows you to set the possible resolutions for a new ticket. By modifying the existing resolve action and removing the new status from before the `->` we then get two resolve actions. One with limited resolutions for new tickets, and then the regular one once a ticket is accepted. |
248 | | |
249 | | {{{#!ini |
250 | | resolve_new = new -> closed |
251 | | resolve_new.label = resolve |
252 | | resolve_new.operations = set_resolution |
253 | | resolve_new.permissions = TICKET_MODIFY |
254 | | resolve_new.set_resolution = invalid,wontfix,duplicate |
255 | | |
256 | | resolve = assigned,accepted,reopened -> closed |
257 | | resolve.operations = set_resolution |
258 | | resolve.permissions = TICKET_MODIFY |
259 | | }}} |
260 | | |