IT Monkey:   


Formal Cireson Support (phone, email, and web) is not included with the free Self-Service Portal – Community app. For trouble shooting assistance, take advantage of the Cireson Community to find answers to your questions. However, if you’d like to purchase a Support Package to access more formal Cireson Support (phone, email, and web), please contact us today to learn more on the pricing options.

Showing certain service offerings

Dears,

Is it possible to create a page and display certain service offerings on that page? By default all service offerings that are created in the console are displayed in the portal.

Let's say we have IT and HR as service offering categories. I would like to display them separately in 2 different pages.

Thanks in advance.

Answers

  • Tom_HendricksTom_Hendricks Customer Super IT Monkey ✭✭✭✭✭
    Yes, since you can get your service offerings and request offerings from the API, and then you can write your own Javascript to display them on this custom page of yours, as you see fit.

    If your question was about an out-of-box way of doing this, I am not aware of one.  It might make a good feature request, though!
  • Ozge_OzkayaOzge_Ozkaya Member IT Monkey ✭
    Dear Tom,

    Can you guide me how to start writing the JS to display the SO?

    Kind regards.
  • Tom_HendricksTom_Hendricks Customer Super IT Monkey ✭✭✭✭✭
    Without diving into actual code, which would take more time than I am able to offer right now, it would look something like this at a high level:

    Get the service offering that you wish to display by its ID, which would look similar to (this will not run, it is pseudo code):

    $.get("/api/V3/ServiceCatalog/GetServiceCatalog",
      data: { userId: session.user.Id, isScoped: false},
      function (data) {
        // for each RO...not writing that out atm
        if (data.ServiceOfferingId == '<<GUID of your Service Offering Here>>') {
          // Write the properties of each Request Offering to the page however you see fit... in a table, UL, etc.
        }
      }
    });

    There are probably other services not documented in the API that would be even easier to make use of, but this is one that I know off the top of my head.  Perhaps others can comment on better methods of accomplishing this, but I hope this can at least get you started on the right path.

Sign In or Register to comment.