In my defects module a child defect is created by a toolbar button named "CreateChildDefect", for this user have to select any defect (i.e. parent XYZ) in the Grid View (without opening the defect) and click on this "CreateChildDefect" button. Once the button is clicked a child defect XYZ-1 is created.

I have a situation where if a parent defect is opened by first user then any other user is not allowed to create a Child defect for the same parent unless until the same parent defect is closed by the first user.

Is it possible to capture some action for the opened parent defect and until that action is not false, the "CreateChildDefect" can not be executed on the same defect by any other user? Things should work globally like "Object locked by username" works.

Can anyone guide me on this implementaion.