Hi,
I have a task to sycnronize defects between several ALM projects. Since defects IDs of the same defect will be different in different projects, I created two user fields in a defect entity to capture an "ALM project" where a defect is originated and "Original Defect ID".
I need to populate the "Original Defect ID" field at time of defect creation, so the field is populated (available in database) after the new defect is saved.
I tried getting this inforamtion in the "Bug_AfterPost" function, however the defect ID number is not updated in a database at this time. From the manuals I figured out that this event is not intended to update any defect information. The right place to update the defect fields before save is the "Bug_CanPost" function. However, it looks like the defect ID information is not available at that time.
Does anybody know a solution how to get the defect ID populated in a user defined field right after a new defect is created?
Thanks,
Andrei