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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to combine 2 (or multiple) criterion?

I'm trying to find the stories where the solution version starts with "UR" [fixVersion ~ "UR *"] and this fixversion is also in the past [fixVersion in releaseDate ("before endofday ()")]. If I combine the two criteria with AND I get a lot of wrong issues because the second criterion does not refer to the result of the first criterion, but again only to the issue. An example would be a bug that is planned for UR 29/21 (CW 29 is in the future) (criterion 1 met) but at the same time assigned the fixversion "program increment #2" (ends last month) (criterion 2 also met). How can I combine the two arguments?

1 answer

Hi @Lars Huettig

 

Try replacing the second critria with AND Sprint in (openSprints(), futureSprints()). This will show only active Sprint & Future Sprint issues.

ex: project =xx AND Fix version starts with "UR" [fixVersion ~ "UR *"] AND Sprint in (openSprints(), futureSprints())

Again if u have issues which are not assigned to any Sprint, again use third criteria Sprint is Empty. This should be grouped with second.

ex: project =xx AND starts with "UR" [fixVersion ~ "UR *"] AND (Sprint in (openSprints(), futureSprints()) OR Sprint is Empty)

 

Let me know if this helps

Thanks

Sadeesh N

Unfortunately, the addition of the sprint doesn't help me. I'm not even about the fixeversion itself. That only served as an example. My main concern is to combine arguments.

Another use case could also be: Find all issues that are commented by John with "Nice work. Thanks.". These issues commented by Maria with "Nice work. Thanks." and from John with "Done!" should not be found by the JQL.

It's not possible with JQL. The keywords that are available only allow to search among all comments in the issues. You can't apply multiple criteria to a single comment.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Trello

🏊‍♀️ Atlympic Event: Trello

Hello Community!  Quick disclaimer: We are running a contest on Community (The Atlympics!) from July 23rd - August 8th of 2021. If you are interested in participating in this contest (prizes! ...

136 views 2 12
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you