Workflow - Multiple assignees
I'm working with the new Javascript workflows and i have a list of multiple Assignees. I want to ad a tag to the issue but only if I assign the issue to a user other then myself. But how to i get the selected items from a list using the new javascript workflow.
Please sign in to leave a comment.
Hello Cliff, to get a list of values from a multivalue field in an issue, you need to use the Set entity: https://www.jetbrains.com/help/youtrack/incloud/2017.2/v1-Set.html
Let us know if you have any further questions. Thanks!
Hello Liubov, Thanks for the quick response!
Hello Liubov,
Is there also a way to check the oldValues before the selection is made? For a field i can see that there is a property for that but if I console.log that for the set items the value is undefined.
Hi Cliff, you can write your logic using the `added` property to check the values that were added in the current transaction: https://www.jetbrains.com/help/youtrack/incloud/v1-Set.html#d186457e17