awork-io / awork

The awork Github repo supports you with awork integration and api questions. Here you can find links to further documentation, a FAQ with the most frequently asked questions and great code examples to get started even faster.
https://www.awork.com
10 stars 0 forks source link

Are task and subtask included in Request for timetracking? #158

Closed ujora closed 5 months ago

ujora commented 6 months ago

What is your question?

Hi,

We are trying to find a way to include the main task into our reporting when a user tracks time on a subtast. Currently, if the report is being downloaded, the task name is being replaced by the name of the subtask.

My question is whether in the response for a timetracking entry (e.g. timetracking_added), will the name of the task AND subtask show up?

(Maybe you could just paste an example response?)

Thank you!

Do you have a trace id of the call?

No response

sebastianrosch commented 6 months ago

Hi @ujora, I'm not sure I fully understand your requirement. Are you talking about the webhooks? I would recommend to simply set up a webhook in awork using a service like RequestBin so you can inspect the various properties sent to your webhook URL.

https://public.requestbin.com/

ujora commented 6 months ago

@sebastianrosch thanks for the quick reply. Yes, I was talking about the webhooks :) I just tried via Requestbin. Thanks for the recommendation!

From what I can see, tasks (subtasks and tasks) are not being distinguished:

image

Both levels show up as projecttask, there is no differentiation into tasks and subtast

image

and

image

There is no way for us to see in time tracking that employer X was working on subtask X which is itself assigned to task Y. Correct?

sebastianrosch commented 6 months ago

Correct, tasks and subtasks are the same entity, but subtasks have a parent id set, which is the id of another task. If the information you need is not part of the model sent via websocket, you can fetch this information from the API, so for example either the parent task or the project.

sebastianrosch commented 5 months ago

I'm closing this issue. Let us know if you need further help.