Skip to content

No way to access key when iterating over certificate variables (and probably also other complex variables) #66

@chrischu

Description

@chrischu

In the documentation (https://octopus.com/docs/projects/variables/variable-substitutions#VariableSubstitutionSyntax-Iteratingoversetsofvalues) it is stated that I can access the key of an iteration by just using the iteration variable,
e.g. for

#{each variable in Variables}
Key=#{variable} 
#{/each}

with variables like this:

Variables[a] = 5
Variables[b] = 7

the output is

Key=a
Key=b

However, when iterating through complex variables (e.g. certificates) there seemingly is no way to access the key, .e.g.
when using the same code but with the following variables:

Variables[a] = (Certificate with ID Certificate-1)
Variables[b] = (Certificate with ID Certificate-2)

the output is

Key=Certificate-1
Key=Certificate-2

Is there any way to access the key ("a"/"b" in this example) when iterating over complex variables?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions