2017-04-26 11:28:32 +00:00
|
|
|
Macro.create_if_not_exists(
|
|
|
|
name: 'Close & Tag as Spam',
|
|
|
|
perform: {
|
|
|
|
'ticket.state_id' => {
|
|
|
|
value: Ticket::State.by_category(:closed).first.id,
|
|
|
|
},
|
|
|
|
'ticket.tags' => {
|
|
|
|
operator: 'add',
|
|
|
|
value: 'spam',
|
|
|
|
},
|
|
|
|
'ticket.owner_id' => {
|
|
|
|
pre_condition: 'current_user.id',
|
|
|
|
value: '',
|
|
|
|
},
|
|
|
|
},
|
2018-06-22 11:17:12 +00:00
|
|
|
ux_flow_next_up: 'next_task',
|
2017-04-26 11:28:32 +00:00
|
|
|
note: 'example macro',
|
|
|
|
active: true,
|
|
|
|
)
|