Assignment rule logic for case assignment for the base below conditions to various groups

vinnus
Tera Contributor

Variables:

2Global or Regional ImpactType: single select, mandatory
·       Global
·       Regional
Yes
3Region
Only visible when “Regional” is chosen in previous question
 
Type: single select, mandatory
1. ASPAC
2. EMEA
3. LATAM
4. NAM
Yes
4Does this apply to all sectors?Type: single select, mandatory
·       Yes
·       No
Yes
5Sector
Only visible when “No” is chosen in previous question
Type: single select, mandatory
1.      MedTech
2.      Non – Operating (NOP)
3.      Innovative Medicine
Yes
6
 
Is this related to One Vision?
This only visible when MedTech is chosen for the previous question
Type: single select, mandatory
·       Yes
·       No
Yes
7
 
One Vision
This only visible when Yes is chosen for the previous question
Type: single select, mandatory
·       Surgical Vision
·       Vision Care
Yes
8MRC
Only visible when “Region” is chosen in previous question.
Note that MRC needs to be linked to MRC LE table.
Type: multi-select, mandatoryYes
9Request type

Type: single select, mandatory
1.      Transactional: Status of my Intercompany SO-PO transaction (OHUB only)
2.      Transactional: Supporting Document Requests
3.      Transactional: Service Agreement
4.      Transactional: Queries on Intercompany Policy
5.      LR41 Related
6.      Audit Related
7.      Inventory Related
8.      Settlement Related
9.      Reconciliation & Aging Related
10.  BRAVO Related Queries
11.  Other 
12.  Ad-Hoc Journal Entry                 

 

 

Triaging

Based on Request Type (Initially)

  1. All Transactional tickets (1-4 in Request Type choices) will be triaged to:
    1. SMF GS A2R GIC - Transactional
  2. All LR41 Related and Audit Related tickets (5 & 6 in Request Type choices) will be triaged to:
    1. SMF GS A2R GIC - LR41 and Audit
  3. The remaining Request Types (7-12) will be triaged based on Global or Regional initially, Sector, and for MedTech (non-One Vision) and Innovative Medicine, by Region as well (see below):
    1. Global Include 'Yes' responses to question "Does this apply to all sectors" (Exclude when sector = Non – Operating (NOP) or MedTech One Vision (Yes) is chosen for Sector)
      1. SMF GS A2R GIC - Reporting - Global
    2. MedTech (when One Vision question = 'No')
      1. SMF GS A2R GIC - Reporting - MedTech (ASPAC)
      2. SMF GS A2R GIC - Reporting - MedTech (EMEA)
      3. SMF GS A2R GIC - Reporting - MedTech (LATAM)
      4. SMF GS A2R GIC - Reporting - MedTech (NAM)
    3. Innovative Medicine
      1. SMF GS A2R GIC - Reporting - Innovative Med (ASPAC)
      2. SMF GS A2R GIC - Reporting - Innovative Med (EMEA)
      3. SMF GS A2R GIC - Reporting - Innovative Med (LATAM)
      4. SMF GS A2R GIC - Reporting - Innovative Med (NAM)
    4. Vision Care (All Regions and Global)
      1. SMF GS A2R GIC - Reporting (Vision Care) 
    5. Surgical Vision (All Regions and Global)
      1. SMF GS A2R GIC - Reporting (Surgical Vision)
    6. Non - Operating (NOP) - (All Regions and Global)
      1. SMF GS A2R GIC - Reporting (NOP)
1 REPLY 1

vinnus
Tera Contributor

working script till Point 2

 

var assignmentGroupJSON = gs.getProperty('x_jj_dfit.all.assignment.group');
var assignmentGroup = JSON.parse(assignmentGroupJSON);
if (current.variable_pool.request_type.getDisplayValue() == "Transactional: Status of my Intercompany SO-PO transaction (OHUB only)" ||
current.variable_pool.request_type.getDisplayValue() == "Transactional: Supporting Document Requests" ||
current.variable_pool.request_type.getDisplayValue() == "Transactional: Service Agreement" ||
current.variable_pool.request_type.getDisplayValue() == "Transactional: Queries on Intercompany Policy")
{
current.assignment_group = assignmentGroup.usergroup[4].SMF_GS_A2R_GIC_Transactional;
}
else if (current.variable_pool.request_type.getDisplayValue() == "LR41 Related" ||
current.variable_pool.request_type.getDisplayValue() == "Audit Related")
{
current.assignment_group = assignmentGroup.usergroup[4].SMF_GS_A2R_GIC_LR41_and_Audit;
}
else
{
current.assignment_group = assignmentGroup.usergroup[4].SMF_GS_A2R_GIC_Reporting_Global;
}