Cannot complete a sprint in a company-managed project if an issue on the sprint was moved to team-managed and converted from Task to Subtask.

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: High
    • Component/s: Backlog - Sprints
    • None
    • 12
    • Severity 3 - Minor
    • 1

      Problem

      Cannot complete a sprint in a company-managed project if an issue previously on the sprint was moved to team-managed and converted from Task to Subtask.

      • When an issue is moved to another project, the Sprint value is copied across - JSWCLOUD-15615.
      • Also, changing the type of an issue from Task to subtask doesn't clear the sprint value of the subtask.
      • If the issue is a task and it's added to a sprint, the sprint value still remains in the Jira database after converting the type to subtasks, but it isn't visible in the UI. The only way to identify this is by searching for issues associated with the affected sprint.

      Environment

      Jira Software Cloud

      Steps to Reproduce

      1. Create a team managed, and company managed project
      2. Create a sprint in both projects with a few tasks and start both sprints
      3. Navigate to the company-managed project and select an issue.
        1. In the meatball menu, click 'Move'
        2. Set the target project as the team-managed project
        3. Set the new issue type to Task
        4. Finish the wizard with all default options
      4. On the team-managed board, find the issue that was moved from the company managed and select it. From the meatball menu, click 'Move' again.
        1. This time keep the project the same (team-managed)
        2. Change the issue type to sub-task
        3. Assign a parent issue (preferably one in the current team-managed sprint)
      5. Attempt to complete the company managed a sprint

      Expected Results

      Sprint should complete successfully

      Actual Results

      It shows a warning that the sprint can't be completed due to incomplete subtasks:

      Sprint cannot be completed as there are incomplete subtasks on the following issues:
      * <subtask_parent_issue_key>
      

      Workaround

      • Below workaround should work:
        • Run the below JQL for the issue key shown on the Sprint Closure screen:
           sprint = <Sprint name/ID> and parent = "From the pop up screen" 
        • Choose Bulk Edit -> Edit -> Sprint for all the sub-task shown in the JQL output screen
        • Choose the "Change Sprint".
        • Jira will remove the parent issue key shown on the Sprint close screen.
      • Contact the support team to remove the broken reference.
      • Another workaround that would work:
        • Go to the issue that was recently converted to sub-task. 
          • In the meatball menu, click 'Move' and restore it back to Task.
        • Move this task into the active sprint.
        • Convert this task back to a sub-task. 
        • Now when you go back to the company-managed project, you should be able to close the sprint.
        • Doing this, will not require contacting the support team.

            Assignee:
            Peter Wong (Inactive)
            Reporter:
            Uchechi I
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: