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 use a duration field in Issue Search Edited

I created a new ScriptRunner Script Custom field for "Days in Current Status" using the Duration Template, but when I try to use this field in my Issue Search nothing works. What is the correct format for a duration field? 

Ex. Displays on Jira Issue - 1 year, 18 weeks, 6 days, 18 hours, 12 minutes

I would like to search for issues over 5 days

"Days in Current Status" ~ '>=5days'

2 answers

0 votes

Hi Shelli,

maybe a bit far off, but we use something like:

status changed after "-5d"

without the use of a custom field.



Thank you JP. That is very helpful, but I would still like to figure out how to use the actual field. 

Hi everyone,

I can't get the Duration search work correctly. I set up a Script Field to calculate time in progress as described here

The displayed value seems to be correct. However, when I try to search by the script field it shows incorrect results. For example, the search "Time in progress" > 2d" also showed an issue with the value "1 day, 1 hour, 56 minutes".

What am I doing wrong?

There is an outstanding Bug regarding scriptrunner and duration fields.  -

@SMAtlassianMber Thank you for pointing this out to me.

Suggest an answer

Log in or Sign up to answer

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