lib/jira-profiler/field.rb
def field_reference
        if @field_reference.nil?
          @field_reference = {
              :ui_labels   => {},
              :json_fields => {},
              :attr_sym    => {}
          }
          r = get("/rest/api/2/field")
          r.each do |field_json|
            field = self.new(field_json)
            @field_reference[:ui_labels][field.ui_label]     = field
            @field_reference[:json_fields][field.json_field] = field
            @field_reference[:attr_syms][field.attr_sym]     = field
          end
        end
        @field_reference
      end
# The field reference for the system
The field reference for the system
The field reference for the system
def field_reference
        if @field_reference.nil?
          @field_reference = {
              :ui_labels   => {},
              :json_fields => {},
              :attr_sym    => {}
          }
          r = get("/rest/api/2/field")
          r.each do |field_json|
            field = self.new(field_json)
            @field_reference[:ui_labels][field.ui_label]     = field
            @field_reference[:json_fields][field.json_field] = field
            @field_reference[:attr_syms][field.attr_sym]     = field
          end
        end
        @field_reference
      end
def field_reference if @field_reference . nil? @field_reference = { :ui_labels => { } , :json_fields => { } , :attr_sym => { } } r = get ( "/rest/api/2/field" ) r . each do | field_json | field = self . new ( field_json ) @field_reference [ :ui_labels ] [ field . ui_label ] = field @field_reference [ :json_fields ] [ field . json_field ] = field @field_reference [ :attr_syms ] [ field . attr_sym ] = field end end @field_reference end
The field reference for the system
The field reference for the system