We have a field on all our projects called "Repositories" which is an enum field with all the 280 repositories we maintain (and growing).
When our teams work on a ticket in YouTrack, they may add a pull request to the card (multiple in fact - for us, a story can span multiple repositories).
I've tried to create a workflow that identifies if a Pull Request has been added to a YouTrack card comment, and if it has, add the corresponding Repo name to the Repositories field.
Currently, this yields an error.
The workflow is attached below, and the error is as follows.
I've identified the breaking change is the "Repositories.add(repo_name)" line. I've tested the workflow using a Pull requests contained in the array of values, and with an extracted repo_name value thyat matches an existing Value in the fieldset.
I do not want to write a script that has 280 if statements.