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, jira product discovery, jpd premium, product management, idea management, product discovery, jira premium, product planning, atlassian community, product development, roadmap planning, product prioritization, feature management

Introducing Jira Product Discovery Premium ✨

Jira Product Discovery Premium is now available! Get more visibility, control, and support to build products at scale.

Learn more
AUG Leaders

Atlassian Community Events