Details
-
Fix
-
Status: Released (View Workflow)
-
Minor
-
Resolution: Fixed
-
2.5.3, 2.6.0
-
None
-
None
Description
Current Situation
- When a user assigns a job an environment variable or an argument with the following function as a value:
jobResourceVariable ('apJS01', 'var1')
then the function is quoted in JSON:
"env": { "my_var": "\"jobResourceVariable ('apJS01', 'var1')\"" }
As jobResourceVariable() is a function and due to the trailing space it is considered a string which causes quotes to be applied to the assignment of the function. When the user selects "Edit JSON" and removes the unwanted space from the function, the unwanted quotes aren't removed automatically from the function.
Desired Behavior
- The quotes should be removed automatically after removing the unwanted space from a function that was used in an assignment to a variable and that holds unwanted spaces:
"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 spaces from the function.
- Submitting the changes will allow us to use the assigned function as desired and the unwanted quotes should be removed automatically from the JSON.
Attachments
Issue Links
- will be translated by
-
JOC-1606 Functions should not be quoted in assignments to variables
- Released