We have a requirement in our Company, the Manager wants to 'Close' all the defects in Quality Center by himself in bulk. He wants the testers to mark the status as 'Fixed', and which ever defects are in 'Fixed' status, he wants to update or change the status of all the defects at once to 'Closed'.
I tried doing it from this code which I found from a different forum, but it does not work:
public bool UpdateBugs(string targetStatus, string comments, string userName)
bool result = false;
foreach (TDAPIOLELib.Bug thisbug in this._bugList)
thisbug.Status = targetStatus.ToString();
if (comments.Trim().Length != 0)
StringBuilder stb = new StringBuilder();
if (thisbug["BG_DEV_COMMENTS"] != null)
Perhaps I am over simplifying this but if all you want to do is a bulk update of the status, why not use the Find/Replace functionality to do the updates? I am pretty sure this works in versions as far back as 8.2. I use this all the time to update fields in the Defects and Test Lab modules.