Forums

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

Showing tickets from two projects on one board

Ronnie Shorto January 22, 2021

I am trying to show tickets from two projects on one board (Project ABC in this case). The additional project's tickets that I want to show have a specific label assigned to them so not all of them are needed.

 

I am using this query which is not working as expected

project = "Project ABC" OR project = "Project DEF" AND labels = LableABC ORDER BY Rank ASC

 

If I remove the label then all of the tickets from Project DEF show so I am not sure if that is causing the issues. Any suggestions

2 answers

2 accepted

0 votes
Answer accepted
Sandesh Shetty
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.
January 22, 2021

@Ronnie Shorto 

If you do not use parentheses, the statement will be evaluated left-to-right.  So you can

use 

project = "Project ABC" OR (project = "Project DEF" AND labels = LableABC) ORDER BY Rank ASC

0 votes
Answer accepted
Ollie Guan
Community Champion
January 22, 2021

Hi @Ronnie Shorto ,

Try this one

project = "Project ABC" OR (project = "Project DEF" AND labels = LableABC) ORDER BY Rank ASC

Ronnie Shorto January 22, 2021

That is not valid. I get the following error

Error in the JQL Query: Expecting either 'OR' or 'AND' but got "DEF". (line 1, character 59)

The real project name does have two works within " ". The error references the second word which is why in our example of Project DEF I used the DEF part. I just wanted that to be clear. 

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.
January 22, 2021

It should be valid - could you try typing it and using the suggestions the input box will make, rather than copy/paste?  Or just inserting the parentheses in the working one that you had before?

Suggest an answer

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

Atlassian Community Events