In this post the focus is on identifying the list of sql server agent jobs in an instance. The purpose of listing out all the existing jobs is for documentation just to make sure that the jobs in the list are created whenever a new database server is built to replace the existing database server. The script is as shown below:
select sj.name as 'Job Name' from msdb..sysjobs sj left join master.sys.syslogins sl on sj.owner_sid = sl.sid
Hope this helps!