Updating the CHG_STATUS_HISTORY table
If you are using BMC Analytics for Business Service Management to report on BMC Change Management, you must use the Universe Design Tool to update the CHG_STATUS_HISTORY derived table with the correct schema ID.
To update the CHG_STATUS_HISTORY table
Run the following query on the BMC Remedy AR System database:
select schemaID from arschema
where name='CHG:Infrastructure Change'The query returns the schema ID for the CHG:Infrastructure Change form (for example, 1111).
- Using the BusinessObjects Universe Design Tool, import the ITSM universe.
- Select Tools > List of Derived Tables.
- In the List of Derived Tables dialog box, select the CHG_STATUS_HISTORY table from the list of tables and click Edit.
In the Derived Tables window, modify the SQL expression by replacing all 13 instances of originalschemaID with the schema ID returned in step 1 .
Use the following example, where the original schema ID is 1199 and the schema ID from step 1 is 1111.SELECT entryid,'Draft' AS Status_Value,T0 AS UpdatedTime,U0 AS
UpdatedBy,DATEDIFF(ss,dbo.fn_adjusted_date(T0),dbo.fn_adjusted_date(T1))AS
TimeSpend_In_Seconds
FROM h1199 where T0 is not nullThe SQL expression is now as follows:
SELECT entryid,'Draft' AS Status_Value,T0 AS UpdatedTime,U0 AS
UpdatedBy,DATEDIFF(ss,dbo.fn_adjusted_date(T0),dbo.fn_adjusted_date(T1))AS
TimeSpend_In_Seconds
FROM h1111 where T0 is not null- Click Check Syntax.
- In the Derived Tables window, click OK.
- In the List of Derived Tables dialog box, click OK.
- Click Save.
- Select File > Export.
- In the Export Universe window, select the ITSM universe, and click OK.
- Close the Universe Design Tool.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*