What is the REST call to fetch the progress of an Epic?

When I'm in a Board in Agile, and in Plan Mode, I see a leftmost column containing a list of all Epics. Each Epic is displayed with a progress bar (story points completed/story points total). What's the REST call for fetching the progress of an Epic? If I do GET /rest/api/2/issue/<my_epic_id> I get a JSON object containing - ... fields: { progress: { progress: 10800, total: 10800, percent: 100 }, .... - However, this is the progress for the issue itself (in seconds, estimated time). I need the progress of the Epic, i.e. the progress based on all the story points of all issues linked to the Epic. Could anyone give me some pointers?

2 answers

1 accepted

3 votes
Answer accepted

I'm gonna answer my own question here.

GET /rest/greenhopper/1.0/xboard/plan/backlog/epics?&rapidViewId=:ID. This will retrieve the full list of Epics in the assigned board, then to get the Epic progress, you can look for this part in the returned Epic JSON (each Epic has it):

...

"epicStats":{

"notDoneEstimate":15.0,

"doneEstimate":12.0,

"totalEstimate":27.0,

"percentageCompleted":44.0,

"estimated":8,

"percentageEstimated":100.0,

"notEstimated":0,

"percentageUnestimated":0.0,

"notDone":20,

"done":70,

"totalIssueCount":90

},

...

Thanks to Omar from Atlassian.

its not quite clear what youre trying to do.

Actualy i dont know what you mean with Epics... Is it something of your own, or is it part of jira? I am not familiar with all parts of JIRA yet.

Anyway, your rest call is going to the issue rest service. It requires an issue id or issue key. I dont know what you mean with my_epic_id but i think you mean something else. The response youre getting is the json representation of the issue whith id that matches your <my_epic_id>.

Propably you wanted something else. Therefore you must call another service, whichever handles the "epics" and not the issues, or implement your own rest service for that purpuse if Epics is your own thing.

Tip: Go to administration -> Developer Toolbox -> REST API Browser.

It lists all available rest services with their functions. You can also test services from there with different parameters.

Ah i see, youre in greenhoper context not in jira. My fault.

Well, i dont know greenhopper but if Epics is greenhopers thing, then there is propably also a service for that. Use REST API Browser to find the correct service and url.

administration -> Developer Toolbox -> REST API Browser, I don't have the Developer Toolbox, as it appears that it's not available for On Demand customers.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted 4 hours ago in United States

Atlassian acquires AgileCraft

         Good Day, Bad bad traffic, not sure why!!!! 1/2 hour commute took me 2 hours today 🤯 What helped me is that I kept browsing LinkedIn until...

25 views 1 0
View post

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