Home Cireson Uploads

Create Config Items in Cireson Portal

Geoff_RossGeoff_Ross Cireson Consultant Super IT Monkey ✭✭✭✭✭
edited March 30 in Cireson Uploads

Ever wanted to be able to create Config Items via the Cireson Portal?

Check out this community solution:



Install

Copy Files to CustomSpace as per your structure. Suggested structure is

  • CustomSpace
    • CustomCode
      • CustomCI
  • CustomCI.js

Copy the script loader line into custom.js

If you are not sure how to use script loader, check out this blog

Use

Update the ciClasses array on line 10 to contain all the classed you want to create. For each CI type you want to be able to create, you need to add:

  1. Display Name (this doesn't have to match the actual class definition)
  2. ClassId (retrieve this via PowerShell)
  3. Icon (any Font Awesome icon up to version 4.2. Full list here)

The functionality will be available to Analysts. If you need this changed, update line 6.

Then you can create CIs from the NEW drawer.

Please Note

Due to a limitation of the Cireson Portal, the Create CI works differently to Creating any other type of object. Upon clicking the type you want to create, an empty object is created AND committed to the database. The Portal will then redirect you to edit that object. If you navigate away from this page, the empty object will still exist.

Contributors

All contribution welcome.

Comments

  • Geoff_RossGeoff_Ross Cireson Consultant Super IT Monkey ✭✭✭✭✭

    @Jan_Schulz I believe you were looking for something like this?

  • Geoff_RossGeoff_Ross Cireson Consultant Super IT Monkey ✭✭✭✭✭

    @Steve_Wright  I believe you were looking for something like this?

  • Gerhard_GoossensGerhard_Goossens Customer Advanced IT Monkey ✭✭✭

    @Geoff_Ross

    This is exactly what we were looking for.

    I will fire it up in my lab and test creating our custom CIs.


    Thank you for this

  • Jan_SchulzJan_Schulz Customer IT Monkey ✭

    @Geoff_Ross thank you for that.

    I tested it with two of our classes and both get an error.

    In both classes we have a key property which is required and don´t autoincrement.

    If i understand it right only configItem classes with autoincrement key property can be used for this solution. Is it right?

  • Geoff_RossGeoff_Ross Cireson Consultant Super IT Monkey ✭✭✭✭✭

    @Jan_Schulz Yes, you are right, that scenario would not be supported right now.

    Its difficult as we have to commit before loading the form, but in this case we need to provide the value for the key property before commit. Let me have a think... 🤔

Sign In or Register to comment.