From e7f94f8528eea83ced66476d6b2608ad4a97459c Mon Sep 17 00:00:00 2001 From: Huong Nguyen Date: Tue, 8 Jul 2025 09:33:18 +0700 Subject: [PATCH] Mention CLRs by AccountIDs --- .../component_leads_integration_mover/lib.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tracker_automations/component_leads_integration_mover/lib.sh b/tracker_automations/component_leads_integration_mover/lib.sh index f868bd2..d2af378 100755 --- a/tracker_automations/component_leads_integration_mover/lib.sh +++ b/tracker_automations/component_leads_integration_mover/lib.sh @@ -182,14 +182,8 @@ function verify_revievers_availability() { if [[ -z ${availableCLR} ]]; then continue fi - # 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}]") + # Due to GDPR, we cannot mention the email address of the reviewer, so we need to use the accountID. + availableProfiles+=("[~accountid:${availableCLR}]") done outcomedesc=$(IFS=, ; echo "Sending to CLR, there are available reviewers for the issue: ${availableProfiles[*]}") return # Outcome set, and function finished we are done.