Forums

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

We really should have inverse operators for these bits of JQL

User12345
Contributor
June 15, 2026

JQL supports field CHANGED TO X FROM Y

The following operators should have NOT support

AFTER

BEFORE

BY

DURING

FROM

ON

TO

Would be very helpful when doing filter queries against a bunch of tickets

2 answers

2 accepted

2 votes
Answer accepted
Bill Sheboy
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 15, 2026

Hi @User12345 

Please provide an example JQL where the NOT keyword does not work as expected with those additions to the CHANGED operator.

Here is an example where NOT is used with CHANGED AFTER:

project = MYPROJECT
 AND NOT status CHANGED AFTER -120d
ORDER BY Key ASC

And, often a JQL query's logic may be inverted to provide the search results needed.

Of course...there are exceptions, such as when the changelog has errors preventing JQL from returning accurate results, with or without the NOT keyword.  A specific example is changelog errors in list fields, such as Fix Versions, when the values change too many times.

 

Kind regards,
Bill

User12345
Contributor
June 15, 2026

project = MYPROJECT AND status CHANGED TO status1 NOT FROM status2 after "2026-06-15 00:00"

 

@Bill Sheboy 

User12345
Contributor
June 15, 2026

Instead I'd have to do from ("Status1", "Status3", "Status4")

 

etc

Bill Sheboy
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 15, 2026

Inserting NOT within the CHANGED operator's clauses, or adding a list of values for FROM, TO, etc. is not supported.  There are lots of related suggestions in the JAC backlog which you may watch / vote for to see progress: 

https://jira.atlassian.com/secure/Dashboard.jspa

 

For the specific query you note, one workaround is to split the query to check each of the other possible status values the workflow supports other than "status2":

project = MYPROJECT
AND (
status CHANGED TO status1 FROM status1 AFTER "2026-06-15 00:00"
OR status CHANGED TO status1 FROM status3 AFTER "2026-06-15 00:00"
...
)
ORDER BY Key ASC

 

Another possible workaround is to investigate marketplace apps which extend the features of JQL for changelog searches:

https://marketplace.atlassian.com/

Like User12345 likes this
0 votes
Answer accepted
John Funk
Community Champion
June 15, 2026

Hi User,

Yes, that would probably be very helpful - but we are just a user community and can't control those types of things. You should submit a suggestion to Atlassian Support: 

https://support.atlassian.com/contact#/

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events