Uploaded image for project: 'Xray for Jira'
  1. Xray for Jira
  2. XRAY-8273

Fix conflict between version name and id when executing testsWithReqVersion JQL function

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 6.1.0
    • JQL Functions
    • None
    • Xray 2022 S2, Xray 2022 S3
    • OK

    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

      1. Create a version with a a name of your choice
      2. Get the version id
      3. Create another version where the name is equal to the previous version id
      4. Create a requirement, associate with the version created in step 1.
      5. Cover the requirement with tests
      6. 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            dmdu David Duarte
            Diamantino Campos
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 45 minutes
                2h 45m