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