Uploaded image for project: 'Jira Software Data Center'
  1. Jira Software Data Center
  2. JSWSERVER-13333

Moving Jira issues to a new project will automatically delete closed/completed sprints from the Sprints field

      Summary

      When moving a Jira issue from one project to another project, any completed Sprint that is in the Sprints field will be automatically deleted from the issue.

      This bug happens regardless of the way the issue is moved:

      • It happens if the issue is moved from the issue view screen (using the option More > Move)
      • If also happens when bulk moving multiple issues to a new project, from the issue search page

      The closed sprint will also be removed from the field if the issue is moved to another project from the More → Move option.

      Note that the bug will not happen if the user is not allowed to edit the moved issues in the target project (more information about that in the notes section below).

      Steps to Reproduce

      1. Create 2 project A and B
      2. Login as a user who is granted all the basic permissions (Edit issues, Move issues, Manage Sprints...) in both projects
      3. Create a sprint
      4. Create an issue and add it to the sprint
      5. Close the sprint and move open issues to backlog
      6. Open the issue in the issue view screen
      7. Click on the button More > Move, and move the issue to a new project

      Expected Results

      The closed sprint should not be deleted from the Sprints field.

      Actual Results

      The closed sprint is automatically deleted from the Sprints field.

      When checking the history, we can see that this deletion happened automatically right after the move was completed, on behalf of the user who executed the move:

      Workarounds

      Suggestion 1

      Make sure that the Sprint is active (or re-open it if it's already closed), before moving issues to a new project

      Suggestion 2

      If the Jira issues have already been moved and the completed Sprints were deleted, then you can re-add the completed Sprints to these issues either by using the CSV import functionality, or by using the bulk edit issue functionality,

      Notes

      Situation(s) where the bug does not occur

      The bug will only occur if the user moving issues is allowed to edit issue in the target project. For example, in the 2 scenarios below, the bug will not occur, meaning that the completed sprints will not be removed from the Sprints field:

      • Scenario 1: the user is not granted the Edit Issues permission in the target project
      • Scenario 2: the user is not allowed to the edit the issue because of one of the status in a workflow that belongs to the target project is configured with the property jira.issue.editable set to false, and after the issue is moved, the issue lands in that status

      Another impact of the bug

      The Velocity Report loses the team velocity history

            [JSWSERVER-13333] Moving Jira issues to a new project will automatically delete closed/completed sprints from the Sprints field

            Maria Marzec added a comment - - edited

            Dear All,

            Let me explain why such changes were introduced to this ticket.

            This ticket had been incorrectly defined, as it contained two separate problems. After conducting a comprehensive investigation of the ticket's history, it has been determined that migrating the Edit Sprints Field issue is the most appropriate course of action. This is how the ticket's history looks:

            1. In 2016, the issue was first created with the summary, "Bulk edit of Sprint field will remove issues from closed sprints", and it accumulated a maximum User Impact Score (UIS) of 10 over a period of four years.
            2. In 2020, the issue was modified to indicate that a similar bug was also present when performing Bulk Move operations. As a result, the issue began to gather greater impact, ultimately reaching a maximum UIS of 127.
            3. In 2022, the issue was updated to its current state, "Moving Jira issues to a new project will remove issues from closed sprints", which further increased its impact, reaching a maximum UIS of 263.

            This is strong evidence that the ticket's high impact comes from the behavior associated with Issue Move operations. We apologize for any confusion caused by the previous misdefinition of the ticket. To address this, the original problem associated with Bulk Edit of Sprints Field has been moved to a new JAC ticket (https://jira.atlassian.com/browse/JSWSERVER-21518). I have also linked the tickets together to provide better visibility. If you have been affected by this problem, please add yourself as a watcher to the new JAC ticket.

            We are also pleased to announce that the second problem associated with the Issue Move operations was resolved and the fix was released as a part of version 9.6.

            Kind Regards,
            Maria Mikolajczak
            Jira Server Developer

            Maria Marzec added a comment - - edited Dear All, Let me explain why such changes were introduced to this ticket. This ticket had been incorrectly defined, as it contained two separate problems. After conducting a comprehensive investigation of the ticket's history, it has been determined that migrating the Edit Sprints Field issue is the most appropriate course of action. This is how the ticket's history looks: In 2016, the issue was first created with the summary, " Bulk edit of Sprint field will remove issues from closed sprints ", and it accumulated a maximum User Impact Score (UIS) of 10 over a period of four years . In 2020, the issue was modified to indicate that a similar bug was also present when performing Bulk Move operations . As a result, the issue began to gather greater impact, ultimately reaching a maximum UIS of 127 . In 2022, the issue was updated to its current state, " Moving Jira issues to a new project will remove issues from closed sprints ", which further increased its impact, reaching a maximum UIS of 263 . This is strong evidence that the ticket's high impact comes from the behavior associated with Issue Move operations . We apologize for any confusion caused by the previous misdefinition of the ticket. To address this, the original problem associated with Bulk Edit of Sprints Field has been moved to a new JAC ticket ( https://jira.atlassian.com/browse/JSWSERVER-21518 ). I have also linked the tickets together to provide better visibility. If you have been affected by this problem, please add yourself as a watcher to the new JAC ticket. We are also pleased to announce that the second problem associated with the Issue Move operations was resolved and the fix was released as a part of version 9.6. Kind Regards, Maria Mikolajczak Jira Server Developer

            Chuck V added a comment - - edited

            RE @Jamie Gerace's comment: I concur. What gives Atlassian team? If you're going to transfer the issue/ownership, you should transfer the votes & watchers too!!!
            (Maybe Jira won't let the support team clone the voters & watchers? ... if that's true I believe it further underscores the need for Atlassian to fix this bug)

            Chuck V added a comment - - edited RE @Jamie Gerace's comment: I concur. What gives Atlassian team? If you're going to transfer the issue/ownership, you should transfer the votes & watchers too!!! (Maybe Jira won't let the support team clone the voters & watchers? ... if that's true I believe it further underscores the need for Atlassian to fix this bug)

            danna deaton added a comment - - edited

            They didn't even link the two issues together.  This issue has been open for 7 years, the new one a few months.

            danna deaton added a comment - - edited They didn't even link the two issues together.  This issue has been open for 7 years, the new one a few months.

            So you moved it from this ticket with many more affected customers to a new ticket with few affected customers, sketch.

            Jamie Gerace added a comment - So you moved it from this ticket with many more affected customers to a new ticket with few affected customers, sketch.

            Dear All,
            The current issue :
                When moving a Jira issue from one project to another - any completed Sprint that is in the Sprints field will be automatically deleted from the issue.
            will be continued in this JAC ticket, please be informed that we are working on solving this issue 

            As this ticket was originally related to another issue - the initial report been opened under new JAC :
            https://jira.atlassian.com/browse/JSWSERVER-21518

            Issue details:
                Bulk edit and of Sprint field and Bulk Move will remove issues from closed sprints
                When a sprint is closed but it still have open issues, then the issues go back to backlog (or a new sprint). If an user tries editing the sprint field on one of these issues, he has the option to add a new value but he can't remove the closed sprint. When the sprint field is edited through 'Bulk Operation', the closed sprint is removed from the field and so a new value is added instead of keeping both.

            If you experience this issue - please watch it under new JAC ticket

            Anna ScisÅ‚owska added a comment - Dear All, The current issue :     When moving a Jira issue from one project to another - any completed Sprint that is in the Sprints field will be automatically deleted from the issue. will be continued in this JAC ticket, please be informed that we are working on solving this issue  As this ticket was originally related to another issue - the initial report been opened under new JAC : https://jira.atlassian.com/browse/JSWSERVER-21518 Issue details:     Bulk edit and of Sprint field and Bulk Move will remove issues from closed sprints     When a sprint is closed but it still have open issues, then the issues go back to backlog (or a new sprint). If an user tries editing the sprint field on one of these issues, he has the option to add a new value but he can't remove the closed sprint. When the sprint field is edited through 'Bulk Operation', the closed sprint is removed from the field and so a new value is added instead of keeping both. If you experience this issue - please watch it under new JAC ticket

            For a particular sprint, one can see the old/new sprint values in the Sprint Report details. 

            Apryl Harris added a comment - For a particular sprint, one can see the old/new sprint values in the Sprint Report details. 

            Assuming a set of issues has already been moved, how can the affected issues and the missing values be identified?  I am not aware of a JQL option that identifies issues where the Sprint value changed, and even if you know that a change has occurred, how do you know what the old value was without going to every issue and recording the old values?

            Robert Horan added a comment - Assuming a set of issues has already been moved, how can the affected issues and the missing values be identified?  I am not aware of a JQL option that identifies issues where the Sprint value changed, and even if you know that a change has occurred, how do you know what the old value was without going to every issue and recording the old values?

            this is an absolutely fundamental problem, especially for calculating velocity

            Václav Durchánek added a comment - this is an absolutely fundamental problem, especially for calculating velocity

            Ben Weisman added a comment - - edited

            Why was this reduced to medium priority? It's a bug that can ruin systems.

            Ben Weisman added a comment - - edited Why was this reduced to medium priority? It's a bug that can ruin systems.

            Eric T. added a comment -

            I raised this issue with our Jira Align TAM today in hopes he might nudge this bug along. 

            Eric T. added a comment - I raised this issue with our Jira Align TAM today in hopes he might nudge this bug along. 

            Lysa Hayes added a comment -

            The only thing I have encountered is that you can include the closed sprint in the bulk update to retain the information (e.g., <sprint_1_closed_ID>,<sprint_2_open_ID>). This is probably not a work around for all situations.

            Lysa Hayes added a comment - The only thing I have encountered is that you can include the closed sprint in the bulk update to retain the information (e.g., <sprint_1_closed_ID>,<sprint_2_open_ID>). This is probably not a work around for all situations.

            This is insane and needs to moved to the highest of priority. There is no documentation on this and it's literally ruining systems.

            Ben Weisman added a comment - This is insane and needs to moved to the highest of priority. There is no documentation on this and it's literally ruining systems.

            Markus B added a comment -

            @Jamie Gerace this is absolutely ridiculous. We just faced the same problem when we bulk moved issues into a different project. Were you able to work around this issue on further bulk moves? Any idea how to retain the sprint information when closed issues in completed sprints are moved from one project to another?

            Markus B added a comment - @Jamie Gerace this is absolutely ridiculous. We just faced the same problem when we bulk moved issues into a different project. Were you able to work around this issue on further bulk moves? Any idea how to retain the sprint information when closed issues in completed sprints are moved from one project to another?

            Rose Ridder added a comment - - edited

            As Jamie Gerace said, this is particularly problematic for our team when moving issues between project because there is no warning of any kind. We checked all the normal places, pressed Move, and now we have lost all our metrics!

            It also happened when moving an individual issue, so it appears there is no way to move closed issues between projects without losing all that history.

            Rose Ridder added a comment - - edited As Jamie Gerace said, this is particularly problematic for our team when moving issues between project because there is no warning of any kind. We checked all the normal places, pressed Move, and now we have lost all our metrics! It also happened when moving an individual issue, so it appears there is no way to move closed issues between projects without losing all that history.

            This kind of bug should not exist anymore in such a mature product. It's been almost 5 years since this was logged and I don't get it why there is still no solution.

            Jordy Maes added a comment - This kind of bug should not exist anymore in such a mature product. It's been almost 5 years since this was logged and I don't get it why there is still no solution.

            Absolutely astonishing that this bug was reported in 2016 and still no warning given in the UI about this during a bulk move operation. Absolutely devastating consequences per the comment above. We had no idea this was a bug and just completely corrupted our system essentially and will require hundreds+ hours to even attempt to remediate to an acceptable level. 

            IT Platforms added a comment - Absolutely astonishing that this bug was reported in 2016 and still no warning given in the UI about this during a bulk move operation. Absolutely devastating consequences per the comment above. We had no idea this was a bug and just completely corrupted our system essentially and will require hundreds+ hours to even attempt to remediate to an acceptable level. 

            I am migrating 150k+ issues from one project to multiple others and all closed sprints have wiped out.

            I have searched the community and google and there is NOTHING about closed sprints not carrying from one project to another in the same instance.

            And another important thing to note...when I am bulk moving, there is NOTHING telling me that sprint field will be wiped. I've already migrated 50k issues from one project to multiple others and all historical sprint data is GONE, no warning, no documentation, nothing. I am FURIOUS. I have been so incredibly diligent to ensure data remains on issues in this migration and then this happens. 

             

            If there is any documentation I'm missing please direct me to it, or at a minimum tell me that closed sprints won't carry over when issues are moved from one project to another if that's the expected behavior.

            Jamie Gerace added a comment - I am migrating 150k+ issues from one project to multiple others and all closed sprints have wiped out. I have searched the community and google and there is NOTHING about closed sprints not carrying from one project to another in the same instance. And another important thing to note...when I am bulk moving, there is NOTHING telling me that sprint field will be wiped. I've already migrated 50k issues from one project to multiple others and all historical sprint data is GONE, no warning, no documentation, nothing. I am FURIOUS. I have been so incredibly diligent to ensure data remains on issues in this migration and then this happens.    If there is any documentation I'm missing please direct me to it, or at a minimum tell me that closed sprints won't carry over when issues are moved from one project to another if that's the expected behavior.

            Spam Me added a comment - - edited

            We have Jira installed locally and we faced the same problem. This is a major issue because at the end of the sprint not all issues must go back to the backlog, some should go to the next sprint, but in Jira you can only choose to move all not finished issues back to the backlog or to the next sprint. Therefore we moved all not finished issues back to the backlog and then we used a bulk update to move only some issues to the next sprint, but this operation deleted the previous completed sprint from them.

            The only work-around that we can imagine is to use the scrum board to find all the issue and move them manually one after the other in the next sprint or configure a quick filter with all the issue keys to simplify the process. Anyway this is a bug, because also in the Atlassian documentation is written:

            Change Sprint You need to specify the sprint ID.
            • This operation only affects active and future sprints, i.e. closed/completed sprints are not included when bulk editing the Sprint field.

            Spam Me added a comment - - edited We have Jira installed locally and we faced the same problem. This is a major issue because at the end of the sprint not all issues must go back to the backlog, some should go to the next sprint, but in Jira you can only choose to move all not finished issues back to the backlog or to the next sprint. Therefore we moved all not finished issues back to the backlog and then we used a bulk update to move only some issues to the next sprint, but this operation deleted the previous completed sprint from them. The only work-around that we can imagine is to use the scrum board to find all the issue and move them manually one after the other in the next sprint or configure a quick filter with all the issue keys to simplify the process. Anyway this is a bug, because also in the Atlassian documentation is written: Change Sprint You need to specify the sprint ID. This operation only affects active and future sprints, i.e. closed/completed sprints are not included when bulk editing the Sprint field.

            As we can't use bulk edit to overcome JSWSERVER-20206 which affects us heavily, we'd really love to see this fixed AND have the severity set higher than "Minor" - using bulk edit is recommended as the workaround for the referred issue... makes no real sense, doesn't it ?

            CHD CM Support added a comment - As we can't use bulk edit to overcome JSWSERVER-20206 which affects us heavily, we'd really love to see this fixed AND have the severity set higher than "Minor" - using bulk edit is recommended as the workaround for the referred issue... makes no real sense, doesn't it ?

            Hari Iyer added a comment -

            I'd love to see this feature

            Hari Iyer added a comment - I'd love to see this feature

            I'd love to see this fixed, or an additional bulk edit option to remove specific sprints from tickets instead of replacing everything that is there.

            Matthew Klimuszka added a comment - I'd love to see this fixed, or an additional bulk edit option to remove specific sprints from tickets instead of replacing everything that is there.

              255109c6c964 Maria Marzec
              psilveira Paula Silveira
              Affected customers:
              67 This affects my team
              Watchers:
              72 Start watching this issue

                Created:
                Updated:
                Resolved: