"Only show Sprints in this Project" not working as expected.
Platform Notice: Cloud - This article applies to Atlassian products on the cloud platform.
Summary
At times, we encounter an issue where users are trying to set a value to the Sprint field. However, when the Sprint field is selected, the user gets the name of all the Sprints unless the option "Only show Sprints in this Project" is checked.
This KB article lists some of the causes that explain why sprints can be missing from some issues when the option "Only show Sprints in this Project" is checked.
Environment
Jira Cloud
Diagnosis
For a Sprint to show in the Sprint dropdown field filter when the option "Only show Sprints in this Project" is checked., the Sprint needs to fit in the scenarios below:
If you are looking at an issue from a specific Project and that project doesn't host any Scrum boards, or it does host Scrum boards but they have no active or future sprints, then when you elect to turn on the Sprint field filter, no sprints will be displayed. That filter will show only active and future sprints from Scrum boards that are hosted by the same project as the one in which the issue exists.
Also, It does not search for all Scrum boards in which the project may be in scope. It can only look at the boards where the location is set to that project.
Cause
Root Cause 1
The board location is set to a User profile
- The Sprint cannot be found if the Board location is set to a specific user profile, because this primarily means that the Scrum board is not hosted by any project.
Root Cause 2
The board location is set to a Project but there are no Sprints created in that project
- The Sprint cannot be found if there are no Sprints created in that specific project. You can open the below URL and search for "projectkeys' in the output to check for the Projects in which the Sprints are created.
https://Your-Domain.atlassian.net/rest/greenhopper/1.0/sprint/picker?query=&maxResults=10&maxActiveSprints=5
Solution
For a Sprint to show in the Sprint field filter when the option "Only show Sprints in this Project" is checked, ensure that the Board location is not set to a Specific user profile and there are Sprints created in a Project