Uploaded image for project: 'Xray for Jira Cloud'
  1. Xray for Jira Cloud
  2. XRAYCLOUD-538

As a user, when importing execution results with Cucumber format, it should be possible to include any JIRA fields just like the JIRA REST API, by using a multipart endpoint

    XporterXMLWordPrintable

Details

    • Story
    • Status: Closed
    • Major
    • Resolution: Done
    • None
    • 1.006.000
    • Multipart, REST API
    • None

    Description

      When importing execution results with the Xray REST API and the Cucumber format, it should be possible to define any JIRA field to create/update the corresponding Test Execution issue.

      For this, a new multipart endpoint shall be provided. One of the parts contains the JSON cucumber report content corresponding to the test runs; the other part contains the info JSON content, related with the fields of the Test Execution. The later follows the syntax of JIRA REST api for updating/creating issues.

      POST /api/v1/import/execution/cucumber/multipart

      Example content of info JSON part, with the fields to be set in the Test Execution: 

      {
          "fields": {
              "project": {
                  "id": "10402"
              },
              "summary": "My Test Execution",
              "issuetype": {
                  "id": "10007"
              },
              "components" : [
                  {
                  "name":"Interface"
                  },
                  {
                  "name":"Core"
                  }
              ]
          }
      }

       

       

      Attachments

        Activity

          People

            ampr Andre Rodrigues [X] (Inactive)
            bmpc Bruno Conde
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1 day
                1d
                Remaining:
                Time Spent - 1 hour Remaining Estimate - 7 hours
                7h
                Logged:
                Time Spent - 1 hour Remaining Estimate - 7 hours
                1h