lib/jira-profiler/issue.rb
# Search for the value fields in the order of relevance or return the raw json if none are found
Search for the value fields in the order of relevance or return the raw json if none are found
Search for the value fields in the order of relevance or return the raw json if none are found
def build_value(data)
      if data.respond_to? :has_key?
        ['displayName','name','filename','votes','value'].each do |field|
          return data[field] if data.has_key?(field)
        end
      end
      return data
    end
def build_value ( data ) if data . respond_to? :has_key? [ 'displayName' , 'name' , 'filename' , 'votes' , 'value' ] . each do | field | return data [ field ] if data . has_key? ( field ) end end return data end
Search for the value fields in the order of relevance or return the raw json if none are found
Search for the value fields in the order of relevance or return the raw json if none are found
data