Beispiel #1
0
        /// <summary>
        /// Add new comment to work item
        /// </summary>
        /// <param name="teamProjectName"></param>
        /// <param name="workItemID"></param>
        /// <param name="message"></param>
        private static void AddWorkitemComment(string teamProjectName, int workItemID, string message)
        {
            var comment = WitClient.AddCommentAsync(new CommentCreate()
            {
                Text = message
            }, teamProjectName, workItemID).Result;

            Console.WriteLine("{0} - {1}\n{2}", comment.CreatedDate, comment.CreatedBy.DisplayName, comment.Text);
        }