cancel
Showing results for 
Search instead for 
Did you mean: 

Need an API for getting Jam user (non-)completed task number.

0 Kudos

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?

Accepted Solutions (1)

Accepted Solutions (1)

RuedigerMueller
Advisor
Advisor
0 Kudos

Have you tried adding $count to the URI?

0 Kudos

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?

RuedigerMueller
Advisor
Advisor
0 Kudos

You are calling the old REST API. $count will only work on the new OData API. However, I could not find an endpoint which returns the open action items for a user in the new API.

So I am out of ideas on how to reduce the network load.

robert_horne
Employee
Employee
0 Kudos

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.

0 Kudos

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.

0 Kudos

It would be even better if Jam can provide a bulk API that returns the number of non-completed tasks for multiple users. That would really help us minimize the traffic between S&OP and Jam ...

RuedigerMueller
Advisor
Advisor
0 Kudos

The new API is currently not able to handle your request. We are looking into you request for future versions of the API.

robert_horne
Employee
Employee
0 Kudos

Hi Guys, I was just able to confirm that we don't currently support $count on that end point but we have in the plan for our very short term roadmap.

Answers (0)