I am making a call for a list of issues in a particular sprint and I would like to include the epic name or id. I have included an example below:
What fields do I use to get the epic? I have tried epic, and searching for a customField but I am at a loss.
Can someone point me in the right direction before I just iterate through the sprint list and look up the epic?
I don't have a link and it has been a while. But at the high level I learned that when you create your first epic in jira, the system automatically grabs a custom field to story the epic story number in any one issuetype. So i used the api to grab all of the json data for a couple of stories that had epics and searched the data to find the customfield that held the epics for my instance of JIRA. In my case it was customfield_10009.
I hope that helps you to get it configured. Example api call....
https://yoursitename.atlassian.net/rest/api/latest/search?jql=sprint=" + args + "&fields=key,summary,customfield_10005,customfield_10009&maxResults=150
best way is to pull fields first before sending your payload, as the project type varies, the property name also varies
please use below url for finding required field details
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events