---
sourceDocument: Yokohama Employee Service Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/pt-BR/yokohama/employee-service-management

 Release :

    - yokohama

ft:locale :

    - pt-BR

ft:publication_title :

    - Yokohama Employee Service Management

ft:clusterId :

    - emplsm

bundleId :

    - emplsm

workflow :

    - Employee


---

# Configure a regra de negócio para reatribuir tíquetes

# Configure a regra de negócio para reatribuir tíquetes {#ariaid-title1}

* Versão de lançamento: Yokohama
* 
* Atualizado 30 de jan. de 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 min. de leitura

Configure a regra de negócio para reatribuir os tíquetes.

## Antes de Iniciar

Função necessária: administrador

## Procedimento

1. Navegar até TudoDefinição do SistemaRegras de negócio.  
2. Clique em Nova.
3. No formulário, preencha os campos.  

   Em Avançado , atualize o. Script campos.

   {#business-rule-re-assigning-ticket-itsm__table_gpx_p1z_vqb__entry__2}

   | Campo | Descrição |
   |:-|:-|
   | Nome | Nome da regra de negócio |
   | Tabela | Tabela à qual o tíquete deve ser reatribuído. |
   | Ativo | Marque esta caixa |
   | Avançado | Marque esta caixa |
   | Onde executar | * Quando: assíncrono * Atualizar: Marque esta caixa * Condições de filtro: Aplique a condição de filtro da regra de negócio de reatribuição do tíquete.Selecione os campos aos quais o tíquete deve ser reatribuído. Exemplo: Atribuído ao campo. {#business-rule-re-assigning-ticket-itsm__ul_tdd_cvz_pnb} |
   | Avançado | Script: Copie e cole o script. Modifique os valores conforme necessário. Atualize o nome do campo no <kbd class="ph userinput">assigned_to </kbd>se você estiver usando um valor diferente. 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 }); |
   [Tabela 1. Regra de negócio para reatribuir tíquete]

   {#business-rule-re-assigning-ticket-itsm__table_gpx_p1z_vqb}
4. Clique em Enviar.

