When the "Days in column" setting is enabled, an incorrect number of dots is displayed in the Sprint cards

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

    

Summary

This KB article lists a few scenarios where an incorrect number of dots is displayed in the Sprint Cards, when the option Days in column is enabled for a board in Board > Configuration > Columns:


The 2 scenarios that have been identified so far are listed below:

Scenario 1

The number of dots is higher than the expected number (for example: the number of dots shows 20 days in a card, even though the issue has just been transitioned to the status for the very first time):


Scenario 2

The number of dots is showing a huge number of days (for example: around 19k days!):


Environment

Jira Server/Data Center 7.0.0 and any higher version.

Diagnosis

Diagnosis for Scenario 1

Take a look at the post-functions associated to the transition going into the status in the column where you see that the number of dots is incorrect, and check if you see both post-functions listed below:

  • 1 post function showing a class name:

    Type: class
    Class: com.atlassian.jira.workflow.function.issue.UpdateIssueStatusFunction
  • 1 post function showing a "user friendly" name:

    Set issue status to the linked status of the destination workflow step.

If you see that both post-functions are present in the same transition, then this KB article is relevant and you can move on to the sections Root Cause for Scenario 1 and Solution for Scenario 1.

Note that both post-functions are referring to the exact same post-function. The only difference is that, in one case its class name is showing, or in the other case its user friendly name is showing.

See screenshot below for reference:

Diagnosis for Scenario 2

Take a look at the post-functions associated to the transition going into the status in the column where you see that the number of dots is incorrect, and check if you can find the post function that is meant to update the issue history. Please note that, depending on some circumstances, this post-function might be either showing in the UI:

  • as its class name:

    Type: class
    Class: com.atlassian.jira.workflow.function.issue.GenerateChangeHistoryFunction
  • or its "user friendly" name:

    Update change history for an issue and store the issue in the database.

Please keep in mind that both names refer to the exact same post-function.

If this post-function is missing from the transition, then this KB article is relevant and you can move on to the sections Root Cause for Scenario 2 and Solution for Scenario 2.

You can refer to the screenshot below for reference:

Cause

Root Cause for Scenario 1

The transition contains a duplicate post-functions that is setting the status twice during the transition, which can be seen in the issue history, and which causes some issue history corruption:

Due to the fact that the data related to the issue history is corrupted, the issue card in the Sprint view is showing an incorrect number of dots.

Root Cause for Scenario 2

The transition is missing the post-function that is supposed to update the issue history whenever the issue transitioned to a new status.

Due to the fact that the data related to the issue history is missing for the issue, the card in the Sprint view is incorrectly assuming that the issue was transitioned to the new status at the Epoch/Unix timestamp "0". Since this timestamp corresponds to the date "Thursday, January 1, 1970 12:00:00 AM" which was more than 19k days ago the card shows more than 19k dots.

Solution

Solution for Scenario 1

Remove the duplicate post-function from the transition by removing the one which is showing the class name com.atlassian.jira.workflow.function.issue.UpdateIssueStatusFunction, as shown in the screenshot below:

Make sure to publish the workflow after you make this change.

Solution for Scenario 2

Add to the transition the post-function which is updates the issue history by:

  • Clicking on the link Add post function 
  • Selecting the post-function listed as Generate Change History - Updates change history for an issue and stores the issue to the database.
  • Clicking on the Add button
  • Publishing the workflow



Last modified on Mar 7, 2024

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.