Forums

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

How to restrict special symbols like @,#,$,% etc in Jira (I have Scriptrunner)

Hector Hood
Contributor
May 13, 2021

How to restrict special symbols like @,#,$,% etc in Jira. I have Scriptrunner but can't seem to find the correct validator. Does anyone have any suggestions?

2 answers

1 accepted

2 votes
Answer accepted
Vikrant Yadav
Community Champion
May 13, 2021

Hi @Hector Hood  In this case you can use Script Runner REGEX validator for this, apply below code. It wont allow special char but allow space. 

^[A-Za-z0-9 ]+$

Hector Hood
Contributor
May 13, 2021

This worked like a dream! Thank you!!!

Like • Vikrant Yadav likes this
Vikrant Yadav
Community Champion
May 13, 2021

Cool! Glad to hear it helps.

1 vote
Kristian Walker _Adaptavist_
Community Champion
May 13, 2021 edited

Hi Hector,

I can confirm that inside of Jira Cloud that validators are designed using the Jira Expression Framework and you would need to use this to define the validator that you require.

I can confirm that we have a knowledge base article located here which explains how you can use this to create the validator that you want with ScriptRunner for Jira Cloud and I hope this helps to achieve your requirement.

Regards,

Kristian

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events