Define Relationship - How to customise the Filter?

Oliver D_sereck
Giga Expert

Hello Community!

Once again, I have a strange question that needs answering.

Scenario:
When defining a relationship for a CMDB CI, you have a filter above the slushbucket and gets set with default values:

(Class is a Circuit && Site is anything && Operational Status is anything)

Now I have gotten so far as to find out that this relationship definition page is a UI Page called "ci_relationship_manage"
Also, that most probably, the point where the filter is set is using the following variables:



How can I change the "default" filter to anything else?
On which values depend the filter considering the top filter option changes, depending on the type of CI used?

PS: Side question:
Is there a smart list of variables on wiki that are used in SN-jelly for things like the slushbucket or views etc? Also, any good books on starting with jelly? (Maybe a course from SN? 😉

4 REPLIES 4

jfarrer
Mega Guru

The filter is built very dynamically based on the types of CI's that the selected relationship is set to be used for (See http://wiki.service-now.com/index.php?title=Suggested_Relationships). I dug pretty deep into the code of how it works to see if there was an option to further define the filters and as far as I can tell it's not possible without completely rebuilding the functionality.

For the side question, this is the best set of instructions for how to use Jelly Script: http://wiki.service-now.com/index.php?title=Extensions_to_Jelly_Syntax

There are also lots of examples in the UI Macros and UI Pages.


Hi,

whee would I customize the fields displayed in the slushbucket of the CI Relation Editor for a selected element (see below)?
I would like to show some more information that is available in the cmdb_ci base table, so avialable for all CIs.

find_real_file.png

I have looked in the "ci_relationship_manage" UI Page but have not found it...


You're limited to fields from whatever table is being queried so you can only pull fields from the actual table that is being queried as far as I know. You can personalize these options by following the instructions here.

http://www.servicenowguru.com/system-ui/customizing-slushbucket/


Thank you Mark! That was exactly what I was looking for ... 🙂