Links variables value manipulation #7487
-
Is it possible to add the ability to manipulate variables in references, for example, to use string functions. Now there are several variables links: |
- name: Workflow link
scope: workflow
url: https://logs-storage/${status.startedAt.Y}/${status.startedAt.m}/${status.startedAt.d} is converted to |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Is |
Beta Was this translation helpful? Give feedback.
-
For anyone else wondering how to properly use |
Beta Was this translation helpful? Give feedback.
-
Sorry that this never got a proper answer. You cannot do any manipulation of the I'm not entirely sure why it was designed as such (it predates me), but the substitution is done in the front-end, which is notably in TS, not Go. Whereas Workflow variables are substituted in the Go back-end. So they don't share code. That's also why the syntax is different. In the future, it may be a good idea to use the same expression templating system by the Server here, but that would be a breaking change at this point in time. |
Beta Was this translation helpful? Give feedback.
Sorry that this never got a proper answer. You cannot do any manipulation of the
links
configuration at this time. It is a static string with substitution only, no expressions.I'm not entirely sure why it was designed as such (it predates me), but the substitution is done in the front-end, which is notably in TS, not Go. Whereas Workflow variables are substituted in the Go back-end. So they don't share code. That's also why the syntax is different.
Notably, this is a configuration of the Server, not of a Workflow the Controller touches, so it is the odd one out in more ways than one.
In the future, it may be a good idea to use the same expression templating system by the Server here, but…