Changes for page OpenProject links macro

Last modified by superadmin on 2026/08/20 20:00

From version 3.1
edited by superadmin
on 2026/08/20 19:58
Change comment: There is no comment for this version
To version 1.1
edited by superadmin
on 2026/08/20 19:58
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -1,25 +1,0 @@
1 -{{velocity}}
2 -#set($op = "https://pm.academy.skyengpro.app")
3 -#set($project = "$!xcontext.macro.params.project")
4 -#set($view = "$!xcontext.macro.params.view")
5 -#set($label = "$!xcontext.macro.params.label")
6 -#if($view == '')#set($view = 'work_packages')#end
7 -#if($project == '')
8 -#set($target = "${op}/projects")
9 -#if($label == '')#set($label = 'Open OpenProject')#end
10 -#else
11 -#set($target = "${op}/projects/${project}/${view}")
12 -#if($label == '')#set($label = "OpenProject: ${project} (${view})")#end
13 -#end
14 -(% class="box" %)
15 -(((
16 -[[**${label}**>>url:${target}]]
17 -#if($project != '')
18 -[[Overview>>url:${op}/projects/${project}]] |
19 -[[Work packages>>url:${op}/projects/${project}/work_packages]] |
20 -[[Gantt>>url:${op}/projects/${project}/gantt]] |
21 -[[Calendar>>url:${op}/projects/${project}/calendars]] |
22 -[[Team planner>>url:${op}/projects/${project}/team_planners]]
23 -#end
24 -)))
25 -{{/velocity}}
Macro content availability
... ... @@ -1,1 +1,0 @@
1 -No content
Macro description
... ... @@ -1,1 +1,0 @@
1 -Links a wiki page to its OpenProject project. Managed by ArgoCD.
Macro id
... ... @@ -1,1 +1,0 @@
1 -openproject
Macro name
... ... @@ -1,1 +1,0 @@
1 -OpenProject links
Supports inline mode
... ... @@ -1,1 +1,0 @@
1 -No
Macro visibility
... ... @@ -1,1 +1,0 @@
1 -Current Wiki
XWiki.WikiMacroParameterClass[0]
Parameter description
... ... @@ -1,1 +1,0 @@
1 -OpenProject project identifier (slug). Empty renders a link to the project list.
Parameter mandatory
... ... @@ -1,1 +1,0 @@
1 -No
Parameter name
... ... @@ -1,1 +1,0 @@
1 -project