Require a method to update all existing jobs from the older service desk format to the new format delivered in 12.1sp1
The existing service desk integration has a "service_desk: 1" job attribute.
This creates tickets in the existing ServiceNow system.
The new value is helpdesk_value = 14
Autosys 12.1SP1
When moving from the old service now integration to the new integration it is required that ALL individual job definitions, that need to use the integration, be updated.
There are two options for mass updating the job definitions.
The first option has an audit trail.
The second does not.
Option 1:
Export the jobs to a file in JIL format.
Update the jobs and then import them back in.
This would provide the recommended audit trail for job modifications.
Option 2:
This option uses direct database queries and DOES NOT HAVE any audit.
The below queries will update ALL jobs to raise tickets.
update ujo_jobset helpdesk_value = 14where joid > 100 and is_active = 1To make changes to an individual job:update ujo_jobset helpdesk_value = 14where is_active = 1 AND join in (SELECT joid FROM ujo_job WHERE job_name = '<JOB_NAME>') ;
To Make changes to all jobs at once:insert into ujo_helpdesk(job_ver, joid, over_num, helpdesk)select j.job_ver, j.joid, j.over_num, 'y'from ujo_job j where j.joid > 0 and j.is_active = 1AND NOT EXISTS (SELECT 1 FROM ujo_helpdesk hWHERE j.joid = h.joid AND j.job_ver = h.job_ver AND h.over_num = j.over_num)
To make changes to an individual job:insert into ujo_helpdesk(job_ver, joid, over_num, helpdesk)select j.job_ver, j.joid, j.over_num, 'y'from ujo_job j where j.joid > 0 and j.is_active = 1 AND joid in (SELECT joid FROM ujo_job WHERE job_name = 'JOB_NAME')AND NOT EXISTS (SELECT 1 FROM ujo_helpdesk h WHERE j.joid = h.joid AND j.job_ver = h.job_ver AND h.over_num = j.over_num);
To Make changes to all jobs at once:UPDATE ujo_job SET has_service_desk=0, service_desk=0 WHERE joid > 0;
To make changes to an individual job:UPDATE ujo_job SET has_service_desk=0, service_desk=0 WHERE joid in (SELECT joid FROM ujo_job WHERE job_name = 'JOB_NAME');
Note:
- This procedure will add the helpdesk attribute with 'y' for all active jobs. No other helpdesk attributes will be present at the job.
- This is a blanket change for all active jobs at once.
Roll Back Proceadure:
UPDATE ujo_jobSET service_desk = 1, has_service_desk = 1, helpdesk_value = 0WHERE helpdesk_value = 14UPDATE ujo_jobSET service_desk = 1, has_service_desk = 1, helpdesk_value = 0WHERE joid in (SELECT joid FROM ujo_job WHERE job_name = '<JOB_NAME>');https://techdocs.broadcom.com/us/en/ca-enterprise-software/intelligent-automation/autosys-workload-automation/12-1-01/administrating/ae-administration/integration-with-help-desk-applications/define-helpdesk-template.html
https://techdocs.broadcom.com/us/en/ca-enterprise-software/intelligent-automation/autosys-workload-automation/12-1-01/administrating/ae-administration/integration-with-help-desk-applications/help-desk-ticket-creation-use-cases/use-case-customise-payload-.html