Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Tickets.getAllOpenUserTickets returns empty data #2855

Open
rqi14 opened this issue Dec 11, 2024 · 3 comments
Open

[Bug]: Tickets.getAllOpenUserTickets returns empty data #2855

rqi14 opened this issue Dec 11, 2024 · 3 comments
Assignees
Labels

Comments

@rqi14
Copy link
Contributor

rqi14 commented Dec 11, 2024

What is your set up?

Self Hosted Docker

Version

3.3.3

Describe the issue

Tickets.getAllOpenUserTickets returns empty data

With the below code


import requests
from datetime import datetime 
import yaml
url = r"https://leantime.selfhosted***.com/api/jsonrpc"
headers = {
    "accept": "application/json",
    "x-api-key": "lt_***",
}
post_data = {
    "method": "leantime.rpc.Tickets.getAllOpenUserTickets",
    "jsonrpc": "2.0",
    "id": "airflow" + str(datetime.now().timestamp()),
    "params": {
    }
}
response = requests.post(url,json=post_data, headers=headers)

print("Status Code:", response.status_code)
formatted_yaml = yaml.dump(response.json(), sort_keys=False)
print("Response Body:")
print(formatted_yaml)

I get

Status Code: 200
Response Body:
jsonrpc: '2.0'
result: []
id: airflow1733902700.328154

In the v3.3.2 it was working fine.

Reproduction steps

  1. send post request to leantime.rpc.Tickets.getAllOpenUserTickets with no parameters
  2. read output

Error Logs (LEANTIMEFOLDER/storage/logs)

No response

@rqi14
Copy link
Contributor Author

rqi14 commented Dec 12, 2024

After some further testing, I've found leantime.rpc.Tickets.getAll does not work either

@marcelfolaron
Copy link
Contributor

Thanks. I'll take a look at the endpoints. I assume there are no log entries?

@rqi14
Copy link
Contributor Author

rqi14 commented Dec 22, 2024

Thanks. I'll take a look at the endpoints. I assume there are no log entries?

Hi. There is no error in the logs. It only says it is successful. This is why I did not post it. I can do more testing and post it here if it is helpful

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants