...
Status | ||||
---|---|---|---|---|
|
We have implement the Insight ObjectFacade API which now means that you are able to use it’s some new API classes that provides some methods to extract values from the Insight/Asset objects. This These can be used within both JavaScript (Script Field Processor, Script Rule and Script Pre-Proc Task) and Velocity (Templates and Custom Field Defaults).
Velocity Context available for Assets
Context name | Java page |
---|---|
objectFacade |
...
objectSchemaFacade | |
objectTypeAttributeFacade | |
objectTypeFacade |
...
Example uses with Object Facade classes
Status | ||||
---|---|---|---|---|
|
Below are some examples of how Insight/Asset objects values can be extracted within Velocity.
...
Code Block |
---|
Attribute: Value in attribute |
Example uses with Object Type Facade class
Status | ||||
---|---|---|---|---|
|
Find object type for all object connections made to a specific issue
...
Code Block |
---|
Object Name: Value Object Type: Connected Device |
Example uses with Object Schema class
Status | ||||
---|---|---|---|---|
|
Find all object schemas
This example will find the name of all object schemas that are configured within Jira.
Code Block | ||
---|---|---|
| ||
#macro(MacroName) #if($objectSchemaFacade.findObjectSchemaBeans()) #set($schemas = $objectTypeFacade.findObjectSchemaBeans()) #foreach($schema in $schemas) <p>Object Schema: $schema.getName()</p> #end #end #end |
...