Menu

How to customize "Impact" menu

2022-06-10
2022-07-19
  • Nikola Milanov

    Nikola Milanov - 2022-06-10

    Hello,
    I want to customize "Impact" menu.
    I want to add one more option and change default value (in my case "A person" is more suitable value).
    I try to find something about this in the forum with no luck.
    Is it ordinary extension build or something more complicated as I see Impact is link with Urgency.
    Any help will be very much appreciated

    Cheers

     
  • Pierre Goiffon

    Pierre Goiffon - 2022-07-04

    Hello,
    Are you refering to the possible values of the UserRequest.impact enum field ?
    If so yes this is easy, but indeed you'll have to write your own customization module. See Customizing iTop [iTop Documentation]

     
  • Nikola Milanov

    Nikola Milanov - 2022-07-06

    Hello,
    Thank you for the reply.
    What I want is to add one more value - "Organization" and set default value from "Department" to "Person".
    I'm aware that I have to write extension for this but can not find where impact enum fields are defined. What I found was their ID's.
    Can you help with this?

    Thank you

     
  • Pierre Goiffon

    Pierre Goiffon - 2022-07-07

    Hello,
    I'm worried your concern is to find where the field definition is : don't ever modify iTop core files, as it will prevent you from update ! By writing a custom module you'll be able to keep your customizations !
    In this module you'll need to write an XML file stating which class and field you'd like to customize. To find out those 2 informations, the datamodel viewer (Administration / Data Model) is your best friend !

     
  • Nikola Milanov

    Nikola Milanov - 2022-07-08

    Hello,
    I'm not trying to modify iTop core files - I want to find that part of XML file where this is define to copy it on new extension that I want to create. I'll try to figure it out via Data Model.

    Cheers

     
  • Vincent @ Combodo

    Here maybe

     
  • Nikola Milanov

    Nikola Milanov - 2022-07-08

    Hi Vincent,
    Thanks for the reply.
    I've already find this but there are only ID's.
    I want to add another value for Impact drop-down menu - "Organization" and to set default from 1 to 3 (person).
    The only "a person" description I find HERE

    Cheers

     
  • Vincent @ Combodo

    IDs are translated into label through dictionaries
    It can be done in XML as well, there is a Tuto on this.
    The XML provided file is where the enum field and its values are declared. For adding a value to an enum, be cautious in 3.0, that Tutorial is out of date, the enum XML format for declaring values has changed. I will need to update the tutorial, but not now as I am about to go on vacations...

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.