Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Greenhooper REST API

Momchil Yordanov June 8, 2018

Hi,

We use an old version of Jira Agile plugin that uses Greenhooper REST API. We are searching for documentation of Greenhooper REST API specification. Could someone help us to find it ?

 

Regards,

Momchil

1 answer

1 accepted

1 vote
Answer accepted
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 8, 2018

You can find the Agile REST APIs in this link: https://docs.atlassian.com/jira-software/REST/

Jira 7 was where Agile became Jira Software.  However for the older Agile versions, you can still find the 6.7.x versions listed there.  

If you need the base Jira Server/Core (ie to perform basic Jira tasks like editing issues, creating issues, etc) you can still find these in the https://docs.atlassian.com/software/jira/docs/api/REST/

I hope this helps.

Momchil Yordanov June 20, 2018

Hi,

 

I looked all over APIs but still can't find ours.

There are lots of similarities between Agile REST API 6.7.6 and our, but its not the same API.

Our API is using the following calls  : 

(GET)  <jira_url>/rest/greenhopper/1.0/rapidview - get all boards

(GET) <jira_url>/rest/greenhopper/latest/sprintquery/{spintID}?includeHistoricSprints=true&includeFutureSprints=true get sprintsby given board

(POST) <jira_url>/rest/greenhopper/1.0/sprint/{rapidViewId} - Create sprint

(PUT) <jira_url>/rest/greenhopper/1.0/sprint/{sprintId} - Update sprint

etc... 

 

We are searching for REST call to get board id by given board name that excludes getting all boards and finding id of our one. 

Also, we have a problem with sprint creation. We have to make two REST calls: POST to create sprint and PUT to set its name and dates. Is there a way to create sprint with one POST ?

 

Regards,

Momchil

Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 21, 2018

What version of Greenhopper are you using?   I did come across a request to publish the old greenhopper rest api reference guides in https://jira.atlassian.com/browse/JSWSERVER-13299

It does not appear that Atlassian has any of these documented at this time.  However the greenhopper product has been deprecated for some time now.   It's replacement Jira Agile as also been deprecated.  In place of both of these is the current versions of Jira Software.

It might help if you to install the Atlassian REST API Browser.   This is a plugin for Jira that you can install and with it you can browser through the public and private rest api calls that might be possible to make in your Jira.

Try the endpoint called greenhopper/1.0/rapidviews/list?query=boardname   You can make a GET call here and replace the 'boardname' with the name of your board.  Just note that if you have two boards with the same name, you're going to get two results here.   Also this does not appear to have been a public API, so I don't really have much hope that we'll find public documentation on using that specific endpoint, but it might help here.

As for the two REST calls need to create the sprint and set the dates, I don't see a way to do this in a single call in Greenhopper.  However it looks like the later Jira Agile versions can do this with the endpoint called /rest/agile/1.0/sprint.   However I doubt that greenhopper versions will have access to that endpoint at all. Sorry there does not appear to be a way to do that in that in a single call in your version.

Momchil Yordanov June 21, 2018

Thank you , for your fast and helpful response. We have found what we need.

 

Regards,

Momchil

Suggest an answer

Log in or Sign up to answer