Uploaded image for project: 'JOC - JobScheduler Operations Center'
  1. JOC - JobScheduler Operations Center
  2. JOC-1606

Functions should not be quoted in assignments to variables

    XMLWordPrintable

Details

    Description

      Current Situation

      • When a user assigns a job an environment variable with the following function as a value:
      jobResourceVariable('apJS01', 'var1')

      then the function is wrongly quoted in JSON:

      "env": {
          "my_var": "\"jobResourceVariable('apJS01', 'var1')\""
      }
      

       

      Desired Behavior

      • No quoting should apply to assignment of functions:
        "env": {
            "my_var": "jobResourceVariable('apJS01', 'var1') "
        }
        

       

      Workaround

      • Users can select the "Edit JSON" action menu item from the tree panel in the Configuration view to remove unwanted quotes. Submitting the changes will allow to use assigned functions as desired.
      • The workaround is limited as next time that a user will select a job's "Environment Variables" tab then again unwanted quotes will be added.

      Attachments

        1. screenshot-2.png
          screenshot-2.png
          488 kB
        2. screenshot-1.png
          screenshot-1.png
          417 kB

        Issue Links

          Activity

            People

              ztsa0019 Sourabh Agrawal
              ap Andreas Püschel
              Pramokshi Narawariya Pramokshi Narawariya
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: