You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Issue when using Groovy to create member

edited Mar 2, 2026 8:54AM in Planning 4 comments

Hello everyone,

I am using Groovy to create a member, but something weird happened.

My Groovy rule:

/*RTPS: {ProjectCode} {CreatePICode} {CreatePIName}*/

//****************** GROOVY SCRIPT: ADD MEMBERS ******************

String sProjectCode = rtps.ProjectCode.toString().replaceAll('"','')
String sCreatePICode = rtps.CreatePICode.toString().replaceAll('"', '')
String sCreatePIName = rtps.CreatePIName.toString().replaceAll('"', '')
String dynamicRegex = "/^" + sProjectCode + "-(000[1-9]|00[1-9][0-9]|0[1-9][0-9]{2}|[1-9][0-9]{3})\$/"


//This message bundle stores localized error messages for US language. It’s a good solution for managing multilingual applications.

def mbUs = messageBundle([
"validation.CreatePICode":"Invalid Format! Code must match format XX-YY-ZZ-000-1111 (e.g., 25-IT-AS-001-0001). Year: 20-99, Dept: IT/NT, 2 Chars, 3 Digits, 4 Digits starts from 0001 to 9999. Input: {0}",
Tagged:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!