How to write a sample script in Indicators?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2020 02:05 AM
How to get details of Risk\Control tasks in Indicators. Example with Risk, it has details like State, Owner, Description, Additional Information etc. How to get those values in Indicators with tab "Method" set to "Script".
In the figure given, Demo 13 is a Risk type file.
Script retrieving the Demo 13 details(State, Description) into Indicators "Test 6" is needed.
Thank You,
Venkatesh.
- Labels:
-
Policy and Compliance Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-12-2020 05:37 AM
Risk/Control data can be accessed by current variable.
Example script you can try
gs.info('name '+current.name);
gs.info('description '+current.description);
gs.info('state '+current.state);

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2020 08:21 PM
Hi Venkat,
Were you able to resolve the issue?
Thanks,
Naveen
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-14-2020 09:11 PM
No Naveen, I couldn't see the values of Name, State in Indicator record. Actually my query is, whenever an Indicator Result is generated for an Indicator there's a field called "Value". Name, State & Description values of desired Risk file should be available in "Value" field of Indicator Result record of that particular Indicator record.
How to complete the task using "Script" in "Method" tab.
Thanks,
Venkatesh.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2020 05:33 AM
Hi,
Current object here is the control or the risk. So you should be able to get the details of that current object.
Thanks,
Ashutosh