It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to read each line from lastcomment in Groovy script


Jira 7.7.2

I am trying to read last comment and then read the text each line. 


Example last comment:



 I needs to split each line and get values 


priority value separate and severity value separate. I am using as below

def priority = ( lastcom as String)?.replaceAll(/.*\:/,'')

but giving me output as High Minor. I need in 2 different values. How I can save each split ?




0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Marketplace Apps & Integrations

Localize Smarter with the Transifex Integration for Bitbucket

Over 52% of internet users say obtaining information in their own language is more important than price and 75% of the world’s population doesn’t speak English. It’s no wonder then that successful gl...

253 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you