Forums

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

JMWE Conditional Post Function on text within summary

Shane March 5, 2020

I'm trying to find some text within the summary field. 

I'm trying to make the post function conditional on the summary containing the text "Sign-off" at the beginning of the summary.

This is what I'm trying, but it doesn't work.

{{ issue.fields.summary.contains("Sign-off*") }}

I've dug through the documentation and other posts, but I can't find exactly what I'm looking for. Any help would be appreciated!

1 answer

1 accepted

1 vote
Answer accepted
David Fischer
Community Champion
March 5, 2020

Hi,
You will want to try something like:

{{ issue.fields.summary.match(r/^Sign-off/i) }}

Shane March 5, 2020

This works! Thank you so much! I could not figure this out.

Cesar Duran July 22, 2021

Thank you again @David Fischer 

Suggest an answer

Log in or Sign up to answer