zowe / zowe-cli

Zowe CLI
Eclipse Public License 2.0
116 stars 85 forks source link

IJob Interface in the zos-jobs-for-zowe-sdk #1995

Closed kraabrsg closed 1 month ago

kraabrsg commented 11 months ago

Is your feature or enhancement request related to a problem or limitation? Please describe

Hi,

when using

let iJob = await GetJobs.getJob(xxx,jobid); 

the returned IJob does not contain a date and timestamp field of the spool job.

Describe your enhancement idea

Add a date and timestamp field.

Describe alternatives you've considered

Provide any additional context

github-actions[bot] commented 11 months ago

Thank you for raising this enhancement request. The community has 90 days to vote on it. If the enhancement receives at least 5 upvotes, it is added to our development backlog. If it receives fewer votes, the issue is closed.

zFernand0 commented 11 months ago

This is a good enhancement. 😋

In the meantime, this workaround might help

    const owner = "USERID";
    await GetJobs.getJobs(session, owner);
    /*
  {
    owner: 'USERID',
    phase: 20,
    subsystem: 'JES2',
    'phase-name': 'Job is on the hard copy queue',
    'job-correlator': 'T00.......:',
    type: 'TSU',
    url: 'https://HOST:PORT/zosmf/restjobs/jobs/T00.......%3A',
    jobid: 'TSU012345',
    class: 'TSU',
    'files-url': 'https://HOST:PORT/zosmf/restjobs/jobs/T00.......%3A/files',
    jobname: 'JOBNAME',
    status: 'OUTPUT',
    retcode: 'CC 0000'
  },
    */
    await GetJobs.getJobsCommon(session, {owner, execData: "Y"});

    /*
  {
    owner: 'USERID',
    phase: 20,
    'exec-member': 'MEMBER',
    'exec-ended': '2024-01-02T15:58:00.600Z',
    subsystem: 'JES2',
    'phase-name': 'Job is on the hard copy queue',
    'job-correlator': 'T00.......:',
    type: 'TSU',
    url: 'https://HOST:PORT/zosmf/restjobs/jobs/T00.......%3A',
    jobid: 'TSU012345',
    'exec-system': 'SYSTEM',
    'exec-submitted': '2024-01-02T15:57:58.320Z',
    class: 'TSU',
    'files-url': 'https://HOST:PORT/zosmf/restjobs/jobs/T00.......%3A/files',
    jobname: 'JOBNAME',
    status: 'OUTPUT',
    retcode: 'CC 0000',
    'exec-started': '2024-01-02T15:57:58.350Z'
  },
    */
github-actions[bot] commented 8 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

zFernand0 commented 8 months ago

Added the keep label since this is a good first issue 😋