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

Next challenges

Recent achievements

  • Global
  • Personal


  • Give kudos
  • Received
  • Given


  • 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

How to query duration searcher field?

Charlie Misonne Community Leader Mar 20, 2020

I'v got a scripted field using ScriptRunner. The script outputs a Long value with ScripRunner useing the Duration template.

The custom field also uses the Duration searcher.

The values in the issues are fine. But querying them with JQL does not work as excpected.


The field shows this value on an issue: 1 day, 11 hours, 5 minutes

When I search for: myField < 2d the issue is not in the results.

Is it possible to use a duration field in JQL? Or should I use a date field instead?


1 answer

@Charlie Misonne I'm currently having the same issues. Did you figure it out :)?

Charlie Misonne Community Leader Apr 28, 2020


No I didn't. I chose to use a date field instead.
I don't think we can query duration field but I'm not 100% sure. If you really need it try asking via a vendor support ticket.

Thank you for the answer :)

It kind of sucks that the official documentation shows examples that do not work.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

Do Not Lose your Customer’s Trust

Missing deadlines is one of the biggest problems every team lead wants to avoid when dealing with managed services. When the customer contracts your company to help with IT services it is expected th...

24 views 0 0
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