Validate if the summary contains "SomeText", if not transition should pass .
We need to check for some text in the ticket summary before passing the transition. Something like Summary ~ "sometext" in JQL.
Please help to write validator for Summary contains text.
Thanks & regards
Madhu
Hi @Madhu Reddy
If you use scriptrunner you can use a simple scripted validator on the transition.
The code below gets the summary and changes it all to lowercase so that we don't have to check for every iteration of capitalization and thens check to see if the summary contains 'text here'. If it doesn't contain that then it won't pass. You can change text here to the text you need.
!issue.summary.toLowerCase().contains("text here")
Thanks,
Tim
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.