Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

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

"issuelink in ({list})" works but "issuelink not in({samelist}) doesn't Edited

"issuelink in ({list})" works but "issuelink not in({samelist}) AND project in ({list})" returns 0 while there're dozens of issues meeting the criteria.

 it seems that issuelink can't tolerate any other conditions in the JQL statement

1 answer

Hi @Lily Goykhman 

Would you please provide a complete example of the JQL you are trying which you believe does not work?  That may provide more context for the community to answer.

issueLink NOT IN (ABC-123, ABC-456, DEF-123) 

uses keys in the list.  Is that what you are trying?

Best regards,

Bill

Hi Bill,

 Yes, that is what I am trying:

issueLink in (CM-1538, CM-1508) AND labels in (MR_20210506, MRCandidate_20210506) AND labels not in (Merged_1.22.0, NothingToRelease, QR_202103, QRCandidate_202103) AND issuetype not in (Epic, Sub-task, Sub-Defect) AND project not in (RTI, CM, "Custom Programming Requests", CMP, RC, RCRT) AND (resolution not in (Non-Issue, Rejected, Duplicate, Cancelled, Declined, "Cannot Reproduce", "Won't Do") OR resolution is EMPTY) AND status not in ("On Hold", Released) AND labels != COVID AND issuetype in (Story) 

that works.

 Once I replace "issueLink in (CM-1538, CM-1508")  with "issuelink not in (CM-1538, CM-1508)" it show 0 results. Upon manual check i do find issues that answer to this " not in" condition .

Thank you!

Thanks for confirming that, Lily.

Although there are definitely open defects for JQL, for a complex query like this it can help to rule out issues by incrementally building/testing to see when the results go to zero.  That may reveal if there is a defect or just a query error/misunderstanding.

Before doing that, it seems like there are some unneeded clauses in the query, or some missing parentheses.  For example if I reformat your JQL as below...

issueLink in (CM-1538, CM-1508)
AND labels in (MR_20210506, MRCandidate_20210506)
AND labels not in (Merged_1.22.0, NothingToRelease, QR_202103, QRCandidate_202103)
AND issuetype not in (Epic, Sub-task, Sub-Defect)
AND project not in (RTI, CM, "Custom Programming Requests", CMP, RC, RCRT)
AND (
resolution not in (Non-Issue, Rejected, Duplicate, Cancelled, Declined, "Cannot Reproduce", "Won't Do")
OR resolution is EMPTY
)
AND status not in ("On Hold", Released)
AND labels != COVID
AND issuetype in (Story)
  • It seems that issueType can only be Story.  If that is correct, the earlier check for "issueType NOT IN (...)" is not needed.
  • For the tests on "labels IN (...)" and "labels NOT IN(...)" and "labels != COVID", perhaps you only need the "labels IN (...)" one as the others would be excluded

The result would be:

issueLink in (CM-1538, CM-1508)
AND labels in (MR_20210506, MRCandidate_20210506)
AND issuetype = Story
AND project not in (RTI, CM, "Custom Programming Requests", CMP, RC, RCRT)
AND (
resolution not in (Non-Issue, Rejected, Duplicate, Cancelled, Declined, "Cannot Reproduce", "Won't Do")
OR resolution is EMPTY
)
AND status not in ("On Hold", Released)

Suggest an answer

Log in or Sign up to answer
TAGS

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