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

Cucumber feature REST API - support for required fields

    XporterXMLWordPrintable

Details

    • R3.5.0 S3, R3.5.0 S2
    • OK

    Description

      Cucumber feature REST API - support for required fields

      Allow adding values for issue fields/custom fields when using the cucumber feature REST API. (import/feature)

      If Jira is configured with required fields for the Test Issue type it won't be possible to use this endpoint as it is currently not possible to provide values for these fields in the REST API request.

      ACs:

      • The "Import Cucumber Tests" endpoint for importing feature files must provide two a new parameters for JSON files to be used as a templates for creating new Tests and Pre-Conditions respectively.
      • Xray must support a new parameter named "testInfo" to pass the JSON file containing the fields for creating Tests.
      • Xray must support a new parameter named "preCondInfo" to pass the JSON file containing the fields for creating Pre-Conditions.
      • The JSON file format is the same as Jira uses for the REST API (https://docs.atlassian.com/software/jira/docs/api/REST/8.2.0/?_ga=2.111455874.746998918.1558343025-232874918.1557136424#api/2/issue-createIssue)
      • The "Summary" and "IssueType" fields will be ignored by Xray.
      • The "parent" field also makes no sense, as Tests and Pre-Conditions can't be Sub-Tasks. Xray will ignore this field as well.
      • Xray will return any error originated in Jira when creating Tests or Pre-Conditions.

      Attachments

        Issue Links

          Activity

            People

              xcfe Xavier Fernandes
              cgso Claudio Sousa
              Votes:
              10 Vote for this issue
              Watchers:
              3 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 - 1 week, 2 days, 15 minutes
                  1w 2d 15m