Regular Expression for Static String
Hi Team, We have the following regular expression to check for a fixed email address and set to a custom field. We are using the "Set a field as a function of other fields Function for this transition" in the post function.
We have 2 fields 1) Mail From (captures all recipients address) 2) Send To (to parse a particular address and store)
If Mail From has only "test.user1@gmail.com" it works. It sets the Send To field as "Test.User1@gmail.com".
But If Mail From has multiple address out of which one is "test.user1@gmail.com" then Send To field is not set
Following is the regular expression. The field Send To will be set according to the evaluation of Mail From against the following set of rules: (W((?i)test.user1@gmail.com(?-i))\W)Test.User1@gmail.com This feature will be run as user in field Current user.
NOTE:- We are using the JIRA Version 6.3.10.
Please help us to resolve this issue.
Thanks, Umasankar
Comments (2)
-
repo owner -
repo owner - changed status to resolved
I close the issue. Please, reopen it if you need further support on it.
- Log in to comment
Hi @UmasankarJeyaraj,
Try using the following setting rule:
i(.*test\.user1@gmail\.com.*)Test.User1@gmail.com