Menu

How to hide public_log ?

Karl
2016-07-15
2018-08-31
  • Karl

    Karl - 2016-07-15

    Hello,

    I would like to hide public_log from User Request (we just work with private_log)
    UserRequest's field public_log doesn't have an entry in <presentation> tag, or I can't find it.
    If one of you can find a way to hide it (without removing the field), I would greatly appriciate.</presentation>

    Many Thanks

     
  • Thiago Arcanjo

    Thiago Arcanjo - 2016-07-20

    You have to alter Class UserRequest and remove this field, with you not using it. But I advice you to just keep empty and not change the standard class just for this.

     
  • Denis

    Denis - 2016-07-20

    You can change the definition of the life cycle to mark it as hidden is all the states of the ticket.

     
    • Karl

      Karl - 2016-07-27

      This solution worked for me, thank you !

       
    • Emma Obenza

      Emma Obenza - 2017-08-29

      This solution worked for me too but I used it for the private logs.

      Thanks!

       
  • Emma Obenza

    Emma Obenza - 2018-08-30

    Hi! Does this solution work for version 2.4.1? I can't seem to hide my private log in this version. Maybe I'm doing something wrong.

     
  • Jeffrey Bostoen

    Jeffrey Bostoen - 2018-08-30

    You can do it, Emma. This extension will give you an idea:
    https://github.com/jbostoen/iTop-custom-extensions/tree/master/web/extensions/jb-class-request-mgmt-itil-public-log-after-assign

    Worked with 2.4.1 in the past (change datamodel 1.5 to 1.4 for compatibility and remove some part of the datamodel XML of this extension to prevent it from reappearing)

     
    • Emma Obenza

      Emma Obenza - 2018-08-31

      I have doing it with 1.4 with same codes, but this doesn't seem to work.

       <lifecycle>
                                      <states>
                                              <state id="new" _delta="redefine">
                                                      <flags>
                                                              <attribute id="private_log">
                                                                      <hidden/>
                                                              </attribute>
                                                      </flags>
      
                                                      <transitions>
                                                              <transition id="ev_dispatch">
                                                                      <target>dispatched</target>
                                                                      <actions>
                                                                      </actions>
                                                              </transition>
                                                              <transition id="ev_timeout">
                                                                      <target>escalated_tto</target>
                                                                      <actions/>
                                                              </transition>
                                                      </transitions>
                                              </state>
                                  </states>
       </lifecycle>
      
       

      Last edit: Emma Obenza 2018-08-31

Log in to post a comment.

MongoDB Logo MongoDB