((issueFunction in linkedIssuesOfAll("issueFunction in linkedIssuesOfAll('issuekey = XYZ-997','is parent task of')")) AND issuetype not in (initiative)) Stories, bugs etc that are linked to the Epics : In this case this returns a list of 5 Epics. This piece of the query returns all linked issues to the initiative XYZ-997. IssueFunction in linkedIssuesOf("issuekey = XYZ-997","is parent task of") (issueFunction in subtasksOf("(issueFunction in linkedIssuesOfAll(\"issueFunction in linkedIssuesOfAll('issuekey = XYZ-997','is parent task of')\")) AND issuetype not in (Epic)")) OR ((issueFunction in linkedIssuesOfAll("issueFunction in linkedIssuesOfAll('issuekey = XYZ-997','is parent task of')")) AND issuetype not in (initiative)) OR issueFunction in linkedIssuesOf("issuekey = XYZ-997","is parent task of") This has been checked on a single initiative with Epics, stories and subtasks. After the query there is an explanation of the three sections required. In this example the initiative was XYZ-997 and the Epics have a 'is parent task of' relationship and stories are Epic links. The main difficultly here is to construct a triple nested issueFunction but eventually the right combination of ", \" and ' was found below. Jira cloud means some scriptrunner functions are not available. ![]() ![]() This is with Jira cloud V 7.13 with Scriptrunner but NO Portfolio. ![]() After much trial and error I have been able to create a query that returns all items in the hierarchy using only the initiative id.
0 Comments
Leave a Reply. |