Note this is using YouTrack 2019.3 Build 62973 and TeamCity Enterprise 2019.1.4 Build 66526.
What I am trying to do is have YouTrack/TeamCity integration parse issues mentioned in VCS commits (GitHub) and automatically set a custom field in YouTrack with the build that contains the code changes for that issue.
When looking at the YouTrack help for TeamCity integration, it looks like this should be possible by processing related issues and applying a command to set the field. Unfortunately, I can't seem to get this to work correctly when trying to get it to automatically parse the issue IDs in the commit messages. If I set it to match a query, the builds are then set to issues matching the query (so I know the integration is working), but in our case, we can't set a query that will work correctly (because there is no way to query "issues where state was changed to 'Review' between these dates") so we need it to parse the issue IDs from the commit messages.