JQL to select some stories

Last post 10:43 am November 16, 2021
by Munish Agrawal
Author
Messages
10:43 am November 16, 2021

Hi people, I need your help in defining a JQL that only picks some stories from given criteria. To elaborate I have 4 stories:

Story1 with fixversion A, B

Story2 with fixversion A, B, C

Story3 with fixversion A, C

Story4 with fixversion B, C

Now I want a query to pick up Story1 and Story2 at same time.
If I write a query with fixversion = A AND B Jira picks up only story 1 

if I write a query with fixversion = A OR B then Jira picks up all 4 stories