Display Related Items on Service Portal form

Jakub31
Tera Contributor

Hello,

i've stumbled upon a problem and i can't quite find a solution.

I'm customizing a Service Portal View of a form and one of the requirements is to display a related CIs.

Therefore i've added Related Items in backend, which displays downstream and upstream relationships using either CI Relations formatter or Legacy CI Relations formatter. But it's not appearing on the page.

Backend:

find_real_file.png

Service Portal:find_real_file.png

Is there any way to make it visible on Service Portal? Or maybe there is a different way to display these Related CIs?

Thanks for your help.

2 REPLIES 2

Community Alums
Not applicable

Hey Jakub,

sorry to say it but there is no easy way to achieve this. I will explain:

Visualizing the CIs (plus relationship tree and so forth) is done by a formatter which calls UI Macro (which might be calling UI PAge and so forth...). And in portal no UI Macros are allowed at all.

So, if you indeed want to get this working you can try something like this:

A) create new UI Page/or even better a portal widget (as you need it for the portal, right) which will do the same thing

B) open the form you see this in the backend, see the formatter's name, open the formatters, find yours, check the UI macro. Copy your macro and use it as a catalog variable of type UI macro/page. If it is not working (most likely) try to embed it into AngularJS (as the easiest way) or (hard way) replicate the logic into your new UI Page/Widget and use it intead of the CI field you see on the standard UI

Hi @Jakub31 , @Community Alums

 

Did you achieve this requirement? I got similar one and stuck at this point, if you could help me on this it would be really helpful for me 

 

Thanks

Rutuja