Set the 'Epic Link' via REST call

Still need help?

The Atlassian Community is here for you.

Ask the community

Steps

Since is not possible to add the Epic Link directly using JIRA REST API, we will use GH REST API (you can do a reverse engineering to track all the REST requests happening on the board using any JavaScript console). So the REST request to add Epic Link is on this form:

https://localhost:8080/rest/greenhopper/1.0/epics/{epic-key}/add

Note the above request should be done using PUT request, here is a complete example using curl:

curl --user username:password -d '{"ignoreEpics":true,"issueKeys":["{issue-key1}","{issue-key2}"..etc]}' -X PUT -H "Content-Type: application/json" https://localhost:8080/rest/greenhopper/1.0/epics/{epic-key}/add
Last modified on Feb 23, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.