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

Incorrect export of mappings 'Test Plan' and 'Test Environments' when the fields are empty

    XporterXMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Xray DC 8.4.0
    • None
    • Document Generator
    • None
    • Jira 10.3.10
      Xray DC 8.4.0

    • UNCOVERED

    Description

      Description
      Incorrect export of mappings 'Test Plan' and 'Test Environments' when the fields are empty

      How to reproduce

      1. Create a Test Execution leaving the fields 'Test Plan' and 'Test Environments' empty
      2. Create a template to export these fields
      3. Export this template from the recently created Test Execution

      Actual result/Attachments
      When empty these fields export as '[]'

      When exporting as XML, the square brackets are also present

      <customfield id="customfield_10135" key="com.xpandit.plugins.xray:test-environments-custom-field">
      <customfieldname>Test Environments</customfieldname>
      <customfieldvalues>
      <customfieldvalue>[]</customfieldvalue>
      </customfieldvalues>
      </customfield>
      
      </customfieldvalues>
      </customfield>
      <customfield id="customfield_10137" key="com.xpandit.plugins.xray:test-plan-custom-field">
      <customfieldname>Test Plan</customfieldname>
      <customfieldvalues>
      <customfieldvalue>[]</customfieldvalue>
      </customfieldvalues>
      </customfield>
      

      Expected result
      Empty fields should export empty

      Version

      • Jira 10.3.10
      • Xray DC 8.4.0

      Attachments

        Activity

          People

            afro Andre Fernandes Rodrigues
            joao.silva João Silva
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: