Comments (5)
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.
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.
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.
Thanks
from tp-api.
@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)
- option to use http HOT 3
- Release 1.0.6 HOT 3
- Consider a Promise-style `then` & `catch` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tp-api.