Added doc.

This commit is contained in:
Martin Edenhofer 2013-08-17 18:09:19 +02:00
parent f26059d0f8
commit 687f7716b4

View file

@ -2,6 +2,18 @@
module Ticket::Escalation
=begin
rebuild escalations for all open tickets
result = Ticket::Escalation.rebuild_all
returns
result = true
=end
def self.rebuild_all
ticket_state_list_open = Ticket::State.by_category( 'open' )
@ -11,6 +23,19 @@ module Ticket::Escalation
}
end
=begin
rebuild escalation for ticket
ticket = Ticket.find(123)
result = ticket.escalation_calculation
returns
result = true
=end
def escalation_calculation
# set escalation off if ticket is already closed