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

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

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

Data Cleanse - Find Multiple Empty Fields Filter

Hi

I am doing a data cleanse and needs to find any records that have empty fields that have been updated after a specific date (this year - 2021)

There are 5 fields and I need to filter any records where ALL 5 fields are not populated.

This seems to work but returns records prior to 2021....

updated >= 2021-01-01 AND project = SD AND issuetype = "Service Request" AND component = EMPTY OR "Company[Select List (multiple choices)]" = EMPTY OR "Department[Select List (multiple choices)]" is EMPTY OR "Location[Select List (multiple choices)]" = EMPTY OR Department = EMPTY OR Tags = EMPTY ORDER BY updated ASC, component ASC, cf[10049] DESC, cf[10054] DESC

Cheers

1 answer

1 accepted

2 votes
Answer accepted

Hi Steve and welcome,

JQL filters can be tricky at first you need to take into account also the AND and OR operators precedence. It seems you missed some (  ) within your filters. I think what you were looking for is:

updated >= 2021-01-01 AND project = SD AND issuetype = "Service Request" AND (  component = EMPTY OR "Company[Select List (multiple choices)]" = EMPTY OR "Department[Select List (multiple choices)]" is EMPTY OR "Location[Select List (multiple choices)]" = EMPTY OR Department = EMPTY OR Tags = EMPTY ) ORDER BY updated ASC, component ASC, cf[10049] DESC, cf[10054] DESC

 

Note the new ( symbol before component field and the ) symbol before Order by closure.

Regards

Amazing, thank you for the quick response and works perfect, I need to remember that.

Cheers

Have a nice day! I'm sure you'll never forgot to use ( ) properly any more.

Regards

Like Steve Fell likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Jira Service Management

Why upgrade to Jira Service Management Premium?

We often have questions from folks using Jira Service Management about the benefits to using Premium. Check out this video to learn how you can unlock even more value in our Premium plan.  &nb...

205 views 1 6
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