Hello Glenn,
The next version of the YouTrack extension will include a Find-Issues operation, so you'll be able to do:
YouTrack::Find-Issues
(
Credentials: MyYouTrackCredentials,
Project: IT,
Filter: "version: $ReleaseNumber -resolved",
Output => @IssueIDs
);
foreach $id in @IssueIDs
{
YouTrack::Add-Comment
(
Credentials: MyYouTrackCredentials,
IssueId: $id,
Comment: Testing BuildMaster/YouTrack integration. $ApplicationName $ReleaseNumber.$PackageNumber -> $EnvironmentName
);
}