Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,360,808
Community Members
 
Community Events
168
Community Groups

Create Confluence page via API with Jira smart links

We routinely create pages on Confluence by taking data from external sources, building HTML, and POSTing the page to .../api/content.

The pages usually have a bunch of Jira links (e.g. https://{instance}.atlassian.net/browse/{ticket}).

The issue is that the Jira links are created as plain HTML links. If the link is inserted in the page editor, it turns into a smart link (inline view):

jira-link-status-confluence.png

I've been reading about macros but haven't found guidance on what we need to create the pages so that Jira links are already smart links.

Related:

https://community.atlassian.com/t5/Confluence-questions/Adding-macros-to-pages-createdd-through-REST-API/qaq-p/1477540

https://community.atlassian.com/t5/Confluence-questions/Can-I-insert-the-History-macro-through-REST-API-call/qaq-p/1038703

The current workaround is to publish the page, then copy/paste each link over itself to trigger the macro in the editor, which is rather tedious.

 

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
Community showcase
Published in Confluence

Watch 4 Confluence apps compete for Best App Demo in September's Appy Hours

Calling all collaborators! Appy Hours on the Atlassian Community is a monthly event where 4 Partner and app vendor presenters go head-to-head with 5-minute demos for the title of Best App Demo. I...

569 views 0 13
Read article

Atlassian Community Events