Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Smart Values: Using Conditionals (IF) in .split(",") Text Variables

Asier Vadillo June 6, 2025

Given a Manual Trigger with 2 checkboxes:Screenshot from 2025-06-06 13-59-10.png

I want to create a field with the values that are selected in the manual trigger.

For that I did declare a variable named allReleases with value:
24Q4,25Q2

And after tried to define a new variable, filter this list with the selected fields in the userInput:
{{#allReleases.split(",")}}

   {{#if(userInputs.get({{.}}))}}  {{.}}{{/}}

{{/}}
But I get:

Unable to render smart values when executing this rule:
Could not extract smart value parameter: {{.: {{#allReleases.split(",")}}{{#if(userInputs.get({{.}}))}}{{.}}{{/}}{{/}}

 I don´t if it is possible or maybe there is another way to do it.
Thanks in advance

1 answer

1 accepted

2 votes
Answer accepted
Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 6, 2025

Hi @Asier Vadillo 

Some things I observe in what you show:

  • You do not need the extra double-curly brackets once inside a set of brackets
  • When inside of an iterator, no outside data is accessible.  And so when iterating over the split() of allReleases, the values of userInputs cannot be used.

 

What value do you want in the "field with the values that are selected in the manual trigger"?

 

Kind regards,
Bill

Bill Sheboy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
June 6, 2025

@Asier Vadillo -- I just saw you posted another, updated version of this question here:

https://community.atlassian.com/forums/Jira-questions/Is-it-possible-to-use-a-Manual-Trigger-with-multiple-inputs-and/qaq-p/3039232

Please close out this one to help the community focus on the later one.  Thanks!

Asier Vadillo June 9, 2025

yeah, thanks!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events