Note: I know that I can use this to get the stories which are in an epic, I'd like to not call this every time.
I am trying to determine when I need to use the above instructions to get all of the stories. For a story, I can see the epic link and also if there are sub-tasks so I can navigate those well.
[Edited for Clarity]
When using the REST API, I'm trying to get the number of stories associated with an epic. For example, when I pull back an issue, I can tell if there are subtasks under the item. I was thinking there might be the same functionality for an Epic since the UI shows the epics.
Thanks for the answer. I need to reword the question, it was towards the Rest API. I have a filter that returns the epics associated with multiple projects and need to know the number of stories associated with the epics.
If you have scriptrunner installed, you could use the JQL functions provided by ScriptRunner plugin to query all the epics that has stories linked to it.
Refer to the JQL functions list in https://scriptrunner.adaptavist.com/latest/jira/jql-functions.html#_haslinks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.