Details
-
Bug
-
Status: To Do
-
Medium
-
Resolution: Unresolved
-
6.49.0
-
None
-
2.3
Description
Summary
When issues are transitioned from a status mapped to a column on the Agile board to an unmapped status, they show up in the JQL query result of the removedAfterSprintStart function despite still being part of the active sprint.
Steps to Reproduce the Problem
- Navigate to project Backlog → click on the Create sprint button → fill in the sprint details → click on the Create button
- Drag some issues from the Backlog section to the newly created sprint → click on the Start sprint button
- Create a new issue or ensure that there's at least one issue that you can transition into an unmapped status. Add it to the sprint by filling in the Sprint field via the Edit Issue screen or drag it from the project Backlog to the active sprint
- Open up the Issue Navigator page on another tab → enter the JQL query in the following format and specify the issue key of the target issue in the previous step → hit the Search button
issueFunction in removedAfterSprintStart(<Board name/id>, <Sprint name/id>) AND issue = <issue key>
This should return no result.
- Transition the issue in the previous step into an unmapped status
- Run the JQL query in step 4. Note that the specified issue appears in the search result while the Sprint field value remains on the issue.
Expected Behaviour
Issues that are not removed from an active sprint should not show up in the removedAfterSprintStart JQL query.
Actual Behaviour
Issues that are transitioned into an unmapped status show up in the JQL query result of the removedAfterSprintStart function when they're still part of the sprint.
Additional Info
Reproducible in
- Jira Software 8.20.7 | ScriptRunner 6.49.0
- Jira Software 9.7.1 | ScriptRunner 8.0.0 (latest version)