Confluence Persistence
Asked Answered
T

4

5

Is there a simple in built way to maintain data in Confluence when writing your own macro? This data needs to be queryable across pages, i.e the user will add the macro to their wiki page. Then this data can be queried by another summary macro.

I have read something about Bandana but I am not sure how to get this to work with my plugin.

Tweeddale answered 22/2, 2010 at 23:31 Comment(2)
What is Bandana confluence.atlassian.com/pages/viewpage.action?pageId=164214Argyle
I tried following the Persistence in Confluence instructions but the Bandana Manager was not injected. I am also not sure how to query the data in bandanaTweeddale
L
6

Hopefully this link can help you on the various options on how to persist data in Confluence: http://confluence.atlassian.com/display/CONFDEV/Persistence+in+Confluence Sherif

Laval answered 25/2, 2010 at 22:0 Comment(0)
U
1

This is a little dated - but my old Twikkir plugin for Confluence makes use of Bandana persistence with a plugin. Some details and a link to the source are here:

http://www.every108minutes.com/2008/06/let-your-confluence-tweet.html

Unjust answered 5/2, 2011 at 12:23 Comment(2)
Any chance of a link to a permanent source or put the code in your response?Diandrous
I have updated the link above, but as noted below, it looks like there are better ways of approaching plugin persistence now.Unjust
V
1

Using Bandana for persistence is no longer recommended. Since Confluence 4.3 there is a new ORM layer available for plugins data persistence - Active Objects.

Venn answered 17/1, 2013 at 22:58 Comment(0)
J
0

If you want query data, you need use a macro {sql}. To use this, you need set the data source at first.

Jimjimdandy answered 2/8, 2010 at 8:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.