When trying to build a command for the auto_helpdesk.
Example Command Used that is not working as expected:
auto_helpdesk
-J <JOBNAME>
-T TestJobTerminatedTemplate
-K short_description="AutoSys Job Name: <JOBNAME> has Terminated with code 9"
-K description="AutoSys Job Name: <JOBNAME> has Terminated with code 9"
-K u_job_name="<JOBNAME>"
-K u_error_code="9"
-L https://<hostname>.<DOMAINNAME>.com/api/now
-U <UserID>
-P <PASSWORD>
the ticket does open in Service Now with this command.
it picks up the values in the specific template (-T TestJobTerminatedTemplate), however, it is not picking up any values specified with the -K options.
Is using the -T and -K option in the same command allowed?
Autosys R12.1SP1
Either be using the -T for the template, which has the key pairs to use or specify them individually with the -K options.
These options are not expected to be used together as there is no way to set a precedence on which one to use if there is a conflict.
If you review the examples in the documentation they show -T and -K examples being used separately.
NOTE:
The -T option is required to be used with the -J option and the -K option is required to be used with the -G option