Forums

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

How to find all not closed Bugs (Major+) which are linked to Story?

Oleksandr M. June 11, 2018

Hi all,

have you any idea how to write a query to select all Stories in the project with the following parameters:

1. Story has linked Bugs via "relates to"

2. Bugs should be in not "Closed" status

3. Bugs should be in Blocker, Critical, Major statuses

 

Have tried such queryy

issuetype = Story and ( (issueFunction in linkedIssuesOf("status not in (Closed)", "is related by") or issueFunction in linkedIssuesOf("status not in (Closed)", "relates to") ) and priority in (Blocker, Critical, Major))

but it returns not expected results

Thanks for you help.

3 answers

1 accepted

2 votes
Answer accepted
Tarun Sapra
Community Champion
June 11, 2018
type = story and issueFunction in linkedIssuesOf("type = bug and status not in (closed) and priority in (Blocker, Critical, Major)", "relates to")

 Try above query, this should do the trick.

0 votes
Oleksandr M. June 13, 2018

Hello @Tarun Sapra

 

do you mean mark it as 'Mark as solution'?

1.PNG

If yes - I've done it :)

 

Thank you for you help.

0 votes
Oleksandr M. June 11, 2018

@Tarun Sapra, thank you! It's exactly what I need.

Tarun Sapra
Community Champion
June 11, 2018

Hello @Oleksandr M.

Glad to know that it worked, could you please accept the answer so that others are helped as well.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events