Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Need to fetch the story and sub task associated to EPIC .

Amit Arora July 30, 2020

I have to fetch the story and sub task for associated to the epic.  I am able to fetch the Epic from the different project linked. by 

issueFunction in linkedIssuesOf("project=A") 

My query is return the epic. Now I want to fetch all the story and sub story which is linked with my epic. Can you guide me, what i have to modified or nested query. 

1 answer

1 accepted

0 votes
Answer accepted
Muthu Thiruppandy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 30, 2020

I am assuming you are using ScriptRunner

issuefunction in linkedIssuesOf("Project = A", "is Epic of") 

will give you all the stories for the epic in Project = A

save this as filter (say 'your filter') and re use it in a nested query 

filter = 'your filter' or issuefunction in subtaskOf ("filter = 'your filter'")

Amit Arora July 31, 2020

I am not sure i am using the script rummer or not. I have tried but i am facing the erro.

Filter JQL :  issueFunction in linkedIssuesOf("project=A") AND issuetype != "Program Epic".    It will fetch all the Project which is associated with the Program.

Error : Unable to find JQL function 'subtaskOf(filter = ' Linked Issue')'.

Muthu Thiruppandy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 31, 2020

@Amit Arora , my apologies, there is typo.  's' missedout. it is subtasksOf

Refer the scriptrunner jql function documentation here:

https://scriptrunner.adaptavist.com/4.3.1/jira/jql-functions.html#_linkedissuesof

Suggest an answer

Log in or Sign up to answer