Event handler definition

I have also tried:

extra_service_conf[“event_handler_enabled”]=[(“1”, ALL_HOSTS, ALL_SERVICES)]

extra_service_conf[“event_handler”]=[(“jira”,ALL_HOSTS,ALL_SERVICES)]

on main.mk file.

And

define command {
            command_name jira
            command_line /omd/sites/ovh/etc/nagios/conf.d/jira.sh $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEDURATIONSEC$ $HOSTNAME$ $SERVICEDESC$ $HOSTSTATEID$
            }

on a .cfg file under the conf.d/ folder where my scripts are also located.

Which of the following configurations is the correct one?