The way in which I had been carrying this out before, was putting Metadata into every individual CR and getting the query released for an stand out file. This program would browse the Metadata then create new posts with values inside them with respect to the CR Id number. It is possible to method of doing this backwards? Where whenever you alter the stand out sheet it may customize the CR? How must i start carrying this out? Links to obtain me began?


I determined 1 / 2 of the issue, just being able to access clearQuest or being able to make changes accordingly. Next I must obtain the xml from stand out and transfer it into clearQuest.

using ClearQuestOleServer;
using System.Runtime.InteropServices;

private void button1_Click(object sender, RibbonControlEventArgs e)
            String defectNumber = "L12345678";
            Session cqsession = new Session();

                cqsession.UserLogon(loginName, password, databaseName, sessionType, databaseSet);
                ClearQuestOleServer.IOAdEntity defect = cqsession.GetEntity("defect", defectNumber) as ClearQuestOleServer.IOAdEntity;

                cqsession.EditEntity(defect, "modify");

                String val = defect.GetFieldValue("User Data") as String;
                defect.SetFieldValue("UserData", "Test String");

                string result = defect.Validate();
                //if (defect.Validate() == null)
            catch (Exception error)
                int a = 1;