How to get sprints programmatically in jira server?

In Jira server add on, we want to get particular project’s sprint programmatically through atlassian api classes, as we don’t have provision to use REST APIs to get sprints ?

Is it possible to get it through com.atlassian.jira.board.BoardService class or is there any other class to achieve same ?

Awaiting for reply.

Thanks

Hello @vinit.shah,

Which specific sprint information do you need? You might find the answers in this post useful.

Cheers,
Ian