Hi Team,
I have scripted field called "Risk Level(Calculated)
I have written down the script which populates the value of Risk Level(Calculated) depending on the formula.
When I write down the JQL such as:
Please find attached screenshot.
Please let me know the solution for this.
I need =,<,> operator for it.
Regards,
Neeta Jain
Did you create the calculated field with ScriptRunner or JMCF?
Hi David,
I have created the calculated field with scriptrunner.
Regards,
Neeta Jain
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Scriptrunner scripted fields have an "output template" which effectively tells Jira what type of field the result should be seen as.
For your field, I suspect, as John does, that you chose "text", and your code is returning something that Java can interpret as a string.
I think you need a numeric output, as you want to use larger than or less than.
To change over, you will need to:
You will then be able to use >=< operators (but not ~ any more)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nic,
Thanks for your quick response.
It worked after changing it to Number range.
Thanks so much for your help.
Regards,
Neeta Jain
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Neeta,
Based on the list that you see, I would say that your field (Risk level) is a text field and not a number field. Therefore you will not see the =, <, > operators.
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.