Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
Xray 2022 S2, Xray 2022 S3
-
Description
Description
testsWithReqVersion JQL function may not work properly upon scenarios where there are version names that are equal to version database ids.
So, using the function like below can give wrong results:
issue in testsWithReqVersion('<PROJECT_KEY>', '<VERSION_NAME>')
Pre-conditions
You should have an environment where there is a version name equal to another version database id. These versions can be in separate projects:
example:
Version ID | Version Name |
---|---|
21000 | Version 1 |
19000 | 21000 |
How to reproduce
- Create a version with a a name of your choice
- Get the version id
- Create another version where the name is equal to the previous version id
- Create a requirement, associate with the version created in step 1.
- Cover the requirement with tests
- Run the JQL:Â issue in testsWithReqVersion('<PROJECT_KEY>', '<VERSION_NAME>')
Actual result/Attachments
**The JQL will not return the expected tests
Expected result
The JQL should return the tests covering the requirement in that fix version