The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Copy entire form to text field via automation

Lennart Roeser
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!
January 12, 2024

Hello,

i am looking for a way to convert an entire form into a text field.

Lets say i have a form with multiple fields and question. Essentially, i want to move the entire form (labels, questions & answers) to a text field, lets say the description field of my issue.

I know i can access the form itself via smart values:

{{issue.properties."proforma.forms.i1"}} 

However, copying this over to a text fields gives me raw JSON.

Thanks!

 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
Eugenio Onofre
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 Champions.
January 12, 2024

Hi @Lennart Roeser

Welcome to the Atlassian Community!

I am afraid you will need ScriptRunner to parse the JSON and format it into a readable text format. The script would:

  • Extract each element from the JSON.
  • Format these elements into a human-readable string (with labels, questions, and answers).
  • Insert this string into the description field.

Please remember to accept this answer in case it helps you resolve your question as it may also help other community members in the future.

Regards,
Eugenio

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events