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

Test Run/Test Step custom fields created as "Number field" type, are not being returned as number objects when using the Xray Rest API endpoints

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • 4.2.2
    • None
    • REST_API, User Interface
    • None
    • UNCOVERED

    Description

      When using the Xray Rest API to return Test run details, the Test Run and Test Steps custom field created as "Number field" type are not being returned as a number object.

      • Test Run CF - returns a String with the value
      • Test Step CF - returns a String with the value using a separator according to the profile settings (language)

      Steps to replicate

      Step Result
      Create Test Run & Test Step Custom fields as "Number field"
      Values for the Test Step and Test Run CF
      Endpoint response

      Endpoint used: http://localhost:8686/rest/raven/2.0/api/testrun/868

      It should return a number object instead of String. The separator should be used only for float/double.

      Attachments

        Activity

          People

            helder.ferreira Helder Ferreira
            maaf Miguel Fernandes
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: