Hey,
i got a state of an Issue which has two outgoing transitions (Transition A & Transition B). Regarding the value of a custom field (Type: number field) I want either Transition A or Transition B shown if the value is 50 or smaller. My try was using Scriptrunners Simple scripted condition:
cfValues['custom field'].values <= '50'
Hi Carlos,
thanks for the fast reply. I've changed the code as you suggested and got the following error:
[Static type checking] - Cannot find matching method java.lang.Object#compareTo(int). Please check if the declared type is right and if the method exists. @ line 1, column 1.
Probably got a problem with the data type?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, can you check the value in the custom field? You can also test (preview) the script when configuring the condition to validate it.
Cheers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Carlos,
Thank you for the tips. It's working fine.
Cheers Christian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Guys, just in case you are dealing with a Cascading custom field. I found the below to work nicely!
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.