Is it possible to get access to the source code for the Task Report macro? We were hoping to create a version of the macro that used different headings for the resulting table, but otherwise behave exactly the same. If we got access to the source code, would it be as simple as copying and pasting the code into a User Macro and changing the headers in the code or would it need to be more involved than that?
Hi Tristan,
It's possible to edit bundled plugins by modifying the JAR file.
You can review How to edit files in Confluence JAR files for more details.
Be aware that it may not be as simple as modifying a few lines on the file, so you will want to set up a staging instance first in order to test.
Do let me know if you have any questions about that.
Regards,
Shannon
Hi Shannon,
Sorry for the very delayed response. So, would editing these JAR files change the plugin for everyone that uses the instance? Or is there a way to change the plugin for just a single space? Or create a different version of the plugin, so that everyone in the same instance could choose which version of the plugin they want to use?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Tristan,
When you edit the JAR file, it modifies for the entire instance. You can indeed create versions, if you were to download the JAR, edit it, and re-upload it as a 2nd version. You'll want to use a different filename for this.
You will want to be aware that any issues stemming from this kind of modification is not supported. It may also be possible that any edits you make may not work in the future, even with a minor product update.
Our recommendation would be to create a user macro, which is more compatible with upgrades. It's also easier to obtain support for these, via the Community or the Developer Community.
I hope that helps! Let us know if you have any questions.
Regards,
Shannon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shannon,
Yes, User Macros were the method I was hoping to use. I'm just not experienced enough to write it myself. Could a macro be written to act as a wrapper around the Task Report macro that would allow the headers names to be changed to whatever the user selects? Is there a more efficient path to take? Should I post this specific request as a new topic?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Tristan,
Possibly, but I am myself not very familiar with writing User Macros so I cannot say for sure.
I would indeed recommend raising a new question; a lot of our Community members are pretty good at writing User Macros and so they'd be able to tell you how to do that.
Let me know if you have any trouble!
Regards,
Shannon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you for linking me! I'll go ahead and watch that one as well.
Take care,
Shannon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.