- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 03:33 PM
Hello,
When I enter my script include into a report, the sysID is returning null.
What would be the reason for this? Below is my script include:
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 10:16 PM - edited 03-07-2024 10:18 PM
Hi @TerryC03 tested in my PDI, works fine now. Follow the below steps
1. Create a client callable script include like below
in your report use in condition like this
sysid ISONE OF javascript: new scriptincludename().latestSprint()
result:
Harish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 03:41 PM - edited 03-07-2024 03:43 PM
Is there a reason you marked the script include client callable?
You should be using a server side script include.
Also in you script include, you are not setting the sprintID with the sysid inside the while loop. after gs.log, you should set the sprintID.
And in the report, while calling, it should be new sprintUtil().latestSprint(). So you are missing () after the sprintUtil
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 03:46 PM
It's client callable to use javascript: new sprintUtil().latestSprint() in the report filter. Is there a such thing as a "server-side" script include? How should I set the sprintID?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 03:50 PM
Yes. Create a new ScriptInclude with Client Callable unchecked and write you function there. And then call it from the report as javascript:new scriptName().functionName();
Also inside the while loop, use sprintID=gr.sys_id; to populate the sprintID which you will use in the report.
Please mark this response as correct or helpful if it assisted you with your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 03:52 PM
Ok. I will try it soon. Thanks.