Forums

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

JIra Rule Automation with custom lists

Frederico Marques
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 21, 2025

Create a list using a string.split("<p>"). how can i spare and get the value per position using only smart values in a new variable.

{{#cleanList}}<tr> <td style="text-align: center;">{{index}}</td> <td> <strong>{{"value from index"}}</strong> </td>  </tr> {{/}}

list
potatoes<p>carrots<p>Onions

expected 
|0|potatoes|
|1|carrots|
|2|Onions|

getting

|0||
|1||
|2||

1 answer

2 votes
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.
November 21, 2025

Hi @Frederico Marques 

When iterating a smart value list with unnamed attributes, the current item may be referred to directly as {{.}} or used as an implied value in some functions.

For example:

  • action: create variable
    • variable name: varMyList
    • smart value: 
potatoes<p>carrots<p>Onions
  • action: log (for the expression you show in the question)
{{#varMyList.split("<p>")}}
<tr>
<td style="text-align: center;">{{index}}</td> <td> <strong>{{.}}</strong> </td>
</tr>
{{/}}

 

To learn more about list iteration, please see these combined examples in the documentation:

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-lists/#Combined-function-examples

 

Kind regards,
Bill

Suggest an answer

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

Atlassian Community Events