Uploaded image for project: 'Elements Connect'
  1. Elements Connect
  2. CO-3580

JSON Path in Columns with velocity or empty lines not evaluated

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 6.0.1, 6.0.2
    • Fix Version/s: 6.0.4
    • Labels:
      None
    • Functional components:
      Datasource - Content - JSON
      Datasource - Jira REST
      Datasource - URL

      Description

      How to reproduce

      Configure a connect field:

      • Type: Live Text
      • Datasource: Jira REST
      • Query: api/2/search
      • Root element: $.issues

      Empty row

      • Column
        • Name: key
        • Value:
          <EMPTY LINE>
          $.key
          

      Velocity

      Empty row

      • Column
        • Name: key
        • Value:
          #if($issue.summary == "Hello")
             $.key
          #else
             $.id
          #end
          
      • Edit the field

      Current

      Options are displayed, but their display is empty

      Expected

      Field lists issue keys

      Workaround

      Remove the line breaks in the json column configuration

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                brice.gestas@valiantys.com Brice Gestas
                Reporter:
                christophe.prome@valiantys.com Christophe Promé
              • Votes:
                2 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: