Uploaded image for project: 'mod-source-record-manager'
  1. mod-source-record-manager
  2. MODSOURMAN-421

Syntax problem for 561 field in default mapping rules

    XMLWordPrintable

    Details

    • Template:
    • Sprint:
      Folijet Sprint 110, Folijet Sprint 111
    • Story Points:
      0.5
    • Development Team:
      Folijet
    • Release:
      R1 2021 Bug Fix

      Description

      From Theodor Tolstoy

      (sample file attached that you can use for testing - when A-M loads it, the notes in the instance look fine) Please doublecheck

      Per Theo, in the default rules the 561 mapping has the wrong syntax.

      This is the current:
      "561": [
      {
      "applyRulesOnConcatenatedData": true,
      "description": "Instance note type id",
      "rules": [
      {
      "conditions": [
      {
      "parameter":

      { "name": "Ownership and Custodial History note" }

      ,
      "type": "set_note_type_id"
      }
      ]
      }
      ],
      "subfield": [
      "a",
      "u",
      "3",
      "5"
      ],
      "target": "notes.instanceNoteTypeId"
      },
      {
      "entity": [
      {
      "applyRulesOnConcatenatedData": true,
      "description": "Ownership and Custodial History",
      "rules": [
      {
      "conditions": [

      { "type": "trim_period" }

      ]
      }
      ],
      "subfield": [
      "a",
      "u",
      "3",
      "5"
      ],
      "target": "notes.note"
      },
      {
      "applyRulesOnConcatenatedData": true,
      "description": "If true, determines that the note should not be visible for others than staff",
      "rules": [
      {
      "conditions": [

      { "type": "set_note_staff_only_via_indicator" }

      ]
      }
      ],
      "subfield": [
      "a",
      "u",
      "3",
      "5"
      ],
      "target": "notes.staffOnly"
      }
      ]
      }
      ],
      Compare that with all the other notes: 
       
      "562": [
      {
      "entity": [
      {
      "applyRulesOnConcatenatedData": true,
      "description": "Instance note type id",
      "rules": [
      {
      "conditions": [
      {
      "parameter":

      { "name": "Copy and Version Identification note" }

      ,
      "type": "set_note_type_id"
      }
      ]
      }
      ],
      "subfield": [
      "a",
      "b",
      "c",
      "d",
      "e",
      "3",
      "5"
      ],
      "target": "notes.instanceNoteTypeId"
      },
      {
      "applyRulesOnConcatenatedData": true,
      "description": "Copy and Version Identification Note",
      "rules": [
      {
      "conditions": [

      { "type": "trim_period" }

      ]
      }
      ],
      "subfield": [
      "a",
      "b",
      "c",
      "d",
      "e",
      "3",
      "5"
      ],
      "target": "notes.note"
      },
      {
      "description": "If true, determines that the note should not be visible for others than staff",
      "rules": [

      { "conditions": [ ], "value": "false" }

      ],
      "subfield": [
      "a",
      "b",
      "c",
      "d",
      "e",
      "3",
      "5"
      ],
      "target": "notes.staffOnly"
      }
      ]
      }
      ],
      See the the Note Type mapping hanging outside of the entity property?

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                ruslan_lavrov Ruslan Lavrov
                Reporter:
                abreaux Ann-Marie Breaux
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases