页面树结构

SINCE V1.3.0

You need to Database Connection Configuration to be able to retrieve data from correct database. 

Steps

  1. Create a new Confluence page or edit an existing Confluence page
  2. Insert SVG Chart Macro
  3. Insert a code block macro inside the SVG Chart Macro
  4. Edit the code block macro and choose SQL in the syntax highlighting field. (Currently only support SQL query statement starting with select )

  5. Edit the code block macro, fill in the database name into the title field of code block macro. If the database name is not provided, the first available database will be used. 


SQL Example

Issue count group by Project and Issuetype:

Confluence
select s.spacename,count(case when contenttype='PAGE' then contenttype else null end) as 页面, count(case when contenttype='ATTACHMENT' then contenttype else null end) as 附件 from CONTENT c join SPACES s on c.spaceid=s.spaceid JOIN SPACEPERMISSIONS sp ON s.spaceid=sp.spaceid where sp.PERMALLUSERSSUBJECT is null and sp.PERMGROUPNAME is null and sp.PERMUSERNAME is null group by s.spacename;
spacenamepageattachment
Atlassian Workshop 活动46
Atlassian 产品试用74120
Atlassian产品资料中心478578
INFOR 知识库3339
Jira Software中文手册750
Parallel Approval Process for JIRA7574
SVG Chart Macro for Confluence5836
快速入门456536
演示284245
自研插件112132
视频资料267
  • 无标签