Forums

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

Get a Custom Field's default value in a Filter using JQL?

Philippe Cadieux May 11, 2018

Hello,

 

We use a custom field in our DB where the Default Value gets changed every month. Right now this means that we have to update all our filters to search for the new Default Value.

Is there a way in the Filter's JQL query to make it so it's searching for the field's "Default Value" whatever the default value actually is at the time of the search? Some kind of Default Value wildcard to use for our searches. 

 

Thanks

1 answer

1 accepted

0 votes
Answer accepted
Peter Bengov
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.
May 11, 2018

Hi Philippe,

Try this solution:

  1. Create a filter that gets only the default value. Say "customfield = "default value". Save it as "Default Value".
  2. Every other filter that you are using that should refer to this ever-changing field will now change to project = XXX AND ... AND filter = "Default Value".

That way you should only change this once. All other filters will get updated accordingly. 

Philippe Cadieux May 11, 2018

Thanks, that's a smart workaround for the issue!

Like Sergey Savenkov likes this
Peter Bengov
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.
May 12, 2018

Great. Happy it works for you

Suggest an answer

Log in or Sign up to answer