How to attribute issue to epic via API


we have Jira & Greenhopper licensed and need to export our projects via API to them. Exporting project and issues is ready and works good (via SOAP for project and REST for issues), but I've problem with attribute issue to epic in Greenhopper. I can't find any API documentation for Greenhopper.

Did anyone make that and can help me? Greenhopper API documentation will be also helpful.



3 answers

1 accepted

This widget could not be displayed.

Use the REST method /rest/greenhopper/1.0/epics/<EPIC ID>/add

Request Method:

Content: {"ignoreEpics":true,"issueKeys":["<Story ID>"]}

And for finding out what REST apis are present in GH, open the Chrome developer tab and check what are the requests going to the server while you perform an actual action in GreenHopper.

Thanks! I forgot to ask how can I create an epic via API? Finally I found REST API documentation, but can't find this.

Was that a question?

Creating Epics is like creating any other issue in REST. Is that what you looking for?

Yes, that was a question, but you're right - I thought, that greenhopper's epic is something else than epic issue. Thanks a lot for your answers - everything works good!

You can also use the Atlassian Developer Toolbox to list all the REST API's available.

This widget could not be displayed.

Hi Pawel,

If you mean that if you want to get the stores under the Epic (left side panel), you may look at this article which is explaining how to do this:

Please let us know if you need any further clarifications.



I think Paweel means he wants to add an issue to an epic via an API. I'd like to know that too.

This widget could not be displayed.

I would also like to know how to do this via an API. It doesn't look it is possible using JRJC but perhaps it is possible using the Greenhopper API ( - cannot find any guides on how to use this other than the javadoc however - anyone got any links?

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 6 hours ago in Jira

What modern development practices are at the heart of how your team delivers software?

Hey Community mates! Claire here from the Software Product Marketing team. We all know software development changes rapidly, and it's often tough to keep up. But from our research, we've found the h...

26 views 0 1
Join discussion

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