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

Omprakash Thamsetty Feb 05, 2019


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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Marketplace Apps & Integrations

Webinar invitation: Generate custom Jira Cloud PDF reports and exports

Jira may be a staple part of your workday, but your colleagues, customers, business partners or an auditor might need information presented in a different format, that is easy to access and read. And...

64 views 0 1
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