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.
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.