Skip to content

Navigation expressions not working? #72

Description

@asmaier

I have the following simple.json file:

{
  "colors": [
    {"name": "red"},
    {"name": "green"},
    {"name": "blue"}
  ]
}

and a simple_template.xlsx with expressions like

{{atColor = colors:at(1)}}
 
My favorite color is {{atColor.name}}.
 
[[colors.name]]
 
[[colors:at(0).name]]
 
[[colors:top(2).name]]

I run it like java -jar templater-json.jar simple_template.xlsx simple.json simple.xlsx
But in the output simple.xlsx I can only see that [[colors.name]] gets replaced:

{{atColor = colors:at(1)}}
 
My favorite color is {{atColor.name}}.
 
red
green
blue
 
[[colors:at(0).name]]
 
[[colors:top(2).name]]

It seems like all the navigation expressions are ignored. Am I doing something wrong here? Or are navigation expressions not supported by templater-json.jar ?

simple_template.xlsx
simple.json
simple.xlsx

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions