Hi!
I have a page that contains labels (e.g. label1, label, example, label-something)
I want to use smart value to extract labels that contain "label" in name
I tried to use:
but for both cases rule return nothing.
Can someone help me with this?
Regards,
Seba
Hey @Sebastian Krzewiński ~ what about: {{page.labels.name.match("*label*")}}?
Yours {{page.labels.name.match("*label*")}} will not work. {{page.labels.name}} return a list/array and match() can't work on it.
I figure it out and working formula looks like below:
{{#page.labels}}{{#if(equals(name.match(".*(label).*"), "label"))}} {{name}} - ({{id}}) {{/}};{{/}}
In loop I'm checking each label name and check if label name contain label. If yes, I'm displaying name and id.
Thanks for your reply and help!
Regards,
Seba
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Wow. Nice job, @Sebastian Krzewiński !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.