티켓 재할당을 위한 비즈니스 규칙 구성

  • 릴리스 버전: Australia
  • 업데이트 날짜 2025년 07월 31일
  • 소요 시간: 2분
  • 티켓을 재할당하기 위한 비즈니스 규칙을 구성합니다.

    시작하기 전에

    필요한 역할: 관리자

    프로시저

    1. 다음으로 이동 모두 > 시스템 정의 > 비즈니스 규칙.
    2. 새로 만들기를 클릭합니다.
    3. 양식에서 필드를 채웁니다.

      고급 탭에서 스크립트 필드를 업데이트합니다.

      표 1. 티켓 재할당을 위한 비즈니스 규칙
      필드 설명
      이름 비즈니스 규칙의 이름
      테이블 티켓을 재할당해야 하는 테이블입니다.
      활성 이 확인란 선택
      고급 이 확인란 선택
      실행 위치
      • 시기: 비동기
      • 업데이트: 이 확인란 선택
      • 필터 조건: 티켓 비즈니스 규칙 재할당의 필터 조건을 적용합니다.

        티켓을 재할당할 필드를 선택합니다. 예: 필드에 할당됨.

      고급 스크립트: 스크립트를 복사하여 붙여넣습니다. 필요에 따라 값을 수정합니다.

      다른 값을 사용하는 경우 assigned_to 에서 필드 이름을 업데이트합니다.

      
      var importChatUtils = new sn_tcm_collab_hook.MSTeamsImportChatUtils();	
      var chatUtil = new sn_tcm_collab_hook.MSTeamsChatUtil();
      	
      var azureIds = chatUtil.getAzureIds([current.getValue('assigned_to')]); //Update the assigned_to field if required 
      var credentialAlias = chatUtil.getTeamsChatCredentialsAliasGr();
      var chats = importChatUtils.getChatsofADocument(current.sys_id);
      var azureId = '';
      	
      if (azureIds && azureIds.azureUserIds && azureIds.azureUserIds.length > 0) 
      	azureId = azureIds.azureUserIds[0];
      	
      if(gs.nil(azureId)){
      	gs.addErrorMessage(gs.getMessage('Invalid Azure Id, cannot add user to Chat'));
      	return;
      }
      	
      chats.forEach( function(chat) {
      	importChatUtils.addMemberToChat(chat,azureId,credentialAlias, current.getValue('assigned_to')); //Update the assigned_to field if required
      });
    4. 제출을 클릭합니다.