...
Could we make this dynamic? yes, we can!
ConfiForms evaluates the IFTTT macro body as a Velocity template. See Configuring ConfiForms IFTTT actions and rules and has a number of objects in the context
Code Block |
---|
context.put("entry", entry); <- ConfiForms Entry (raw)
context.put("user", user); <- Confluence user object
context.put("page", contentObject); <- AbstractPage object (Page or BlogPost rich object, any getter can be accessed)
which you can reference as any other variable in Velocity using velocity syntax |
Which means we can use reference to current page using
Code Block |
---|
${page.id} |
But to put this into the page we need something else, as We can access parent page of the current page if necessary and so on...
Code Block |
---|
${page.parent.id} |
quite easy... when you know...
Confluence editor does not allow us to do thatput something like this into the parameters....
So, we need to have a way to alter storage format a bit, and this is where Confluence editor plugin helps us, https://marketplace.atlassian.com/plugins/com.atlassian.confluence.plugins.editor.confluence-source-editor/server/overview. It is a free plugin from Atlassin, which helps to do the "fine tuning".
...