class Redmine::Issue
Represents a single issue (ticket) in the Redmine
system.
Public Instance Methods
activity()
click to toggle source
List event history for this Issue
as IssueEvent
objects.
# File lib/redmine/issue.rb, line 27 def activity journals.map do |event| IssueEvent.new(event) end end
lead_time()
click to toggle source
Calculate the lead time for this ticket.
This returns the difference in days between the closed date and the start date.
# File lib/redmine/issue.rb, line 37 def lead_time return Float::INFINITY unless closed_on (closed_on - [created_on, start_date].max).to_i end