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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,641,071
Community Members
 
Community Events
196
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.

 

1 answer

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

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