From 15919a8d7f37bb8e95c63ff5df577fb1edb994a8 Mon Sep 17 00:00:00 2001 From: Huong Nguyen Date: Tue, 24 Jun 2025 09:08:20 +0700 Subject: [PATCH] Tag CLRs by AccountIDs --- .../component_leads_integration_mover/lib.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tracker_automations/component_leads_integration_mover/lib.sh b/tracker_automations/component_leads_integration_mover/lib.sh index cba2c218..f868bd2f 100755 --- a/tracker_automations/component_leads_integration_mover/lib.sh +++ b/tracker_automations/component_leads_integration_mover/lib.sh @@ -182,7 +182,14 @@ function verify_revievers_availability() { if [[ -z ${availableCLR} ]]; then continue fi - availableProfiles+=("[~${availableCLR}]") + # Due to GDPR, we cannot mention the email address of the reviewer, so we need to get the accountID. + # File where accountID will be stored. + accountfile=${WORKSPACE}/component_leads_integration_mover_accountid.txt + echo -n > "${accountfile}" + ${basereq} --action getUser --userEmail ${availableCLR} --quiet --file "${accountfile}" > /dev/null + CLRAccountID=$(cat "${accountfile}") + rm "${accountfile}" + availableProfiles+=("[~${CLRAccountID}]") done outcomedesc=$(IFS=, ; echo "Sending to CLR, there are available reviewers for the issue: ${availableProfiles[*]}") return # Outcome set, and function finished we are done.