Hi,
I want to restrict the user to enter comments, When the Resolution status is changed to Rejected.
I am using the below code in " Function Defects_Bug_CanPost", The issue is I am getting the pop-up message but the defect is posting without entering comments.
If Bug_Fields("BG_USER_05").IsModified and _
Bug_Fields("BG_USER_05").Value = "Rejected" and _
not Bug_Fields("BG_DEV_COMMENTS").IsModified then
Defects_Bug_CanPost = False
msgbox "Please enter a Comment to explain why the defect has been Rejected."
Else
Defects_Bug_CanPost = True
End If
ALM Version: 11.0
Please help.
Thanks,
Gcv