lib/jira-profiler/issue.rb
def record_change(date, field, from, to)

      fields[field].record_change(
        :value      => to,
        :start_date => date,
        :sprint     => current_sprint,
        :assignee   => assignee)

      # Track sprint inclusion / ejection
      if field == 'Sprint'
        @current_sprint = to
      end

      # Track the developer
      if field == 'assignee'
        @contributors << to unless to.nil?
        @current_assignee = to
      end

      @changes << Change.new(self, date, field, from, to, @current_assignee, @current_sprint)

    end
# Recrods relevant changes, but not all items in history
Recrods relevant changes, but not all items in history
Recrods relevant changes but not all items in history
def record_change(date, field, from, to)
      fields[field].record_change(
        :value      => to,
        :start_date => date,
        :sprint     => current_sprint,
        :assignee   => assignee)
      if field == 'Sprint'
        @current_sprint = to
      end
      if field == 'assignee'
        @contributors << to unless to.nil?
        @current_assignee = to
      end
      @changes << Change.new(self, date, field, from, to, @current_assignee, @current_sprint)
    end
def record_change ( date , field , from , to ) fields [ field ] . record_change ( :value => to , :start_date => date , :sprint => current_sprint , :assignee => assignee ) if field == 'Sprint' @current_sprint = to end if field == 'assignee' @contributors << to unless to . nil? @current_assignee = to end @changes << Change . new ( self , date , field , from , to , @current_assignee , @current_sprint ) end
Recrods relevant changes, but not all items in history
Recrods relevant changes but not all items in history
# Track sprint inclusion / ejection # Track the developer
date
field
from
to