I've been playing with Jira API via the `ruby-jira` gem. I have a task where I would like to list all the epics that belong to a user's account. My current solution is to get all the issues and return items with `issuetype` name set to `Epic`.
def list_epics
epics = []
begin
all_issues = @Integration Team_client.Issue.all
all_issues.each do |issue|
epics << issue if issue.fields.issuetype.name == 'Epic
end
rescue JIRA::HTTPError
puts "Jira API error"
end
epics
end
`@jira_client` represents an authenticated user account.
I couldn't find much information from the documentation page of `jira-ruby` project. So any help is appreciated.