Menu

Private log mandatory Change

Delia
2022-03-17
2022-04-12
  • Delia

    Delia - 2022-03-17

    I would like to place the private log as mandatory in the change. It's possible? Any guides to get my bearings? Thanks.

     
  • Delia

    Delia - 2022-03-18

    Yes. But if the private log is established as mandatory, the change would imply for incidents, requirements. Since the field is in the Ticket class. It could be set only mandatory for Changes? Thanks.

     
  • Delia

    Delia - 2022-03-19

    Thank you. I have a question. I have created the extension but where would I put the PHP code? In the datamodel file?

    public function GetAttributeFlags ( $sAttCode , & $aReasons = array ( ) , $sTargetState = '' )
    { if ( $sAttCode == 'private_log' )
    { return ( OPT_ATT_MANDATORY | padre ::GetAttributeFlags ( $sAttCode , $aReasons , $sTargetState ) ) ;
    }
    return parent :: GetAttributeFlags ( $sAttCode , $aReasons , $sTargetState ) ;
    }
    public function GetInitialStateAttributeFlags ( $sAttCode , & $aReasons = array ( ) )
    {
    if ( ( $sAttCode == 'private_log' ) )
    {
    return ( OPT_ATT_MANDATORY | padre :: GetInitialStateAttributeFlags ( $ sAttCode , $aRazones ) ) ;
    }
    return parent :: GetInitialStateAttributeFlags ( $sAttCode , $aReasons );
    }

     
  • Vincent @ Combodo

    Hello Delia,
    There are 2 options

     
  • Delia

    Delia - 2022-04-12

    Thanks for the information.

     

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.