on 09-27-2014 2:33 AM
I am working on S&OP and we need to show the user's non-completed tasks number in a badge (decorator). In order to do that we need to get an actual info from Jam every few seconds. Right now, we're doing this by getting all the non-completed tasks for the user and getting the length of the task array. It's working, but it creates a lot of network traffic and is slow. We don't need all the tasks - just their number.
I've checked the API documentation, but I couldn't find what I need.
Is there any API that returns only the number of the non-completed tasks for a certain user?
Have you tried adding $count to the URI?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The REST API we're using is: GET https:/<jam>/v1/current_user/all_action_items and it's working - returns all the non-completed tasks for the current user. I've tried https:/<jam>/v1/current_user/all_action_items$count and also https:/<jam>/v1/current_user/all_action_items/$count In both cases I get 404.
Do you know the correct URI?
Hi Stefan. We can only help you with the public released OData API as documented here: SAP Jam API Documentation
I'm going to bring your request up in our internal API questions and review meeting tomorrow and perhaps we can get an answer for you tomorrow.
Thanks guys,
I was asking about any the public APIs - OData or REST. I know I'm using the old API. The code on our side, that's using it, is old. I'm just reusing it for a new feature.
Since the old API is still used, I would expect that it's supported and documented, even if there is no new development on it. Anyway, I have a document, provided a long time ago by the Jam developers, describing the old API, but I couldn't find what I need in it.
If there is a new OData API for my need or If you can develop and provide something, that's fine too. If not, just let me know - I wanna be sure that I'm not missing something.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.