I create a custom field called “Bug Description” in create issue screen. I can create set the default value for bug template. And I add a post function to copy the text of “Bug Description” to “Description”. It works fine to create a bug manually.
But I try to create issue by rest api. I can create the issue successfully, but the value of Description is empty. The value of Bug Description is correct. So guess the post function does not work.
This my payload:
{
“update”: {
},
<span>"fields"</span>: {
<span>"summary"</span>: <span>"autotest3"</span>,
<span>"issuetype"</span>: {
<span>"name"</span>: <span>"Bug"</span>
},
<span>"project"</span>: {
<span>"id"</span>: <span>"11107"</span>
},
<span>"customfield_11278"</span>: {
<span>"type"</span>: <span>"doc"</span>,
<span>"version"</span>: 1,
<span>"content"</span>: [
{
<span>"type"</span>: <span>"paragraph"</span>,
<span>"content"</span>: [
{
<span>"text"</span>: <span>"auto111"</span>,
<span>"type"</span>: <span>"text"</span>
}
]
}
]
},
<span>"reporter"</span>: {
<span>"accountId"</span>: <span>"60c0e116a01e11006ae66369"</span>
},
<span>"priority"</span>: {
<span>"name"</span>: <span>"Medium"</span>
},
<span>"customfield_11261"</span>: {
<span>"id"</span>: <span>"10260"</span>
},
<span>"customfield_11249"</span>: {
<span>"id"</span>: <span>"10240"</span>
}
}}