public void copyTasks(string ttids) { string[] ids = ttids.Split(','); foreach (string id in ids) { Defect old = new Defect(int.Parse(id)); Defect d = new Defect(Defect.New(old.SUMMARY)); d.From(old); d.DISPO = old.DISPO; d.Store(); } }
public int copyTask(int ttid) { Defect old = new Defect(ttid); Defect d = new Defect(Defect.New(old.SUMMARY)); d.From(old); d.AUSER = ""; d.ESTIM = 0; d.ORDER = -1; d.Store(); return(d.ID); }