Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
kraabrsg opened this issue Dec 29, 2023 · 4 comments
Open

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

kraabrsg opened this issue Dec 29, 2023 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers keep Issues with this label will be ignored by the stale bot priority-low Legit issue but cosmetic or nice-to-have

Comments

@kraabrsg
Copy link

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

@kraabrsg kraabrsg added enhancement New feature or request new The issue wasn't triaged yet labels Dec 29, 2023
Copy link

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
Copy link
Member

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'
  },
    */

@zFernand0 zFernand0 added good first issue Good for newcomers priority-low Legit issue but cosmetic or nice-to-have and removed new The issue wasn't triaged yet labels Jan 2, 2024
Copy link

github-actions bot commented Apr 2, 2024

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

@github-actions github-actions bot added the Stale label Apr 2, 2024
@zFernand0 zFernand0 added the keep Issues with this label will be ignored by the stale bot label Apr 3, 2024
@zFernand0
Copy link
Member

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

@zFernand0 zFernand0 removed the Stale label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers keep Issues with this label will be ignored by the stale bot priority-low Legit issue but cosmetic or nice-to-have
Projects
Status: Low Priority
Development

No branches or pull requests

2 participants