Forums

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

Create query that shows stories and open tasks for each story

Andy Stengel June 18, 2018

For a specific project, component and status

2 answers

1 accepted

1 vote
Answer accepted
Alexey Matveev
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.
June 18, 2018

Hello,

You can not do it out of the box. Have a look at the ScriptRunner plugin:

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

Andy Stengel June 18, 2018

Yes, I am using the ScriptRunner Plugin. I cant seem to get both the stories and subtasks working on one query though.

Alexey Matveev
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.
June 18, 2018

It would be like this

issuetype = Story or issueFunction in subtasksOf("issuetype = Story and status = Open")

Andy Stengel June 18, 2018

Thank you!!

Alexey Matveev
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.
June 18, 2018

You are welcome! If my answer helped you, Kindly accept my answer. In this case other people with a similar question will be able to find this answer.

3 votes
sudhakar
Contributor
June 18, 2018

Hi 

 

We can get open stories and open tasks for the stories using  JQL Search Extensions plugin 

Query :  ((subTaskStatus = "Open" AND issuetype = Story) OR (parentStatus = "Open" AND parentIssueType = Story ))

Above qury gives us list of stories and sub-task which are in open status .

https://jqlsearchextensions.atlassian.net/wiki/spaces/SEARCH/pages/3375124/JQL+Reference+Cloud#JQLReference(Cloud)-SubtaskStatus

 

Regards

Sudhakar

Suggest an answer

Log in or Sign up to answer