Forums

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

linebreak with {{field.asJsonStringArray}}

J D
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!
June 28, 2025

I was able to make automation which goal is just create work items for each value in description separated by breakline. but for some reason i'm getting many more values in output, could you please help me with that issue?photo_2025-06-28_23-22-11.jpg

1 answer

1 vote
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 28, 2025

Hi @J D -- Welcome to the Atlassian Community!

What does the content / structure of your Description field look like?

And, why are you using the asJsonStringArray function?  That is normally used to build a JSON expression as text to perform a work item update.  That function does not produce a JSON expression which allows referencing attributes.

 

When you want to use data in a Description field delimited by newlines, please use {{issue.description.split("\n")}} to create the list source for the Advanced Branch.  And then use other text functions to further parse the results to check the content and create the work items.

And if you believe the parse content contains well-formed JSON, you could attempt to convert it (for referencing attributes) with the function jsonStringToObject:

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-text-fields/#jsonStringToObject--

 

Kind regards,
Bill

Suggest an answer

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

Atlassian Community Events