- 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 10:25 PM
Would this still work if the application scope is not global? The application scope is Performance Analytics Content Pack for Essential SAFe.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 10:27 PM - edited 03-07-2024 10:28 PM
Hi @TerryC03 When you create a script include in global scope ensure you select accessible from all scopes like below
and in your report condition call like this
in your report use in condition like this
sysid ISONE OF javascript: new global.scriptincludename().latestSprint()
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 10:49 PM
This does work. Thank you for the help! However, when I apply the report to an interactive filter on the "SAFe Team Dashboard", the sys_ids remain the same. I was hoping to change the 3 latest completed sprints according to SAFe Team.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 10:54 PM
Hi @TerryC03 i think you need to add one more query to get only closed complete sprints. add the bolded line to your script include, and try closing few sprints that should update your report data
var gr = new GlideRecord('sn_safe_sprint');
gr.addEncodedQuery('state=3');// get only close complete
gr.setLimit(3);
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2024 01:26 AM
That did not work, unfortunately. I'm looking for something more dynamic. For example, on the SAFe Team Dashboard, when the SAFe Team is selected, I would like to view its 3 latest completed sprints.