Uploaded image for project: 'Xray for Jenkins'
  1. Xray for Jenkins
  2. XRAYJENKINS-61

Import Cucumber features task should allow adding values for issue fields/custom fields

    XporterXMLWordPrintable

Details

    • Suggestion
    • Status: Shipped
    • Major
    • Resolution: Done
    • None
    • Jenkins R2.4.0
    • None
    • UNCOVERED

    Description

      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.

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

      Xray Jenkins plugin should also allow to pass any field for when importing feature files.

      • The Import Cucumber features task must provide two new parameters for JSON files to be used as a template 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 user should be able to directly insert the JSON as content in the text field or as a path to the JSON file.
      • 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)

      Attachments

        Issue Links

          Activity

            People

              bmpc Bruno Conde
              dmdu David Duarte
              Votes:
              5 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: