Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Create Confluence page via API with Jira smart links

Joshua Mitchell September 1, 2022

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.

 

1 answer

0 votes
Vladimir Pushkarev December 13, 2022

Have you managed to find a solution? We are having the same problem, and I have no idea where to dig.

Joshua Mitchell July 31, 2023

No, we're still hoping to find an answer.

Suggest an answer

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

Atlassian Community Events