It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is there a way to instance documents so children pages change after editing a master document? Edited

Each employee within the company I work for has a standardised document that contains the same set of JIRA filters different only by including the name of the employee within the filters. If I want to make a change to one of these filters I have to change it for each employee manually.

My first thought would be to create a master document who's changes will automatically propagate to child documents whilst keeping the correct employee ID in the filters. Is this possible?

If not is there any other way I could quickly and efficiently make these changes to bulk documents?

I've only recently started working with Confluence and Jira so I may be missing something obvious however nothing else comes to mind.

2 answers

0 votes

Hi there,

Thank you for contacting us about this and welcome to Atlassian Community. It's great to have you.

In this case, I would use the Excerpt Macro on the parent page. You can choose to hide the excerpted content altogether from view. You would use the Excerpt Include Macro to display this information on the child pages. We use this a lot in our own documentation. In this case, you only need to update the main document and it'll propagate to all of the other excerpts around Confluence.

Have a look and let me know if that helps you.

Regards,

Shannon

Thanks Shannon,

I tested out this solution yet couldnt find a way to make the filters change for each owner of the document.

Is there a way I could add a parameter (or something of that nature) to the excerpt that would allow the filters in the document to include the name of the user?

Good afternoon,

The Excerpt macros don't use any filters to display content, could you let me know which filters you are referring to, and what the goal would be by using the current user?  Do you just need to display the name of the user currently logged in?

In that case, you would need to write a User Macro, for example:

This would allow you to display the name of the current user in a Confluence page.

I hope that helps, but if it's not what you require, please let me know!

Regards,

Shannon

Thanks Shannon,

I'm refering to JIRA filters that display JIRA tasks assigned to users. I need the filters to refer the owner of the document, not necessarily the user viewing it.

By owner in principal this just means whoever name is at the top of the page or something to that effect.

Would I maybe be able to define a editable variable on the page which the excerpt can grab and use to display the correct filters?

Hello there,

Thank you for clarifying that.

Unfortunately this wouldn't be possible without some sort of User Macro or add-on. 

The ability to use variables has been requested in the past in a feature request, but it has been closed as we don't have plans to implement this in the neat future.

Regards,

Shannon

Hi tpgionfriddo,

like Shannon said, you could wrap the JIRA query in a Confluence user macro. You will need one user macro per query.
This macro would get a username as a parameter and pass it to the JIRA macro.

For this to work, you cannot use saved JIRA filters but you have to specify the query on the JIRA macro within Confluence
And you need admin access to your Confluence instance.

Cheers,
Kirstin

Hi tpgionfriddo,

by filters you mean JIRA filters, right?

If yes: in JIRA filters you can use queries like assignee=currentUser(). Using that in a filter will delivery different results, depending on the user who triggers the filter.

So:

  1. Create the filter(s) accordingly in JIRA.
  2. Refer to the JIRA filters on your Confluence page.

Would that do the trick for you?

Cheers,
Kirstin

Hi Kirstin,

Yes I did mean JIRA filters, I've update the question accordingly. Thank you for noticing my error.
Unfortunately I don't think currentUser() would fit the solution as we need to be able to have a document for each user containing the user specific filters so that User A could look at User B's document and see the filters that pertain to User B

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Confluence

How is your team having fun and bonding, remotely, utilizing Confluence?

Thanks everyone for answering last week’s question. The winner of the random drawing from those who commented is: @LarryBrock I’ll contact you separately with your prize details. This wee...

294 views 9 7
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you