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

1 vote
Answer accepted
Eugenio Onofre
Community Champion
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

Suggest an answer

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

Atlassian Community Events