Skip to content

[Bug][JIRA Issues] Dashboard is double counting issues if those are part of multiple projects #6768

@dwaghulade

Description

@dwaghulade

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

We have two different project added; one for Java & another for PHP
For PHP project dashboard is showing correct number (76) of issues reported within last 30 days.
For Java project dashboard is showing correct number (151) of issues reported within last 30 days.
5 Issues on these two projects are common so when we select both project at a time on the dashboard it should ideally show 222 result instead it is showing 227.

What do you expect to happen

When multiple project selected with same JIRA connection, it should consider unique count for the issues.

How to reproduce

  1. Only create 1 connection and add the boards for PHP and Java
  2. Create 2 DevLake projects: A and B
  3. Add the connection to Project A but only choose the PHP board
  4. Add the connection to Project B but only choose the Java board
  5. Have some common issue created in JIRA which will return on both projects individually i.e. Add lint #3 & [Refactor][Config UI] Simplify and re-organize transformation configuration for Jira #4036
  6. Check no. of issues for project A within last 30 days.
  7. Check no. of issues for project B within last 30 days.
  8. Check no. of issues combined for project A & B. It is just adding up count from Hook up Jira API to get all issues data #6 & first test #7 i.e. double counting common issues.

Anything else

No response

Version

v0.20.0-beta1

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions