Get list of value for field with "Build" type

How can i get newest (last) value for build type field (JavaScript)?

2 comments
Comment actions Permalink
Official comment

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. 

 

Comment actions Permalink

It's exactly what i've been looking for. Thanks!

0

Please sign in to leave a comment.