2021-06-01 12:20:20 +00:00
|
|
|
# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
|
|
|
|
|
2017-04-26 11:28:32 +00:00
|
|
|
Macro.create_if_not_exists(
|
2021-11-15 15:58:19 +00:00
|
|
|
name: __('Close & Tag as Spam'),
|
2018-12-19 17:31:51 +00:00
|
|
|
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',
|
2021-11-15 15:58:19 +00:00
|
|
|
note: __('example macro'),
|
2018-12-19 17:31:51 +00:00
|
|
|
active: true,
|
2017-04-26 11:28:32 +00:00
|
|
|
)
|