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?

Vasiliy Zverev Community Champion Nov 09, 2015

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

 

0 votes
Vasiliy Zverev Community Champion Nov 11, 2015

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
Community showcase
Published Oct 31, 2018 in Marketplace Apps

Marketplace Spotlight: Zephyr

Hello Atlassian Community! Each month, we run a series of Spotlights to highlight Marketplace vendors and apps that our team thinks this Community would find valuable. In last month's Spotlig...

314 views 0 1
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