how to prefill a jira story with values incl line breaks

Immo Wetzel November 21, 2017

I try to prefill a jira request from a confluence page with and formular button.

but the description part is not correct handled.

code from confluence page

<form action="http://jira.mycomp.com/secure/CreateIssueDetails!Init.jspa" align="center" target="_new" style="margin: 15px;">
   <input type="hidden" name="pid" value="12690"></input>
   <input type="hidden" name="issuetype" value="27"></input>
   <input type="hidden" name="priority" value="5"></input>
   <input type="hidden" name="assignee" value="bart"></input>
   <input type="hidden" name="customfield_16791" value="homer"></input>
   <input type="hidden" name="description" value="
{panel:title=User Story}\
\
\{panel}
\{panel:title=Detailed Description}
\
\{panel}
\{panel:title=Security impact description}
\
\{panel}
\{panel:title=Acceptance criteria}
\
\{panel}"></input>
   <input type="Submit" value="new US for our Team" style="font-weight:bold; font-size:22px; background-color:#4f81bc; color:white; border: 1px solid #455b78;"> </form> 

but the description part is always shown in jira as:

 %7Bpanel%3Atitle%3DUser Story%7D%5C%0D%0A %5C%0D%0A%5C%7Bpanel%7D%0D%0A%5C%7Bpanel%3Atitle%3DDetailed Description%7D%0D%0A%5C %0D%0A%5C%7Bpanel%7D%0D%0A%5C%7Bpanel%3Atitle%3DSecurity impact description%7D%0D%0A%5C %0D%0A%5C%7Bpanel%7D%0D%0A%5C%7Bpanel%3Atitle%3DAcceptance criteria%7D%0D%0A%5C %0D%0A%5C%7Bpanel%7D

It looks like confluence already convert a lot during the save procedure and destroys therefor the structure...

 

What can I do ?

 

0 answers

Suggest an answer

Log in or Sign up to answer