The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Walter Buggenhout
Community Champion
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!

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events