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
235 stars 74 forks source link

JQL for worklogs fails with large project #337

Open s4nf4n opened 8 months ago

s4nf4n commented 8 months 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

v2.56

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

I am sorry, but I am not entirely sure if this should better be an enhancement. But e.g. Worklog Calendar is not working for me.

The Jira Cloud instance contains a very large project. And the JQL used for fetching worklogs fails with Internal Server Error 500. JQL used for Worklog Calendar looks like worklogAuthor in (currentUser()) and worklogDate >= '2023-10-08' and worklogDate < '2023-10-17'.

When using the query console in Jira itself it results in the same error. But it is quite easy to compensate for this by adding AND project!=VERYLARGEPROJECT.

Please add functionality to customize worklog JQL.

Checklist before you submit

srtucker commented 7 months ago

I have this issue as well and have been working with Atlassian cloud support for about a month on the same issue. The problem is that the queries times out. They did say that they add some additional indexing to the tables to make it work better but it seems to be hit or miss. I have found that adding ORDER BY updatedDate DESC to the JQL makes the query much faster. It would be great is there was a setting to add additional JQL to the query that the calendar feature uses.

shridhar-tl commented 6 months ago

@s4nf4n - Are you still facing this issue or it got resolved by itself?

s4nf4n commented 5 months ago

@shridhar-tl Yes still having this issue. Thanks for implementing this. Hope to see this released soon!

s4nf4n commented 5 months ago

@shridhar-tl Webversion is working! Thanks alot.