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: 

Validate certain text in a custom field (JIRA Cloud / Scriptrunner Validation Expression

Darren.Fairweather
Contributor
April 20, 2023

Hi Community!

I'm trying to validate that on creation a certain custom field contains a certain value in addition to other text. I have created a VERY simple Scriptrunner validation.... issue.customfield_10173 == "@hello.uk". This obviously only validates the text being exact in the field. How do i do it so it checks to see if it "contains" @hello.uk?

 

Many thanks!

 

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

3 votes
Answer accepted
Darren.Fairweather
Contributor
April 20, 2023

issue.customfield_10173.includes("@hello.uk")

0 votes
Vikrant Yadav
Community Champion
April 20, 2023

Hi @Darren.Fairweather Try to add below JIRA Expression :- 

issue.customfield_10155.includes("@hello.uk")

Thanks,

V.Y