Trying to use conditional logic in JQL when filtering for issues

Hello! 

I am trying to display filter results based on status in JIRA. 

project = ODS AND (issuetype = "A" AND status in (Resolved) AND issuetype = "B" AND status in (Open, "In Progress"))

So I am trying to get issue "B" to display based on issue "A" being completed. 

Is this something that can be done in filters? 

Thanks! 

3 answers

Hi 

Try this, it might get work.

project = ODS AND issuetype = "A" AND status in (Resolved) AND project = ODS AND issuetype = "B" AND status in (Open, "In Progress")

Thanks for the suggestion Vineet! I have tried this and unfortunately it did not work. 

Thanks for the input though!

The short answer is no. In SQL terms you would need a JOIN, in JQL there is no equivelent. You may be able to get it using an add-on. Are you on server of cloud?

Well that's fun... 

I am on server. Do you have any suggestions as to how I could either use a workaround or add-on to complete the request?

Well your example JQL above didn't make sense because it doesn't show any kind of an attempt at a join. Explain further what you're trying to do and we can try and help.

Sure thing!  

I want to display an issue's sub-task, in a dashboard but only if another one of the issue's sub-task is marked as resolved.

So I am trying to get issue "B" to display based on issue "A" being completed. I am pretty new when it comes to dashboard, and filter creation so, any direction would be much apppreciated.

Thanks! 

It's solvable but in a different way. Create a field on Issue B to track when Issue A is done. Change the workflow for Issue A to set the value in Issue B using update linked issue post function. Then just query for issue B and field value.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

Mission-critical battery manufacturer fulfills FAA software requirements with Commit Policy Plugin

EaglePicher Technologies is a leading manufacturer of battery systems for diverse industries like defense, aviation, space or medical. As they operate in highly regulated industries, keeping a clear ...

177 views 0 2
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you