The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

How to combine 2 (or multiple) criterion?

Deleted user
June 30, 2021

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Sadeesh Narendran
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 Champions.
June 30, 2021

Hi @[deleted]

 

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

Deleted user
July 1, 2021

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.

Daniel Turczanski - JQL Search Extensions
Atlassian Partner
July 2, 2021

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.

Deleted user
July 2, 2021

Thanks :-(

TAGS
AUG Leaders

Atlassian Community Events