Skip to content

Not getting any information related to WBS #14

@sebworks2024

Description

@sebworks2024

I'm trying to obtain the WBS numbers but not getting any information. The response is currently returning null. I'm using the sample project file from this repo. What are the proper steps for get WBS information?

Thank you

import { TasksApi  } from "@asposecloud/aspose-tasks-cloud";
import { UploadFileRequest, GetTaskLinksRequest, GetOutlineCodesRequest, GetWbsDefinitionRequest } from "@asposecloud/aspose-tasks-cloud";
import fs from 'fs';

// Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required).
const tasksApi = new TasksApi("", "");

const fileName = "SummaryTaskWithSubtasks.mpp";
const localPath = "./" + fileName;
const remotePath = "/data";
const remoteFullPath = remotePath + "/" + fileName;
const uploadedFiles = new Set();

const request = new UploadFileRequest();
request.path = remoteFullPath;
request.file = fs.readFileSync(localPath);
uploadedFiles.add(remoteFullPath);
await tasksApi.uploadFile(request);

const getWbsDefinitionRequest = new GetWbsDefinitionRequest();
getWbsDefinitionRequest.name = fileName;
getWbsDefinitionRequest.folder = remotePath;

const result = await tasksApi.getWbsDefinition(getWbsDefinitionRequest);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions