lib/jira-profiler/project.rb
def lookup_id_for(attribute, value)
        return value if attribute == 'id'
        project_list = get("/rest/api/2/project")
        project_list.each do |project|
          return project['id'] if project[attribute] == value
        end
      end
# Loop over all of the projects to find the id of the project whose attribute matches the value provided
Loop over all of the projects to find the id of the project whose attribute matches the value provided
Loop over all of the projects to find the id of the project whose attribute matches the value provided
def lookup_id_for(attribute, value)
        return value if attribute == 'id'
        project_list = get("/rest/api/2/project")
        project_list.each do |project|
          return project['id'] if project[attribute] == value
        end
      end
def lookup_id_for ( attribute , value ) return value if attribute == 'id' project_list = get ( "/rest/api/2/project" ) project_list . each do | project | return project [ 'id' ] if project [ attribute ] == value end end
Loop over all of the projects to find the id of the project whose attribute matches the value provided
Loop over all of the projects to find the id of the project whose attribute matches the value provided
attribute
value