Looking for a workflow script that will prompt a user to complete a Closure Reason from a list when a defect status of 'Closed' is applied.
If possible user is not allowed to exit defect until 'Closure Reason' is selected.
Try this in the Defect module script:
BG_USER_XX is the DB column of Closure Reason
On Error Resume Next
If Bug_Fields("BG_STATUS").IsModified and _
Bug_Fields("BG_STATUS").Value = "Closed" and _
len(Trim(Bug_Fields("BG_USER_xx").Value))= 0 then
Bug_CanPost = False
MsgBox "When the defect is closed, the Closure Reason field MUST BE filled!!! ",,"Warning Message"