Forums

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

String Manipulation using Groovy script

Jabir NP March 29, 2015

Hi 

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

Please help

2 answers

1 vote
Guilherme Nogueira
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.
March 30, 2015

Hi smile

I'm considering that you have a few knowledge about what are you doing.

First: Put summary field text to a string, and than:

 

"s" is your summary field string

String first100charc = s.substring(0, Math.min(s.length(), 100));

It works with Groovy,

 

If you need a few more information, please reply.

 

BR.

0 votes
Guilherme Nogueira
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.
March 31, 2015

did it work?

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, loom, loom for training, loom for teaching, video training, async learning, online education, screen recording, loom tutorials, loom use cases, atlassian learning, team training tools, instructional video, virtual training tools

🛗 Elevate Your Training and Enablement with Loom

Join us June 26, 11am PT for a webinar with Atlassian Champion Robert Hean & Loom’s Brittany Soinski. Hear tips, stories, and get your burning questions answered. Learn how Loom makes training and enablement easier. Don’t miss it!

Register today
AUG Leaders

Atlassian Community Events