I am trying update summary...but it showing error

Sneha A S September 23, 2019
 PUT request to /rest/api/2/issue/TEDP-695 returned an error code: status: 400 - Bad Request
body: {"errorMessages":[],"errors":{"summary":"The summary is invalid because it contains newline characters."}}

 

String newSummary2="";


newSummary2=empID+"-"+gradeLevel+"-"+empName;


def result12 = put("/rest/api/2/issue/TEDP-"+keyValue2)
.header('Content-Type', 'application/json')
.body([
fields: [
"summary": newSummary2
]
])
.asString()

1 answer

0 votes
fran garcia gomera
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.
September 23, 2019

Hi, @Sneha A S 

Where do you get empID and empName? seems like there is a character Jira doesn't like on any of those variables.

Sneha A S September 25, 2019

I am assigning some values to empID and empName like 

String empID='1234' and String empName='Mallika'

Suggest an answer

Log in or Sign up to answer