Dependency View || Map Indicators: is it possible to show the Affected CIs [task_ci] in the Details pane of the Dependency View?

Vivi Brasil
Kilo Sage

Dependency View || Map Indicators: is it possible to show the Affected CIs [task_ci] in the Details pane of the Dependency View?

In the Now Docs (Create or modify map indicators), I could find it:

  • "On a map, the Affected CI tooltip displays the details of the task records in which the CI was added as an affected CI. However, the Details pane does not contain an Affected CI’s tab, and no further details about affected CIs, or the associated tasks are displayed".

So, I have created my own Map Indicator for Affected CIs, with the same information from the base Map Indicator, I have only changed the conditions in the condition builder of my map indicator, to show only Change Request records (Task.Task type >> is >> Change Request).

My custom Map Indicator icon appears with the tooltip, when I hover the mouse on that, it shows the records properly. But I cannot see the Affected CIs in the Details pane of the Dependency View.

PS: on the other hand, I have created another Map Indicator, for the Impacted Services/CIs [task_cmdb_ci_service], with the same definitions, and I'm able to see it in the Details pane. The only one I am unable to see in the Details pane, is the Map Indicator in regards to the Affected CIs.

Any help would be appreciated!

Below there is a screenshot, just to illustrate where I am unable to see my Affected CIs' Map Indicator:

--
find_real_file.png

---
Thanks in advance!
Vivi Brasil

1 ACCEPTED SOLUTION

Vivi Brasil
Kilo Sage

Yesterday night @Kieran Anson identified the reason for it (he saved me answering a message that I posted in the SNDevs Slack channel).

According to the Kieran (he dig through the angular code):

  • In short, ServiceNow have it hard coded to filter out any Map Indicators where the table is "task_ci"


----
Kieran dedicated his time to investigate the reason for it, thank you so much Kieran, I really appreciate your efforts on it!!

The correct answer belongs to Kieran (I will just mark it as the correct answer here, so other community members can benefit from this information).
----


Just to illustrate where Kieran found the filter, there is the screenshot below:


-- 1st screenshot: segment of code

find_real_file.png

 

Kieran also helped me to identify I could confirm my indicator works correctly by navigating to https://name.service-now.com/api/now/bsm/indicators, and my indicator is listed there, sadly the above screenshotted segment of code shows it as filtered.

 

-- 2nd screenshot: the indicator is listed there (so, the indicator itself works, however, it is filtered out by the Map Indicator in the Dependency View):

find_real_file.png---

Best regards,
Vivi Brasil

View solution in original post

3 REPLIES 3

Vivi Brasil
Kilo Sage

Yesterday night @Kieran Anson identified the reason for it (he saved me answering a message that I posted in the SNDevs Slack channel).

According to the Kieran (he dig through the angular code):

  • In short, ServiceNow have it hard coded to filter out any Map Indicators where the table is "task_ci"


----
Kieran dedicated his time to investigate the reason for it, thank you so much Kieran, I really appreciate your efforts on it!!

The correct answer belongs to Kieran (I will just mark it as the correct answer here, so other community members can benefit from this information).
----


Just to illustrate where Kieran found the filter, there is the screenshot below:


-- 1st screenshot: segment of code

find_real_file.png

 

Kieran also helped me to identify I could confirm my indicator works correctly by navigating to https://name.service-now.com/api/now/bsm/indicators, and my indicator is listed there, sadly the above screenshotted segment of code shows it as filtered.

 

-- 2nd screenshot: the indicator is listed there (so, the indicator itself works, however, it is filtered out by the Map Indicator in the Dependency View):

find_real_file.png---

Best regards,
Vivi Brasil

Bonus point:

Just sharing here, how Kieran found it:

"With stuff being angularJs based, its just a case of working how a form is built. I went down a bit of a rabbit hole (mostly due to curisoity) but the premise of the search was using the browser dev tools. I opened the dependency viewer, F12'd to open dev tools and then did a key-word search. Not always that simple - but if you want to ever look at what SN is doing on the client, the sources tab lets you see all the code."

 

find_real_file.png

 

find_real_file.png

 

Just an update with a workaround: it could be possible to use a Database View which points to the task_ci table (without any join), only to bypass the filter of the table task_ci in the Dependency View's Details pane.

PS: is required to execute tests to make sure you won't face performance issues, and you will need to add the View Fields in the Database View.

The screenshot below is only a test from my PDI:

--
find_real_file.png--

Thank you,
Vivi Brasil