Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Status
colourYellow
titleSINCE 4.1.12

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

...

...

Example uses with Object Facade classes
Status
colourYellow
titleSINCE 4.1.12

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
colourYellow
titleSINCE 4.1.29

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
colourYellow
titlesince 4.1.29

Find all object schemas

This example will find the name of all object schemas that are configured within Jira.

Code Block
breakoutModewide
#macro(MacroName)
 #if($objectSchemaFacade.findObjectSchemaBeans())
  #set($schemas = $objectTypeFacade.findObjectSchemaBeans())
#foreach($schema in $schemas)
 <p>Object Schema: $schema.getName()</p>
  #end
 #end
#end

...