Forums

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

Jql to check issues that have "Start Date" < Today and all linked defects to it are closed

Mohamed Eltaweel April 30, 2020

Hi,

What is the proper JQL for each of the following cases using the native Jira function or  using any other addon function

 - "Start Date" < Today and the issue still waiting for approval and all linked defects to it are closed

 

 - "Start Date" < Today and all linked defects to it are closed

 

Thanks

 

2 answers

1 accepted

2 votes
Answer accepted
Jack Nolddor _Sweet Bananas_
Atlassian Partner
April 30, 2020

Hi Mohamed,

Sadly, you cannot achieve the desired search using standard features on Jira. For this requirement you must go for a third-party app instead. Using i.e. JQL Booster Pack you can type the following:

 

1) "Start Date" < Today and the issue still waiting for approval and all linked defects to it are closed

"Start Date" < startOfDay() AND approval = pending() AND issue IN linkedIssuesOf(' type = Defect and status = Closed ') AND issue NOT IN linkedIssuesOf(' type = Defect and status != Closed ')

 

2) "Start Date" < Today and all linked defects to it are closed

"Start Date" < startOfDay() AND issue IN linkedIssuesOf(' type = Defect and status = Closed ') AND issue NOT IN linkedIssuesOf(' type = Defect and status != Closed ')

 

(*) Note that this is just an example, you must tune above query to fit your needs.

 

Using this app you can also query other issues relations, check:

 

References:

 

Hope this helps you to create awesome queries <3

0 votes
Mohamed Benziane
Community Champion
April 30, 2020

Hi Mohamed,

You will need an addon like scriptrunner to achieve this.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events