0

I have seen multiple answers for how to return the key of the parent of a given issue, but is it possible to return the keys of all children of a parent issue? Ideally, I'd like to return the keys for all children but not all 'grandchildren,' etc. I have the key of the parent issue as input.

edit: I can already return the keys for subtasks of a parent but I need to be able to return keys for issue children: for example, return all stories under an epic.

enginerd
  • 1
  • 1
  • 3

2 Answers2

1

If you're using the python JIRA library, then you can achieve this via the search_issues() method.

Example:

from jira import JIRA

jira = JIRA("my_url", basic_auth=my_auth)

parent_issue = "PR-1234"
children = jira.search_issues("parent=%s" % parent_issue)
Billy
  • 547
  • 3
  • 5
0

Did you find a way to do this in the jira python api? I'm looking for a solution to a similar problem myself. The issues have a property of issuelinks which could be iterated.

Or you could use the following JQL to return a list of linked issues

issue in linkedIssues(ABC123)