JEMH Trying to get regex to match multiple values and fill them in the field.

I'm trying to figure out how to make the regexp in JEMH match multiple values for a field.

So the field will select how ever many options are chosen in that email.

I've tried a few configs with multiple regexp expressions (only the last one gets it's value entered)

I've used the (Charger - AC|Charger - Car): True which doesn't give me any value despite getting a match on both values.

(Charger - AC): True,(Charger - Car): True and (Charger - AC,Charger - Car): True just gives me a does not match.


the text it's checking against is:

Type of Device\t Type of Request\t Accessories\n
 Aircard: False\t New Activation: False\t Charger - AC: True\n
 Cell Phone: False\t Replacement Device: True\t Charger - Car: True\n
 Blackberry: False\t \t Case for device: True\n


The supported fields page says use a comma, but I can't see any thing suggesting how the comma is used.  Or it simply won't do what I'm after.



1 answer

Hi Jason,

Regexps are split on comma characters, so you can't use a literal comma in a regexp but you can use \x2c instead (wiki)

JEMH Regexp Field Processor has a field for determining matches, (match one or match many), values matching a given expression are then set against the target field, eg CSV results in a split on the comma generating many values, which could then populate a select custom field.

Its probably easier if you're having problems to log a support ticket, with your Profile XML and an example email, exported from JEMH auditing so that it can be reproduced.  Lay out what you want as final field values...

Andy Brook Community Champion Apr 16, 2015

ends up this was related to the Capture Group correctly pulling out values, but the Aliases that those values were supposed to match on to 'translate' to JIRA options, were not right, included text not captured, hence no Alias match, and no set option.

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 16, 2018 in Jira

Looking for anyone who made the switch to Data Center

The Jira Marketing team is putting together an ebook on migrating to Data Center. We're looking for pro tips on how you staffed your project team and organized your Proof of Concept. Share yo...

1,160 views 13 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you