We need to configure workflow rules for the defect module.
Rule: you cannot close/cancel defect without selecting “Ready to test” status.
So only after “Ready to Test” is selected defect can be “Cancelled”/”Closed”.
I amnew toscriptingandneed help and I have writtenthis code, but the codeis missingsomething
isthere anything that canhelp :
Function Bug_CanPost
If Bug_Fields("BG_USER_03").Value <> "30 Ready to test" then
If Bug_Fields("BG_USER_03").IsModified = true then
if Bug_Fields("BG_USER_03").Value = "60 Cancelled" or Bug_Fields("BG_USER_03").Value = "70 Closed" then
Msgbox "You cannot close/cancel defect without selecting ""Ready to test" & vbCrLf & _
"So only after Ready to Test is selected defect can be Cancelled or Closed."
Bug_CanPost = false
end if
end if
end if
End Function
P.S. This thread has been moved from Community Feedback & Suggestions to Quality Center Support and News Forum.
-HP Forum Moderator