This is reproducible on Data Center: no
- Create a team-managed (formerly next-gen) Scrum project. (Or alternatively enable the Sprints feature for your team-managed board.)
- In a sprint (Sprint 1) create a task and a subtask whose parent is that task.
- Search for the issues in that sprint using JQL like project = <your project> and Sprint = <your sprint id> ORDER BY created DESC. (This example is using the issue navigator's JQL search, but it will affect anywhere JQL is used such as custom filters.) You shouldn't see any subtasks returned due to https://jira.atlassian.com/browse/JSWCLOUD-18398. (When https://jira.atlassian.com/browse/JSWCLOUD-18398 is fixed, we expect to see the subtasks match the sprint that their parent is in.)
- In another sprint (Sprint 2), create a story.
- In issue navigator, search for the issues in Sprint 2. You should see that story.
- Using the issue move functionality, change the story to be a subtask of the task that's in Sprint 1.
- Use JQL to search for the issues in Sprint 1. (Same search as step 3). You should see the same results as step 3.
- Use JQL to search for the issues in Sprint 2. (Same search as step 5).
The subtask that used to be a story should match sprint related JQL based on it's parent's sprint value.
The subtask that used to be a story will match sprint related JQL based on the sprint it was in when it was a story.
Currently there is no known workaround for this behavior. A workaround will be added here when available