I have a confluence page.
Is it possible:
1. Find macro on the page which has name `Page properties`
2. Is it possible to update fields of macro `Page Properties` such as `Тип`, `Код`, `Модуль` programmatically through Confluence API?
3. Is it possible to delete field such as `Ссылка` programmatically through Confluence API?
I've attached an image to the message to clarify what I want.
Is it possible to do?
yes, this is possible! It just requires quite a bit of programming on your side. In fact, our Confluence app Diary actually makes use of this exact mechanism. Except, it doesn't use the Page Properties table, but a table inside it's own macro body. However, if you think it helps you, you can go have a look at how we did it. :)
Basically, you first want to get the Storage Format of your page via the Confluence REST API. You can then parse the XHTML, change the <table> in the Page Properties Macro however you want, and save the manipulated Storage Format again, using another Confluence REST API endpoint.
I've also already answered a very similar question to this over at the Developer Community - might also be worth checking out.
Best regards,
Sven
@Sven Schatter _Lively Apps_ I am trying to do something similar in a custom macro but has some problems, could you please help me out?
Could you please advice me what I need to do in this case? Thank you very much!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.