Getting Sprint's start date and end date programatically

Hello my friends,

We are using the Jira REST API to get information about our Sprints into another tool. We know that the Sprint's start date and end date is information stored in GreenHopper, so we understand why they are not part of the response to the GET version request. Is there any other way of getting that information through any other interface?

Cheers,

Diego Alonso

5 answers

1 accepted

This widget could not be displayed.

Hi,

You can retrieve GH Sprint's start date and end date from com.pyxis.greenhopper.jira.configurations.ProjectConfiguration#getVersionStartDate and getVersionEndDate - but that requires writing a plugin on the server side or extending GH directly (and building it from the source code). You can retrieve ProjectConfiguration using com.atlassian.greenhopper.service.configuration.ConfigurationService which could be autowired to your own class if you import it in your atlassian-plugin.xml.

From this step exposing start date and end date via your own REST module looks like a piece of cake :)

This widget could not be displayed.

Hi Diego,

The closest I can come up with is getting the RemoteVersion through JIRA's API:

http://docs.atlassian.com/software/jira/docs/api/rpc-jira-plugin/latest/index.html?com/atlassian/jira/rpc/soap/JiraSoapService.html

It's got getReleaseDate(), but I realize that's not quite what you're after. I'm leaving this as a comment so the question stays unanswered. Nice to hear from you!

This widget could not be displayed.

Howdy Diego, This seems to be on the horizon, and is marked for "2011.S06".

https://jira.atlassian.com/browse/GHS-1167

Maybe it's just around the corner?

This widget could not be displayed.

Hi David! It's like old times.

GHS-1167 is marked won't fix. GHS-1853 is better.

This widget could not be displayed.

yeah, the good old crew :)

Thanks for your help

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Apr 22, 2018 in Jira Software

How-to setup a secured Jira Software 7.9.0 on Ubuntu 16.04.4 in less than 30 minutes

...PermissionsStartOnly=true User=www-data Group=www-data ExecStart=/opt/jira/bin/startup.sh ExecStop=/opt/jira/bin/shutdown.sh TimeoutStartSec=120 TimeoutStopSec=600 PrivateTmp=true [Install] WantedBy...

1,498 views 10 12
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you