trabajo-afectivo/db/seeds/macros.rb
2022-01-01 14:38:12 +01:00

21 lines
548 B
Ruby

# Copyright (C) 2012-2022 Zammad Foundation, https://zammad-foundation.org/
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: '',
},
},
ux_flow_next_up: 'next_task',
note: __('example macro'),
active: true,
)