Forums

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

Seeking Groovy operator for "Like" - JMWE condition

Durell Demartini
Contributor
November 21, 2025

I'd like to modify an existing JMWE post-function that creates a new issue, specifically the condition that would make it true.

Within the condition, I want to execute the post-function only if the summary contains the word "Patch," as opposed to summary equals "Patch" since there may be differing values in the summary, but it will always begin the the word "Patch."

!issue.subTaskObjects.find{it -> it.get("summary") == "Patch" && it.get("status")?.name != "Done"}

Would there be a "like" or "contains" operator I could use? Thanks in advance for any guidance you can offer.

1 answer

Suggest an answer

Log in or Sign up to answer
0 votes
arielei
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 Leaders.
November 21, 2025

Hello @Durell Demartini 

I wouldnt invest in that area since DC is EOL and you will risk that it wont be supported in cloud.

 

However, you can achieve the same result by using automation which are supported in cloud.

 

Best regards,

Ariel.

ghassansohail
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 21, 2025

You can use the following for checking if it contains: !issue.subTaskObjects.find{ it.get("summary")?.contains("Patch") && it.get("status")?.name != "Done" }

Or, for your scenario. You can try:
!issue.subTaskObjects.find{ it.get("summary")?.startsWith("Patch") && it.get("status")?.name != "Done" }

TAGS
AUG Leaders

Atlassian Community Events