Hi,
I try to create a custom script field with a custom template which set the color of the field depending on the output value. In my case the value should be green if $value < 10 and yellow if $value > 10 < 20 and red if $value > 20. Is it possible to enter a code like this? What is the best solution for this Problem?
if $value < 10
<font color='green'>$value</font>
Best Regards
Robert
Hi RMA, this question has an accepted answer here: https://community.atlassian.com/t5/Adaptavist-questions/Scriptrunner-number-field-with-custom-formatting/qaq-p/1312409
Perhaps the crux is in the output data type.
Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.