Thank you for contacting us. I'm happy to help you.
If by JavaScript, you mean the JavaScript Workflow API , then you can get a list of values this way: ctx.issue.project.findFieldByName('myfield').values. Refer to the related documentation to see more project field's methods and properties.
It will return a set of field values and their properties, including the ordinal property (the order of the value).
Hi!
I'm Sergey from the YouTrack team.
Thank you for contacting us. I'm happy to help you.
If by JavaScript, you mean the JavaScript Workflow API , then you can get a list of values this way: ctx.issue.project.findFieldByName('myfield').values. Refer to the related documentation to see more project field's methods and properties.
It will return a set of field values and their properties, including the ordinal property (the order of the value).
If any questions appear, let me know.
It's exactly what i've been looking for. Thanks!