4. Issue Management with AccuWork™

4. Issue Management with
AccuWork
The AccuWork experience includes setting up an issues database format (“schema”), creating issue records, querying the issues database, and using the “change package” integration between configuration management and issue management.
Setting up the Default Schema
The first step is identifying the schema you want AccuWork to use to record issues. You can create your own, but let’s use the default schema to get started.
1.
Select Admin > Schema Editor from the AccuRev main menu.
2.
3.
Click Yes (“Do you want to use the default schema?”).
4.
Click Ok (“Please note …”).
5.
Click Save (lower right-corner of Schema Editor tab).
Creating a Few New Issues
Once the AccuWork schema has been set up, you are ready to submit issues for enhancements and any bugs you find.
1.
Click the Create Issue button () on the AccuRev main toolbar.
Alternative: Select Issues > Create Issue from the AccuRev main menu.
2.
3.
4.
Click the Save and Close button () to save the issue record and close the tab.
5.
Creating a Query
1.
Click the View Issue Queries button () on the AccuRev main toolbar.
Alternative: Select Issues > View Issue Queries from the AccuRev main menu.
2.
The AccuWork Queries tab appears; the name of the depot you selected in the previous step is displayed in the tab.
3.
Click the New Query button () to create an empty new query.
4.
5.
6.
Set the second choice box value to greater than or equal to.
7.
Enter the number 1 in the third query box.
8.
The results of the query are displayed in the Query Results pane, on the right side of the Query tab.
You might decide that you want to display more information about the issues that your query returns. Add more fields now.
9.
Click the Set up Columns button () in the Query Results pane.
10.
a.
Select a field from the Available list (shortDescription, for example).
b.
c.
d.
11.
The name of the new query appears in the left (Query List) pane, which lists all the queries that you have created.
12.
Click the Save button () above the Query List pane to save your query.
Making a Query Your Default Query
If you want, you can designate any query as your default query. When you do, AccuRev runs this query automatically when you open the query tab.
1.
2.
3.
Click the View Issue Queries button () on the AccuRev main toolbar.
Alternative: Select Issues > View Issue Queries from the AccuRev main menu.
The query you just created runs automatically, because you set it as your default query.
Enabling the Built-in Integration Between AccuRev Configuration Management and AccuWork Issue Management
1.
Select Admin > Schema Editor from the AccuRev main menu (or return to the existing Schema Editor tab).
2.
3.
Go to the Change Packages tab.
4.
In the Change Package Results section (top part), click the Setup Columns button ().
5.
Select some fields from the Available list (Example: issueNum, shortDescription), and click the right-arrow button () to move the fields to the Selected list.
6.
7.
In the Change Package Triggers section (bottom part), click New Trigger button () in the toolbar.
A new window opens, in which you specify a condition, along with a query to be performed if that condition is satisfied when the integration is invoked.
8.
In the Condition section (top part), click Click here to add….
9.
PROMOTE_DEST_STREAM is in hierarchy <depot>
10.
In the Query section (bottom part), click Click here to add….
11.
issueNum greater than 0
This query selects all issue records.
12.
13.
Click Save (lower right-corner of Schema Editor tab).
14.
15.
16.
The integration evaluates the condition you defined in Step 8 (it is TRUE), then runs the query you defined in Step10. The selected records are presented as a list of issues to choose from.
17.
18.
Click the Open Issue button () on the AccuRev main toolbar.
Alternative: Select Issues > Open Issue from the AccuRev main menu.
19.
The issue appears in a new tab.
20.
Go to the Changes tab.
The files that you promoted are listed on this tab. The specific versions that you promoted are listed in the Version column.
Turning Off the Integration Between Configuration Management and Issue Management
1.
Select Admin > Schema Editor from the AccuRev main menu (or return to the existing Schema Editor tab)
2.
3.
In the Change Packages tab, locate the condition/query pair you created in the Change Package Triggers section and select it.
4.
Click the Delete Trigger button ().
5.
Click Save (lower right-corner of Schema Editor tab).
With no query to be invoked at Promote time, the integration is effectively disabled.

Borland