Can we change the headers for the Task Report macro?

Tristan Albach November 20, 2018

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?

1 answer

1 accepted

1 vote
Answer accepted
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 22, 2018

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

Tristan Albach January 4, 2019

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?

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 8, 2019

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

Tristan Albach January 8, 2019

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?

Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 9, 2019

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

Tristan Albach January 10, 2019

I asked the new question to the community, thank you!

Like Shannon S likes this
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 10, 2019

Thank you for linking me! I'll go ahead and watch that one as well.

Take care,

Shannon

Tristan Albach January 10, 2019

No problem :-)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events