Forums

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

Using Split to extract subsctring

Lisa Mendonsa
February 3, 2026

 

Hi everyone

I have a string (Jira Summary) that might look like this

<Some text> - <some more text> - <ID>

OR

<Some text> - <ID>

I basically want to get the value of the ID after the last '-'. 

If I use split() function, how can I reference the last occurrence/item in the returned list?

Thanks in advance

Lisa

1 answer

1 vote
Bill Sheboy
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 Champions.
February 3, 2026
Lisa Mendonsa
February 5, 2026

Thank you, I managed to get this working using  {{issue.summary.split("-").Last().trim()}} 

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events