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

How do I add a numeric field that allows to search using the operator "<=" and ">=" ?

Chirag September 13, 2019

What I want to achieve:

  • Allow the users to enter a numeric value (between 1 to 100) in fieldA (custom field) of their tasks.
  • When I go to 'Issues and filters' I should be able to select that particular fieldA and set a range say 10 to 80. This should show me all the tasks that have value in fieldA that falls between that range.

 

I have tried numeric field but it does not support the operators >= , <= and = 

I have also tried 'select list (single choice)' custom field. It also does not support the operators.

 

Please suggest a solution for this.

2 answers

1 accepted

1 vote
Answer accepted
Ilya Turov
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 Leaders.
September 13, 2019

Are you sure your number field has proper search template? 

Go to custom fields, find your field, press cog icon and then edit.

"Number seracher" should be chosen.

Chirag September 13, 2019

@Ilya Turov Thanks. Let me give it a try and get back to you.

Chirag September 13, 2019

@Ilya Turov 

Thank you.

I noticed that the default value for a number field's search template is 'number searcher' and when I changed it to 'number range searcher' it solved my issue and I was able to search by range.

Chirag September 13, 2019

Screenshot 2019-09-13 at 1.28.32 PM.png Screenshot 2019-09-13 at 1.31.27 PM.png

Ilya Turov
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 Leaders.
September 13, 2019

not exactly what I meant originally, but glad the direction I gave you was correct

0 votes
Alexey Matveev
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 Leaders.
September 13, 2019

Hello,

Number field do support <= and >= operators. Could you provide a screenshot with the error?

Chirag September 13, 2019

You are correct. Since I had search template as just 'number searcher' it was not working. I followed @Ilya Turov suggestion and it worked.

Thank you.

Suggest an answer

Log in or Sign up to answer