Query on Jira filters?

Hi, I have a confusion about the Jira filter designs, need some comments on the same

Let’s Say, There are 1000 projects in JIRA and there is a custom field ‘Team’ which has many values but one of them is 'Spartans' which is only used by Project A and Project B. And there are 2 queries.

JQL 1: Project in (Project A, Project B) AND Team = 'Spartans'

JQL 2: Team = ‘Spartans’

Logically, both the queries will return the same set of issues because for the field ‘Team’, Project A and Project B will only have the ‘Spartans’ as a value. But I would like to know if there will be a difference in terms of performance in both the queries. I am not sure how JIRA search for the issues, But in 2nd JQL will it look up all the projects? and in the same way when I have mentioned the project names will it reduce the scope of search from 1000 projects to 2 projects and reduce the response time And also helps to perform Jira better if we have too many board like these?

 -Vineet

1 answer

1 accepted

It is always best to reduce the scope as much as possible especially if the custom field Team is shared across other projects that may for some reason in the future start to use the "Spartans" value as this could then give you challenges with your filter results. 

Performance-wise a search restricted to a subset of projects should be quicker than one across all projects but this should always be validated against your particular configuration and version.

 

I need use two conditions and a return of the firts condition is correctly, but a second condition have a first name iquals and not exactly the fulll name of the current users.

watcher=currentUser() AND reporter != currentUser() ORDER BY updatedDate DESC

In this result grid I have correctly my watcher user (full name), but not correctly my reporter user (just first name equals).

Example for the current user "daniel.carmargo":

wather | Reporter

Daniel.camargo | Daniel.jesus

Daniel.carmargo|Daniel.augusto

Daniel.camargo|Daniel.camargo

Daniel.camargo|Daniel.batista

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,968 views 12 18
Join discussion

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot