P. 1
Workflow Example - How to Hide AndOr Remove a Defect Status in ALM v11

Workflow Example - How to Hide AndOr Remove a Defect Status in ALM v11

|Views: 82|Likes:
Published by Aylin Sakar
Workflow Example - How to Hide AndOr Remove a Defect Status in ALM v11
Workflow Example - How to Hide AndOr Remove a Defect Status in ALM v11

More info:

Published by: Aylin Sakar on May 25, 2013
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

01/06/2014

pdf

text

original

Workflow Example - How to Hide And/Or Remove a Defect Status in ALM v11

Summary
This workflow example demonstrates how to omit the Defect status code “Reopen” from the list of available status values. This example assumes you are a Project Administrator proficient with programming skills, proficient in vbscript, Quality Center objects and methods. *** It is necessary to read and accept the ‘Disclaimer’ section at the end of this document. ***

Business Rules
When a user enters the Defect module, the “CUST_Status” list is created. The “CUST_Status” list is populated from the “Bug Status” list. All the statuses from the list “Bug Status” are replicated except for “Reopen”. To omit a different status, just replace update the v_omit_status variable with the status you wish to omit. The “CUST_Status” list is assigned to the Defect status field “BG_STATUS” when the Bug_New and Bug_MoveTo subroutines are triggered. 6) DO NOT IMPLEMENT IF USING DEFECT STATUS TRANSISITION RULES 1) 2) 3) 4) 5)

Implementation
STEP 1 – Update the EnterModule Subroutine 1) 2) 3) 4) Navigate to Workflow customization – Tools / Customize / Workflow / Script Editor Select the Script Editor tab. Select “Project Scripts / Common Script / EnterModule subroutine. Update the subroutine with the highlighted code below.
Sub EnterModule On Error Resume Next . . . . . . If ActiveModule = "Defects" then CUST_Status_List End If . . . . . . On Error GoTo 0 End Sub

Page 1

List("Bug Status") set root = cl.Name nlroot.Name) next for each child in root.Name) End If next cust.AddChild(child.Name nlroot.How to Hide And/Or Remove a Defect Status in ALM v11 STEP 2 – Create the Following New Subroutine 1) 2) 3) 4) Navigate to Workflow customization – Tools / Customize / Workflow / Script Editor Select the Script Editor tab.Name <> v_omit_status then Msgbox "Add-" & child.RootNode for each child in nlroot.RootNode If not clists. Create the “CUST_Status_List” subroutine with the code below in the Common Script area.Workflow Example .IsListExist("CUST_Status") then clists.AddList ("CUST_Status") End If set nl = clists.Customization set clists = cust.commit Set Set Set Set Set Set cust = Nothing clists = Nothing cl = Nothing root = Nothing nl = Nothing nlroot = Nothing End Sub Page 2 .List("CUST_Status") set nlroot = nl. Sub CUST_Status_List v_omit_status = "Reopen" set cust = TDConnection.RemoveChild(child.Children Msgbox "Remove-" & child.Children If Child.Lists set cl = clists. Select “Project Scripts / Common Script.

Log Out. Select “Project Scripts / Defects Module Script / Bug_New Update the subroutine with the highlighted code below. If prompted to save select Yes.Field("BG_STATUS"). . End Sub STEP 5 – Save 1) 2) 3) 4) From the Script Editor toolbar Select File / Save. omit. .Workflow Example . TDConnection. Status.Field("BG_STATUS"). Select “Project Scripts / Defects Module Script / Bug_MoveTo Update the subroutine with the highlighted code below. OTA. remove Page 3 . Close the Script Editor Window. Lists. Keywords Defect.How to Hide And/Or Remove a Defect Status in ALM v11 STEP 3 – Update the Bug_New Subroutine 1) 2) 3) 4) Navigate to Workflow customization – Tools / Customize / Workflow / Script Editor Select the Script Editor tab.List = Lists("CUST_Status") . then Log In to the Quality Center project to Test. Select Major Change if prompted.List = Lists("CUST_Status") . . Workflow. Sub Bug_New Bug_Fields. Quality Center. List. . Click the Return button to Return to Quality Center. End Sub STEP 4 – Update the Bug_MoveTo Subroutine 1) 2) 3) 4) Navigate to Workflow customization – Tools / Customize / Workflow / Script Editor Select the Script Editor tab. Sub Bug_MoveTo Bug_Fields.

The decision to use the information contained herein is done at your own risk.Workflow Example . The appropriate system technical resources for your enterprise should perform all customization activities. Use the results and knowledge garnered from the Test Environment experience to create a customized Production Deployment Plan for your own environment. the sole responsibility for modification and maintenance of the logic is yours and NOT that of the Support Organization. Always ensure you have a current backup before implementing any solution. It is imperative to perform and thoroughly validate ALL modifications in a Test Environment. The intent of the information provided here is for educational purposes only. As such. the topics in this document are only guidelines NOT a comprehensive solution. Be aware that HP Support does not provide troubleshooting support for the custom programming implemented by the customer.How to Hide And/Or Remove a Defect Status in ALM v11 Disclaimer While this example may meet the needs of your organization. This example DOES NOT state or in any way imply that the information conveyed herein provides the solution for your environment. Best Practice dictates NO direct changes to be made to any production environment. The support organization is NOT responsible for any issues encountered as a result of implementing all or any part of the information contained or inferred herein. Page 4 . as your own environment will be different.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->