You can add custom conditions in CAE editor in a new custom artifact element by using SQL
as the query language.
About this task
Custom conditions can be added to the custom artifact elements using the SQL by the following
steps:
Procedure
- In the main menu, go to in the page.
- Click Create custom artifact element. As a part of
Initial data for custom artifact element
- Choose query type, data source, select
the scope, choose the artifact element
- Click OK.
Based on the selection, the Engineering Insights application generates the initial SQL
query.
- In SQL query section on editor page, add the condition as shown in the following
format
$if(workitem_id)$
AND (rtc_cm_WorkItem1.SHORT_IDENTIFIER = '$workitem_id$')
$endif$
- In the Conditions section of the sidebar, click Refresh
.
- The Engineering Insights application auto-populates some required fields. You
can add the values to the fields that are not defined. For example, set the
Label for the custom condition.
- Click Preview to view the applied custom conditions in action.
Here, you need to mention the workitem ID and Run
query to view the results.
- On the results page, click Save to see the changes in created
custom artifact element.