Im creating a subtask via script runner depending on a custom field (numeric field). It shouldnt create it if the value is 0.
Condiition:
(cfValues['Custom Field'] as int) != 0
Examples like 0.9 or -0.9 are not creating sub tasks either. Can any please advise.
Thanks
Community moderators have prevented the ability to post new answers.
It's the casting of the double to an int. 0.9 as an integer is 0.
I suspect you can simply remove the cast (drop the "as int")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.