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-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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