I have two custom Text Field - (Single Line) fields in my project. Each field contains a number.
I am using a Scriptrunner Fast-Track Post Function to transition my workflow when Field Value 1 is larger than or equal to Field Value 2. However, when I cannot determine how to set the Condition of the Fast-Track Post Function to accomplish this.
For example, right now I am trying:
cfValues['Custom Field 1'] >= cfValues['Custom Field 2']
The script above results in the following message:
Cannot find matching method java.lang.Object#compareTo(T).
When I ignore the static type checking message, I can get the Fast-Track to work. But it is not working correctly--based on the logic in the script above. Does anyone have another way to approach this?