Hello there,
I have defined a custom scripted field.
the formula is:
return ("date of creation" - "Date of taking into account")
So i have some negative value like -1, -27 etc..
When i want to make a custom filter to search all issues with my scripted field value equals to -1, all issues are return.
I have tried :
"script field" ~ -27
"script field" ~ "-27"
...
Nothing works.
Does it is possible to reach my needs? May i am missing something?
Unfortunatly google doesn't help me so far.
Thanks for your feedback
What App is providing scripted fields?
Hello Nic,
i used Add on Script Runner.
Sorry it was too obvious for me.
Olivier
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, there's a few that do scripted fields, and the response might be different for each App.
When you defined this field, did you tell Jira it was a number field, or something else (string etc)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nic,
You question rang a bell !
i found out that i have to change the search template on my Script field.
Furthermore i havedefine the return value as an integer.
Works like a charm !
Olivier
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ahh, excellent. I asked because the output templates determine the types of search.
A text field gives you a text search, but they're a bit rubbish on exact matching and fuzzy searches with numbers in my opinion. While stuff like "~ flibble" or "~ pingu" will get you searches related to penguins, "~ number" often returns nothing, even when the number you give it is exact!
Number fields don't have fuzzy searches, but you can do =, < and > with them, which I usually find more useful!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.