TA的每日心情 | 开心 2019-2-1 16:33 |
---|
签到天数: 1 天 连续签到: 1 天 [LV.1]测试小兵
|
或者在workflow使用script editor 在defects bug_new那里增加以下脚本
Sub SetFieldApp( FieldName, Vis, Req, PNo, VOrder )
'Sets a field's appearance
With Bug_Fields(FieldName)
.IsVisible = Vis
.IsRequired = Req
.PageNo = PNo
.ViewOrder = VOrder
End With
End Sub
Sub WizardFieldCust_Add
If User.IsInGroup("Developer") Then
SetFieldApp "BG_BUG_ID", True, False, 0, 0
SetFieldApp "BG_DESCRIPTION", True, True, 0, 1
SetFieldApp "BG_DETECTED_BY", True, True, 0, 2
SetFieldApp "BG_DETECTION_DATE", True, True, 0, 3
SetFieldApp "BG_DETECTION_VERSION", True, True, 0, 4
SetFieldApp "BG_DEV_COMMENTS", True, True, 0, 5
SetFieldApp "BG_PROJECT", True, True, 0, 6
SetFieldApp "BG_REPRODUCIBLE", True, True, 0, 7
SetFieldApp "BG_RESPONSIBLE", False, False, 0, 8
SetFieldApp "BG_SEVERITY", True, True, 0, 9
SetFieldApp "BG_STATUS", True, True, 0, 10
SetFieldApp "BG_SUBJECT", True, True, 0, 11
SetFieldApp "BG_SUMMARY", True, True, 0, 12
SetFieldApp "BG_ACTUAL_FIX_TIME", False, False, 0, 13
SetFieldApp "BG_CLOSING_VERSION", False, False, 0, 14
SetFieldApp "BG_CLOSING_DATE", False, False, 0, 15
SetFieldApp "BG_ESTIMATED_FIX_TIME", False, False, 0, 16
SetFieldApp "BG_VTS", False, False, 0, 17
SetFieldApp "BG_PLANNED_CLOSING_VER", False, False, 0, 18
SetFieldApp "BG_PRIORITY", False, False, 0, 19
ElseIf User.IsInGroup("Project Manager") Then
...
同上,自己根据各个用户组自定义,第一个参数是指是否可见,第二个是是否必填,三是页码,4是顺序。 |
|