#NEWLINE# def ticket_created( self , ticket ) : #NEWLINE# #INDENT# 'Called when a ticket is created.' #NEWLINE# content = ( '%s created %s in component **%s**, priority **%s**:\n' % ( ticket . values . get ( 'reporter' ) , markdown_ticket_url ( ticket ) , ticket . values . get ( 'component' ) , ticket . values . get ( 'priority' ) ) ) #NEWLINE# if ( len ( ticket . values . get ( 'summary' ) ) > 60 ) : #NEWLINE# #INDENT# content += ( '**%s**\n' % ( ticket . values . get ( 'summary' ) , ) ) #NEWLINE# #UNINDENT# if ( ticket . values . get ( 'description' ) != '' ) : #NEWLINE# #INDENT# content += ( '%s' % ( markdown_block ( ticket . values . get ( 'description' ) ) , ) ) #NEWLINE# #UNINDENT# send_update ( ticket , content )