Closed Melkaz closed 4 months ago
Could we add a function (e.g. startsWith) to transform this syntax:
startsWith
"{{ outputs['my-task'].outputFiles | jq('with_entries(select(.key | startswith(\"my-folder/\")))') | first }}"
into: "{{ outputs['my-task'].outputFiles | startsWith('my-folder/') | first }}"
"{{ outputs['my-task'].outputFiles | startsWith('my-folder/') | first }}"
Thanks 🌈
done in 0.17.0 that will be released today https://develop.kestra.io/docs/concepts/expression/filter/string#startswith
Feature description
Could we add a function (e.g.
startsWith
) to transform this syntax:"{{ outputs['my-task'].outputFiles | jq('with_entries(select(.key | startswith(\"my-folder/\")))') | first }}"
into:
"{{ outputs['my-task'].outputFiles | startsWith('my-folder/') | first }}"
Thanks 🌈