renderedFields API emits html where the next element is outside the initial table html tag.

XMLWordPrintable

    • 2
    • Minor

      Issue Summary

      When we do a GET request _ with _fields=description&expand=renderedFields , The issue has a simple description with a table and a couple of values in the cell text\n\ntext where \n is new line (enter on keyboard). The HTML code returns multiple <table class=‘confluenceTable’>  instead of one 

      Steps to Reproduce

      • Create a Jira issue with a simple table
      • Add values in one cell with text\n\ntext 
      • Use a Get call with postman as below
      https://demo.atlassian.net/rest/api/3/issue/AP-1?fields=description&expand=renderedFields  
      • You will see multiple <table class=‘confluenceTable’>

      Expected Results

      Only one table should be returned

      Actual Results

      We are seeing the table duplicated twice

      Workaround

      Have only one newline in the table cells, causing the generated html to be formatted as expected. 

            Assignee:
            Unassigned
            Reporter:
            Varun
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: