def workitem_index(workitem)

      if %w[ highest lowest ].include?(h.cmerge)
        nil
      elsif m = workitem['fei']['subid'].match(/k(\d)+$/)
        m[1].to_i
      else
        nil
      end
    end
def workitem_index(workitem)

      if %w[ highest lowest ].include?(h.cmerge)
        nil
      elsif m = workitem['fei']['subid'].match(/k(\d)+$/)
        m[1].to_i
      else
        nil
      end
    end
TODO