sumoheavy / jira-ruby

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

How to find sprints #208

Open robertlabrie opened 7 years ago

robertlabrie commented 7 years ago

How can I find a list of sprints for a given project? I'm trying to create issues and thats a required field for us.

supadhyaya commented 7 years ago

I am also looking to find a sprint and the associated issues with them. Also I have a strange problem. I am only able to extract only 50 issues from each projects. Not more not less. Any helpful suggestions ?

rafadc commented 6 years ago

For retrieving the sprints you can do

@client.Agile.get_sprints(BOARD_ID)

For the number of results you can pass the maxResults parameter like this:

client.Agile.get_backlog_issues(BOARD_ID, maxResults: ISSUE_READING_PAGE_SIZE)

You cannot get more than a given number so you may need to page your calls