Forums

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

don't sync summary in exalate plugin when character more than 255

azade bagheri October 27, 2021

Hello Dear,

 

We are considering an Exalate plugin to connect the two jira server instance.
An existing connection gives an error when the summary is longer than 255 characters.
We tried to solve the problem with the following condition, but the problem still remains.

if (issue.summary.length()>=255){
replica.summary = issue.summary.substring(0,254)
}
else{
replica.summary = issue.summary
}

 

can help me to resolve this problem?

Thank's

Azadeh

1 answer

1 vote
francis
Atlassian Partner
October 27, 2021

Following should work


replica.summary = issue.summary?.substring(0,Math.min(issue.summary?.length(), 254))

You can confirm by adding (after that line)


debug.error("Length of summary is ${replica.summary?.length()}")

Suggest an answer

Log in or Sign up to answer