Added doc.
This commit is contained in:
parent
f26059d0f8
commit
687f7716b4
1 changed files with 25 additions and 0 deletions
|
@ -2,6 +2,18 @@
|
||||||
|
|
||||||
module Ticket::Escalation
|
module Ticket::Escalation
|
||||||
|
|
||||||
|
=begin
|
||||||
|
|
||||||
|
rebuild escalations for all open tickets
|
||||||
|
|
||||||
|
result = Ticket::Escalation.rebuild_all
|
||||||
|
|
||||||
|
returns
|
||||||
|
|
||||||
|
result = true
|
||||||
|
|
||||||
|
=end
|
||||||
|
|
||||||
def self.rebuild_all
|
def self.rebuild_all
|
||||||
ticket_state_list_open = Ticket::State.by_category( 'open' )
|
ticket_state_list_open = Ticket::State.by_category( 'open' )
|
||||||
|
|
||||||
|
@ -11,6 +23,19 @@ module Ticket::Escalation
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
=begin
|
||||||
|
|
||||||
|
rebuild escalation for ticket
|
||||||
|
|
||||||
|
ticket = Ticket.find(123)
|
||||||
|
result = ticket.escalation_calculation
|
||||||
|
|
||||||
|
returns
|
||||||
|
|
||||||
|
result = true
|
||||||
|
|
||||||
|
=end
|
||||||
|
|
||||||
def escalation_calculation
|
def escalation_calculation
|
||||||
|
|
||||||
# set escalation off if ticket is already closed
|
# set escalation off if ticket is already closed
|
||||||
|
|
Loading…
Reference in a new issue