Thanks for your pointers. I’ve already used the script as you suggest and it works fine in jython script task.
In my case, I am using “xlr-custom-report-plugin-1.0.3.jar” community plugin. (https://github.com/xebialabs-community/xlr-custom-report-plugin)
And in this case, I’m defining the script in “Shared Configuration > Report:Custom report”, but when I excute , it throws below error (see ss). This plugin should work based on jython script.
So, I thought of using config API instead.
Error while executing script [jar:file:/C:/XL%20Install/xl-release-9.7.5-server/xl-release-9.7.5-server/plugins/__local__/xlr-custom-report-plugin-1.0.3.jar!/restapi/generatereport.py]: NameError: name 'globalVariables' is not defined in <script> at line number 13
Here’s the script defined in shared config > Report: CustomReport
May be I’m missing something here or there is issue in community plugin.
Please have a look.