New Reply

How do I update (e.g., add a comment to) all the issues in YouTrack associated with my release? I tried this, but it did nothing:

Add-Issue-Comment
(
    Text: Testing BuildMaster/YouTrack integration. $ApplicationName $ReleaseNumber.$PackageNumber -> $EnvironmentName
);

I see there's also YouTrack::Add-Comment but it requires you to specify a single YouTrack issue ID. Not sure how useful that can possibly be -- I need to update all (or a set) of issues.

Product: BuildMaster
Version: 5.6.11

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
    );
}

Answer Details

Preview:

Post Reply