Forums

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

Need to combine 2 different regex

Darius October 7, 2019

I'm trying to merge projects from source instance to target instance using configuration manager for Jira.

I'm facing issues while deploying it because of the difference in jira key pattern.

Source instance - ([A-Z][A-Z_0-9]+)

Target instance - ([A-Z_][A-Z_]+)

Need to merge this and have it as a single regex for smooth transition.

1 answer

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.
October 8, 2019

The target should be adjusted to allow numbers, so add the 0-9 from the source system.

I'd think about removing the underscores after import though, as non-alphanumerics can break some things in "interesting" ways.

Darius October 8, 2019

Thanks @Nic Brough -Adaptavist- 

We tried the same and it led us to another error "existing project does not fall under this key pattern". So we did a manual test to check which project was deviating from the source key pattern. Luckily we were able to figure it and now replaced the source key pattern with target instance.

Suggest an answer

Log in or Sign up to answer