我想写个脚本,就是当bug 状态为 open ,优先级(BG_PRIORITY)必填,自动指派给(BG_USER_02)zhangsan.
以下是我写的,但是有执行不起效果。
Sub Bug_FieldChange(FieldName)
On Error Resume Next
if FieldName="BG_STATUS" then
if Fields("BG_STATUS").Value = "Open" and Fields("BG_PRIORITY").Value <> null then
Fields("BG_USER_02").Value = "zhangsan"
end if
end if
WizardListCust ' Added by wizard
On Error GoTo 0
End Sub