# Bug AGILE-351 - Multiple active sprints coexist with sharing if there was one active sprint in the subproject before sharing was enabled

Project: Stream agile
Status: closed
URL: https://community.openproject.org/work_packages/AGILE-351

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module | Modules and project features / Backlogs |
| Target versions | 17.8.0 |
| Observed in versions |  |
| Sprint | Sprint 8 |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers | Attila Dombi |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Effort (shirt size) |  |
| Work |  |
| Labor costs |  |

## Description

###   

### Steps to reproduce

1.  Have a subproject that is not receiving sprints.
    
2.  Create and activate a sprint in it.
    
3.  Have a parent project that is sharing sprints with subprojects.
    
4.  Create and activate a sprint in it.
    
5.  Make subproject receive shared sprints.
    
6.  Go to subproject/Backlogs
    

### What is the buggy behavior?

We have two active sprints in a project that receives shared sprints.

### What is the expected behavior?

1.  Multiple active sprints should not coexist with sharing sprints between projects.
    
2.  BacklogSettingsContract:
    
    1.  &nbsp;Switching a project to `receive_shared` is blocked if it has an own active sprint with a work package assigned, or any sprint borrowed from another project via a work package (active or not).
        
    2.  An active sprint with no work packages is allowed through, since it becomes invisible once receiving.
        
    3.   Switching away from `receive_shared` is blocked while a work package is still linked to a shared sprint, since the sharer could activate it independently later.
        
3.  StartContract: starting a project&#x27;s own sprint is blocked while the project is set to receive shared sprints, regardless of `allow_multiple_active_sprints`.
    
4.  SprintComponent: the &quot;Start sprint&quot; button is disabled, with an explanatory tooltip, for the same case the start contract blocks.
    

###   

### Environment information

**OpenProject version**

_17.6_
