Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Board JQL Query

Jack Tucker
Contributor
July 28, 2023

Hi Guys,

 

Just wondering if anyone else has encountered this and found a work around ..... 

 

My JQL query for a board reads as the below, the board is unable to see "Projects in board" when the cascade option for the JQL query is empty. I have highlighted the part in bold I need to remove in order for the board to see the projects in the board.

 

project = "First Responder Inbox" AND "Group Assignment[Select List (cascading)]" in cascadeOption("Bank Payment Network",none) OR "Group Assignment[Select List (cascading)]" in cascadeOption("Bank Payment Network", "Merchant Engagement")

 

Screenshot 2023-07-28 at 08.54.51.pngScreenshot 2023-07-28 at 08.56.07.png

Appreciate any help on this! Thanks! 

 

Jack

3 answers

1 accepted

0 votes
Answer accepted
Jack Tucker
Contributor
July 31, 2023

Hi Guys,

Thanks for all the responses, I think I found a fix for this (not sure why this works tho)

Turns out specifically specifying the project again after the first part of the filter allows the filter to pick up the project, I changed the filter to the below and it now works. 

project = "PDFR" AND ("Group Assignment[Select List (cascading)]" in cascadeOption("Bank Payment Network",none)) OR project = "PDFR" AND ("Group Assignment[Select List (cascading)]" in cascadeOption("Bank Payment Network", "Merchant Engagement")) ORDER BY created DESC

2 votes
Dave Mathijs
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 28, 2023

Hi @Jack Tucker 

I don't know what you're trying to achieve with the filter but could it be that the JQL needs to be:

project = "First Responder Inbox" AND ("Group Assignment[Select List (cascading)]" in cascadeOption("Bank Payment Network",none) OR "Group Assignment[Select List (cascading)]" in cascadeOption("Bank Payment Network", "Merchant Engagement"))

This will give you issues from project First Responder Inbox where the Group Assignment is one of the options provided (within that project only).

Jack Tucker
Contributor
July 28, 2023

Hi Dave,

 

Thanks for your reply, I am trying to get the filter to show issues where the option is Bank Payment Network and the cascading option is Merchant Engagement,  but also when the first option Bank Payment Network is selected and the cascading option is empty.

When I have this part in the filter it is unable to see the project: 

("Group Assignment[Select List (cascading)]" in cascadeOption("Bank Payment Network",none)

Many Thanks 

Jack

Like # people like this
0 votes
Marc - Devoteam
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.
July 28, 2023

Hi @Jack Tucker 

I might have found the issue in the JQL.

The cascade option none has to be specified with quotes as well and to keep the OR clause in the project First Responder Inbox, also include this clause in ()

Can you try the JQL?

project = "First Responder Inbox" AND ("Group Assignment[Select List (cascading)]" in cascadeOption("Bank Payment Network","none") OR "Group Assignment[Select List (cascading)]" in cascadeOption("Bank Payment Network", "Merchant Engagement"))

Nic Brough -Adaptavist-
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.
July 28, 2023

That will only work if there is a "none" option in the field.

Experienced Jira admins will never add "none" as an option.

Like Dave Mathijs likes this
Isaac Van Baren
Contributor
July 28, 2023

@Nic Brough -Adaptavist- saw your reply to my question in another thread, and clicked your name to see recent activity. This question popped up, with your answer highlighted... And it caught my attention, because I was literally in the middle of adding the text "None" to some custom fields I had made. Will you please explain why this should never be done?

Nic Brough -Adaptavist-
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.
July 28, 2023

So the simple human answer is "because it is a confusing lie". 

If you add "none" as an option to a select list, then it is lying when people see issues with that value.  "None" as an option is a value, so it's telling people the wrong thing.

The key thing here an understanding the difference between an empty field and one with data in it.  Humans don't handle blank data very well, so most systems display something like "none" when the field is actually empty. 

The problem with adding "none" as an option is that it's 

  • A contradiction in terms - it says none, but that's a value, so the field is not none.  If you add and use a "none" option, then your searches will fail when running "and field is empty"
  • Confusing - as Jira offers "none" as the option to select when you want to blank out the field, you will end up with two "none"s on the list and no indication of which is which
Like # people like this
Marc - Devoteam
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.
July 31, 2023

Hi @Nic Brough -Adaptavist- 

@Isaac Van Baren FYI

I check ad it does work.

None is on a single, multi or cascading the default option that is on the field if not  mandatory or a default set. (I know you are aware of this).

If you JQL on "Group Assignment[Select List (cascading)]" in cascadeOption("Bank Payment Network")

You will get all issues with option Bank Payment Network where the second option of the cascading field is empty or has a value.

JQL :"Group Assignment[Select List (cascading)]" in cascadeOption("Bank Payment Network","none")

You will get all issues with option Bank Payment Network where the second option of the cascading field is empty.

Or JQL: Group Assignment[Select List (cascading)]" in cascadeOption("Bank Payment Network", "Merchant Engagement")

You will get all issues with option Bank Payment Network where the second option of the cascading field is Merchant Engagement.

Example (tested both DC and Cloud), no option None is defined, the the cascading select:Screenshot 2023-07-31 at 09.10.21.png

Screenshot 2023-07-31 at 09.10.00.pngScreenshot 2023-07-31 at 09.10.29.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events