JSON Configuration Variables

I am using a slightly older version of Octo on-prem (2019.7.12).

Using JSON Configuration Variables feature, I am trying to update a value within an object where there may be multiple instances of the object in an array.

For example:

    "Name": "abc",
    "Server": [{
            "Image": ""
        }, {
            "Image": ""

I can see that it’s easy to update a single element. For example, using this variable:

However, the number of items in this array can vary from release to release and I’d like to update all elements in the array. But, I can’t figure out how to do so.

I am looking for something like this, but it doesn’t seem to work:

Is this use case supported, perhaps with a different syntax?

Thanks for your time,

Hi Robert,

Thanks for reaching out, that is a great question!

Unfortunately it doesn’t look like this is possible, as each replaced variable looks to require it’s own index. If you are interested in seeing exactly how it works, our Calamari code is open source!

I’ve kicked off the discussion internally for getting this added in as I think it is something we could definitely support with our Structured Variable Replacement feature and would be a great addition.

I’ll keep you posted with any updates regarding it, thanks for raising this with us!

Best Regards,

Hi @Robert.Davis.SG,

Just a quick update with a public Github issue to track any discussions here:

Feel free to reach out if you have any questions at all!

Best Regards,

Thanks @finnian.dempsey!

It would definitely be a useful feature and I do hope it can be supported in the near future.

I’ll follow its progress on GitHub.

Thank you for the prompt and helpful response!