Forums

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

Convert Comma separated data into Rows

harsha vardhan July 24, 2023

Hi Team,

We have a multi-text field where data is entered separated by a comma. I need this data to be populated into another field by converting it into rows with a bullet symbol in front of each value. I have tried a script that I was using in my Jira server under event-based actions of JMWE, but it didn’t work. Can anyone help me on this? Thanks in advance.

1 answer

1 accepted

1 vote
Answer accepted
David Fischer
Community Champion
July 24, 2023

Hi @harsha vardhan 

on Jira Cloud, you can still use the same post-function, either in a transition or an event-based action. But the syntax of the Value will be different:

{% for l in issue.fields["text field"].split(",") %}
* {{l}}
{% endfor %}

Of course, the destination text field should be a multiline text field with the wiki renderer selected in the Field Configuration (just like on Server/DC)

harsha vardhan July 25, 2023

Thanks @David Fischer ,it worked.

Suggest an answer

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

Atlassian Community Events