public async Task ApplyCommand()

in src/YouTrackSharp/Issues/IssuesService.cs [188:221]


        public async Task ApplyCommand(string issueId, string command, string comment = null, bool disableNotifications = false, string runAs = null)
        {
            if (string.IsNullOrEmpty(issueId))
            {
                throw new ArgumentNullException(nameof(issueId));
            }
            
            if (string.IsNullOrEmpty(command))
            {
                throw new ArgumentNullException(nameof(command));
            }

            var commandList = new CommandList()
            {
                Query = command,
                Issues = new List<Generated.Issue>() {new Generated.Issue() {IdReadable = issueId}}
            };
            if (!string.IsNullOrEmpty(comment))
            {
                commandList.Comment = comment;
            }
            if (disableNotifications)
            {
                commandList.Silent = true;
            }
            if (!string.IsNullOrEmpty(runAs))
            {
                commandList.RunAs = runAs;
            }
            
            var client = await _connection.GetAuthenticatedApiClient();
            
            await client.CommandsAsync(false, "id", commandList);
        }