Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
72:custom_reports_getting_started_creating_reports [2019/02/15 20:05] – ext-bkkr | 72:custom_reports_getting_started_creating_reports [2024/02/15 00:00] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 15: | Line 15: | ||
==== Create a Stages Data Source ==== | ==== Create a Stages Data Source ==== | ||
- | - | + | - Navigate to the **Outline View** |
- | + | - Select **Stages Data Source**. Enter a name for the data source. | |
- | Navigate to the **Outline View** on the lower left side and right-click on the **Data Source **entry and select **New Data Source**. | + | |
- | + | ||
- | - | + | |
- | + | ||
- | Select **Stages Data Source**. Enter a name for the data source. | + | |
- | + | ||
- | - | + | |
- | + | ||
- | Click **Next**. | + | |
- | + | ||
- | - | + | |
- | + | ||
- | If you do not use the PkitMetrics.xml you need to specify the Stages server URL and enter a Stages username and password and click **Finish**. | + | |
- | + | ||
- | - | + | |
- | + | ||
- | If you use the PkitMetrics.xml, | + | |
- | + | ||
- | - | + | |
- | + | ||
- | Insert the [[: | + | |
- | + | ||
- | ==== Create a Data Set ==== | + | |
- | + | ||
- | - Navigate to the **Outline View** | + | |
- | - Select a name for the Data Set, and click **Next**. | + | |
- | - Enter the column names and data types | + | |
- | - <font inherit/ | + | |
- | - <font inherit/ | + | |
- Click **Next**. | - Click **Next**. | ||
- | - Click **Edit Script** | + | - If you do not use the metrics.xml you need to specify |
- | - Enter the following script into the editor | + | - If you use the metrics.xml, it is necessary |
- | + | - Insert the [[:72: | |
- | < | + | |
- | var artifacts = | + | |
- | pkit.getCurrentProject().getEntities(" | + | |
- | [0].getEntities(" | + | |
- | for (i = 0; i < | + | |
- | var artifacts_instances = | + | |
- | | + | |
- | for (j = 0; j < | + | |
- | var artifacts_revisions = | + | |
- | | + | |
- | if (artifacts_revisions.length == 0) { | + | |
- | dataset.setColumnValue(" | + | |
- | } else { | + | |
- | | + | |
- | | + | |
- | } | + | |
- | | + | |
- | | + | |
- | | + | |
- | } | + | |
- | } | + | |
- | </ | + | |
- | + | ||
- | To finish | + | |
- | - Enter a //Current metric //in the text input field. The current metric | + | |
- | - //Note: The current metric value is needed for the preview, if the script | + | |
- | - Click **Finish** | + | |
==== Create a Data Set ==== | ==== Create a Data Set ==== | ||
Line 83: | Line 27: | ||
- Select a name for the Data Set, and click **Next**. | - Select a name for the Data Set, and click **Next**. | ||
- Enter the column names and data types | - Enter the column names and data types | ||
- | - <font inherit/ | + | - Documentnamewith |
- | - <font inherit/ | + | - Statewith |
- Click **Next**. | - Click **Next**. | ||
- Click **Edit Script** | - Click **Edit Script** | ||
- Enter the following script into the editor | - Enter the following script into the editor | ||
- | - | ||
< | < | ||
Line 111: | Line 54: | ||
} | } | ||
} | } | ||
+ | |||
</ | </ | ||
- | - To finish the editing of the script, click **OK**. | + | To finish the editing of the script, click **OK**. |
- | | + | |
- | - //Note: The current metric | + | Enter a //Workspace Path //in the text input field. The //Workspace Path// |
- | - Click **Finish** | + | - //Note: The Workspace Path value is needed for the preview, if the script contains the statement // |
+ | - Click **Finish** | ||