I wanted to get first 100 hundred characters from Summary Field using groovy script.

Saaish February 26, 2020

Please help

1 answer

0 votes
Payne
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.
February 26, 2020

Assuming you have an Issue object (e.g. "issue"), then you can do this:

issue.summary.length() <= 100 ? issue.summary : issue.summary[0..99]

Saaish February 27, 2020

Thank you Payne!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events