GithubHelp home page GithubHelp logo

Comments (5)

8bitDesigner avatar 8bitDesigner commented on August 29, 2024

Good call; I'll be honest and say that we've moved to using Jira at Fullscreen, so I don't have any way to confirm or test this. Can I give you contributor permissions so you can commit this change directly to the repo?

from tp-api.

xmik avatar xmik commented on August 29, 2024

That would be ok. I also have 2 new methods to add (to append fields and sort in descending order described on dev.targetprocess.com). But I have to admit, I don't have a lot of experience with JavaScript.

from tp-api.

8bitDesigner avatar 8bitDesigner commented on August 29, 2024

Well, you have commit access. Feel free to open a pull request and ping me if you need a second set of eyes, or a hand walking through my terrible, terrible code.

from tp-api.

xmik avatar xmik commented on August 29, 2024

Thanks

from tp-api.

mathiasschopmans avatar mathiasschopmans commented on August 29, 2024

@xmik The problem is related to console.log as it's not printing all levels of the object.

I prefer to use node's util.inspect to inspect variables, as you do have more fine-grained control. :)

const util = require('util');
console.log(util.inspect(YOUR_OBJECT, { showHidden: true, depth: null }));

From the docs:

The util.inspect() method returns a string representation of object that is primarily useful for debugging. Additional options may be passed that alter certain aspects of the formatted string.

So this can be easily adapted to your example:

var util = require('util');
tp('Tasks')
  .take(1)
  .where("EntityState.Name eq 'Open'")
  .pluck("CustomFields")
  .sortBy('NumericPriority')
  .then(function(err, tasks) {
    console.log(util.inspect(tasks, { showHidden: true, depth: null }));
  }
)

from tp-api.

Related Issues (4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.