shridhar-tl / jira-assistant

Repository containing source code of Jira Assistant browser extension. This is also used to track bugs related to the extension.
https://www.jiraassistant.com
246 stars 77 forks source link

Worklog Report returning blank screen #371

Open jim-mcneill-uk opened 1 week ago

jim-mcneill-uk commented 1 week ago

Checklist before you being

How do you use Jira Assistant?

Browser extension

Are you using cloud version of Jira or self hosted (data center / server) of Jira.

Cloud Jira

Version of Jira Assistant

2.58

What browser are you using?

Chrome

What OS are you using? You need not disclose this if you feel it is irr-relevant for your issue.

Windows

Bug Description

The new worklog report is showing a completely blank screen, first error on the console is a 400, Google insight is:

Explanation

The error "400 (Bad Request)" you're seeing with your Atlassian Jira API request indicates that your JQL query is invalid. Specifically, the problem lies in how you're constructing the key in() clause within your JQL.

The Issue:

You're passing '[object Object]' as the value for the key in() clause. This suggests that instead of a proper array of issue keys, you're passing an object or an object representation as a string.

Checklist before you submit

shridhar-tl commented 6 days ago

Somehow JQL did not form properly it seems. Please look at the console log and send me the screenshot. Additionally also look at the network tab and the params being passed to JIRA and see how query is formed. Based on the error message you provide, key is passed as stringifyed object "[object Object]". But whether that key is something you added as custom filter or it happens internally is something we need to identify. For that which exact Api call and query fails has to be identified. You network request would provide the required information.

jim-mcneill-uk commented 4 days ago

Do these help? JiraAssist-Worklog-Error-Console JiraAssist-Worklog-Error-Network-QueryString JiraAssist-Worklog-Error-Network-QueryString2

shridhar-tl commented 2 days ago

Yes, this helps up to an extent. Let me try to see if I was able to figure it out from code.

jim-mcneill-uk commented 2 days ago

I've found that it works on the webapp, sorry I should have checked that out earlier