You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tasks = client.tasks.list(project="1")
for task in tasks:
print( task.data['username'] )
print( task.annotations )
when running this code, task.annotations is printed as None, but with the following workaround I am able to get the annotations:
tasks = client.tasks.list(project="1")
for task in tasks:
print( task.data['username'] )
annotations = client._client_wrapper.httpx_client.request(f"api/tasks/{task.id}/annotations/", method="GET").json()
print( annotations )
Looking at the code, most likely I should have defined fields = "all" on the client.tasks.list for them not to be None, but this is not the specified in short the documentation. If I could choose, I would instead change the default of client.tasks.list as fields ="all" to simplify the API use.
The text was updated successfully, but these errors were encountered:
when running this code, task.annotations is printed as
None
, but with the following workaround I am able to get the annotations:Looking at the code, most likely I should have defined
fields = "all"
on theclient.tasks.list
for them not to beNone
, but this is not the specified in short the documentation. If I could choose, I would instead change the default ofclient.tasks.list
asfields ="all"
to simplify the API use.The text was updated successfully, but these errors were encountered: