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?
Also, I see this note on the scriptrunner docs page. "Use the Duration Searcher. For the template choose Duration." Any idea what this means?
Did you also assign a search term to the field? I found this in their docs.
(Optional) Enter a Search Term if you want to use Scripted Fields when searching for issues with JQL. There are several conditions that must be met for Search Terms, including: they must be unique, case sensitive, and contain no whitespace. Existing search terms/Jira custom field names cannot be used.
Hello Community! I hope you've been enjoying the 🍂Apptoberfestivities🍂 (I know I have!) The event is heating up next week with a series of virtual events that we're calling the 🍻🍂Partner App ...
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