Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-55065

Impossible to create a task list inside the table if table is part of numbered list

    XMLWordPrintable

Details

    Description

      Summary

      If you insert a table as part of the numbered list and attempt to create a task either using Insert, Task List button, or "[]" markup, the task will bounce outside the table.
      Task creation will work inside the table if table is not a member of numbered list, in fact turning off created task with Task List button will automatically remove table from numbered list

      Steps to Reproduce

      1. Create a numbered list
      2. Insert a table
      3. Attempt to add a task list using Insert, Task List button, or "[]" markup

      Expected Results

      Task list is created inside the table while table remains part of numbered list

      Actual Results

      Task list teleports outside and before the table, as seen in gif below:

      Workaround

      You can use Source Editor add-on and edit page source to include task list inside the table, something like this:
      Before:

      <ol>
        <li>test</li>
        <li>test2</li>
        <li>
          <p class="auto-cursor-target">task</p>
          <table>
            <colgroup>
              <col/>
            </colgroup>
            <tbody>
              <tr>
                <th>a</th>
              </tr>
              <tr>
                <td>b</td>
              </tr>
            </tbody>
          </table>
          <p class="auto-cursor-target">
            <br/>
          </p>
        </li>
      </ol>
      

      After:

      <ol>
        <li>test</li>
        <li>
          <p class="auto-cursor-target">task</p>
          <table>
            <colgroup> <col/> </colgroup>
            <tbody>
              <tr>
                <th>
                  <ac:task-list>
      			<ac:task>
      			<ac:task-id>22</ac:task-id>
      			<ac:task-status>incomplete</ac:task-status>
      			<ac:task-body>
                  <span>a</span>
                  </ac:task-body>
      			</ac:task>
      			</ac:task-list>
                </th>
              </tr>
              <tr>
                <td>
                  <ac:task-list>
      			<ac:task>
      			<ac:task-id>23</ac:task-id>
      			<ac:task-status>incomplete</ac:task-status>
      			<ac:task-body>
                  <span>b</span>
                  </ac:task-body>
      			</ac:task>
      			</ac:task-list>
                </td>
              </tr>
            </tbody>
          </table>
          <p class="auto-cursor-target">
            <br/>
          </p>
        </li>
      </ol>
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            imuzaliov Igor M.
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: