How to search in profields if some field is empty or null?

Hi,

 

I´m trying to find if any of my projects have some empty profields value. I´ve tried many queries, but without success

project in profieldsOperator("Número do Contrato", "IS", "EMPTY")
project in profieldsOperator("Número do Contrato", "IS", "NULL")
project in profieldsOperator("Número do Contrato", "=", "null")
project in profieldsOperator("Número do Contrato", "=", "")

None of these is working.

What should I do?

 

Thank you

4 answers

Hi,
"Profields" does not support empty argument in the profieldsOperator.
Which version of Profields are you using?
Probably you can mark the Profields field as a custom field and the you can use the standard jql to search the issues.

Screenshot_1.jpg

Screenshot_2.jpg

 

Screenshot_3.jpg

 

Screenshot_4.jpg

profieldsOperator is an obsolete function and probably it will be removed in next versions.

The documentation says the IS operator is supported, so your first example should be the correct one.

When you say "without success", what exactly do you mean? You get an error? You get incorrect results? You get 0 results?

When I use project in profieldsOperator("Some field", "IS", "Empty") I get 0 results. I have tried different variants for 3th parametr: EMPTY.

Nicolas, see this screen, I have configured too fields in profields

 

profields.png

 

Now, look at the results of my queries

 

profields3.pngprofields1.pngprofields2.png

 

Carlos, thank you for answer, it works for me.

Could you specify, is it a good practice to make all profields as custom fields and is here any dissadavantages for making profield as custom field. 

We recommend that only set the Profields that you need to use at issue level. The Profields fields that you mark as custom field should be synchronized with the issue custom field each time it is changed.

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Bridget Sauer
Published Thursday in Marketplace Apps

Calling all developers––You're invited to Atlas Camp 2018

 Atlas Camp   is our developer event which will take place in Barcelona, Spain  from the 6th -7th of   September . This is a great opportunity to meet other developers and get n...

359 views 0 6
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you