How to format ac:task-list

Schmidt_ Cory
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 28, 2025

I am sending a page create request to Confluence rest api (v2) and have the following ac:task-list with a checkbox and a string value next to it and I am trying to align them properly but it ends up adding an entire line between the checkbox and the value on page creation (all new pages are created with v2 editor which I had set in the space settings). 

<ac:task-list>

    <ac:task>

        <ac:task-id>1</ac:task-id>

        <ac:task-status>incomplete</ac:task-status>

        <ac:task-body>

     <span class="placeholder-inline-tasks"><ac:link>

       <ri:user ri:account-id="1234" ri:local-id="5678" />

      </ac:link> signs off</span>

        </ac:task-body>

    </ac:task>

    <ac:task>

        <ac:task-id>2</ac:task-id>

        <ac:task-status>incomplete</ac:task-status>

        <ac:task-body>

     <span class="placeholder-inline-tasks"><ac:link>

       <ri:user ri:account-id="4321" ri:local-id="8765" />

      </ac:link> signs off</span>

        </ac:task-body>\n

    </ac:task>

</ac:task-list>

 

My question is how do I format it to look more like this

Screenshot 2025-01-28 at 3.47.04 PM.png 

and less like this ... 

Screenshot 2025-01-28 at 3.48.07 PM.png 

Is there some styling I can add without making the page creation reverting to v1 editor? 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events