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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published yesterday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

34 views 0 4
Read article

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