Hello,
I am trying to distinguish two different fix version types by comparing character length.
for example fix versions value is 1.12.7.1
This statement returns true with value 1 regardless of the value of fix versions field
(issue.fixVersions.length == 1)
I would appreciate If you have any idea whats going on :) I want it to return false if the version character length is less then 8 characters.
Fix versions is not a string, it's a list of versions. You're getting 1 back from .length when there's one item stored in it.
You'll need to work on the basis that the result is an array of options (even if there's only one item, which is not always the case - it supports multi-select), extract the name of each option in the list, and look at the length of those strings.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.