Module: TicketAbstractorClient::ClientHelper

Defined in:
lib/ticket_abstractor_client/client_helper.rb

Class Method Summary collapse

Class Method Details

.get_jira_fields_meta(*jira_endpoint) ⇒ Object



23
24
25
26
27
28
29
30
# File 'lib/ticket_abstractor_client/client_helper.rb', line 23

def get_jira_fields_meta(*jira_endpoint)
  jira_endpoints = Jira::Client.new.endpoints
  jira_endpoints = jira_endpoints.slice(*jira_endpoint) if jira_endpoint.present?

  jira_endpoints.each_with_object({}) do |(endpoint, _), result|
    result[endpoint.to_sym] = Jira::FieldsMeta.new(endpoint)
  end
end