sumoheavy / jira-ruby

A Ruby gem for the JIRA REST API
MIT License
655 stars 411 forks source link

Agile.get_sprints in reverse order #309

Open okstaticzero opened 5 years ago

okstaticzero commented 5 years ago

I need to return a list of sprints in reverse order. I see I can get the list like this: client.Agile.get_sprints('148') but how can I set an order? Any help is greatly appreciated!

akostadinov commented 5 years ago

You could do client.Agile.get_sprints('148')["values"].reverse. Which is a standard ruby method.