2017-04-26 11:28:32 +00:00
|
|
|
Ticket::State.create_if_not_exists(
|
2018-12-19 17:31:51 +00:00
|
|
|
id: 1,
|
|
|
|
name: 'new',
|
|
|
|
state_type_id: Ticket::StateType.find_by(name: 'new').id,
|
2017-04-26 11:28:32 +00:00
|
|
|
default_create: true,
|
|
|
|
)
|
|
|
|
Ticket::State.create_if_not_exists(
|
2018-12-19 17:31:51 +00:00
|
|
|
id: 2,
|
|
|
|
name: 'open',
|
|
|
|
state_type_id: Ticket::StateType.find_by(name: 'open').id,
|
2017-04-26 11:28:32 +00:00
|
|
|
default_follow_up: true,
|
|
|
|
)
|
|
|
|
Ticket::State.create_if_not_exists(
|
2018-12-19 17:31:51 +00:00
|
|
|
id: 3,
|
|
|
|
name: 'pending reminder',
|
|
|
|
state_type_id: Ticket::StateType.find_by(name: 'pending reminder').id,
|
2017-04-26 11:28:32 +00:00
|
|
|
ignore_escalation: true,
|
|
|
|
)
|
|
|
|
Ticket::State.create_if_not_exists(
|
2018-12-19 17:31:51 +00:00
|
|
|
id: 4,
|
|
|
|
name: 'closed',
|
|
|
|
state_type_id: Ticket::StateType.find_by(name: 'closed').id,
|
2017-04-26 11:28:32 +00:00
|
|
|
ignore_escalation: true,
|
|
|
|
)
|
|
|
|
Ticket::State.create_if_not_exists(
|
2018-12-19 17:31:51 +00:00
|
|
|
id: 5,
|
|
|
|
name: 'merged',
|
|
|
|
state_type_id: Ticket::StateType.find_by(name: 'merged').id,
|
2017-04-26 11:28:32 +00:00
|
|
|
ignore_escalation: true,
|
|
|
|
)
|
|
|
|
Ticket::State.create_if_not_exists(
|
2018-12-19 17:31:51 +00:00
|
|
|
id: 6,
|
|
|
|
name: 'removed',
|
|
|
|
state_type_id: Ticket::StateType.find_by(name: 'removed').id,
|
|
|
|
active: false,
|
2017-04-26 11:28:32 +00:00
|
|
|
ignore_escalation: true,
|
|
|
|
)
|
|
|
|
Ticket::State.create_if_not_exists(
|
2018-12-19 17:31:51 +00:00
|
|
|
id: 7,
|
|
|
|
name: 'pending close',
|
|
|
|
state_type_id: Ticket::StateType.find_by(name: 'pending action').id,
|
|
|
|
next_state_id: Ticket::State.by_category(:closed).first.id,
|
2017-04-26 11:28:32 +00:00
|
|
|
ignore_escalation: true,
|
|
|
|
)
|