substringBetween

Scott Brown August 28, 2024

I have a jira comment that is generated via email to our JSM project.

I am trying to strip the corporate virus scan info and quoted body from the email thread. If I dont do this the JSM tickets are un-redable.

I have good consistent markers for the deletion.

I am using 

comment.body.substringBefore("{quote}") and

comment.body.subsstringAfter("end-->")

and those functions work great.

I would like to use comment.body.substringBetween but when I use that function I don't get a result.

Any thoughts?

1 answer

0 votes
Walter Buggenhout
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 29, 2024

Hi @Scott Brown and welcome to the Community!

There most likely is an error in your syntax somewhere so the function can't parse some of the pieces of text you're trying to locate. 

Maybe this related thread might help you diagnose. If not, share more details about how you are trying to do this, your exact syntax, any errors you may receive and so on.

Hope this helps!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events