Forums

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

How to add validator which contain @google.com

Pourna Radha-Burhoo August 8, 2023

Hello,

Grateful to help me how to add the validator on a post function which will accept email address which contain @google.com 

 

Thanks,

Swarna

2 answers

0 votes
Jehan Bhathena
Community Champion
August 8, 2023

Hi @Pourna Radha-Burhoo ,

Since we cannot add validation to the custom field directly (or the workflow), I've used Jira Automation to workaround this: 

Using this regex I can identify if Google is used in the email: https://regex101.com/r/0Y3yYC/1
image.png

Using the "Advanced compare condition" I can identify if the custom field has this value and based on that make the required action in the next step.

image.png

Hope this helps.

0 votes
Nic Brough -Adaptavist-
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.
August 8, 2023

Could you explain this a bit more please?

You do not add validators to post-functions, nor do you do any validation in a post-function (it's too late in the transition).  And what are you trying to validate?  A text field you ask people to put email addresses in will accept any text you want.

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