youngmon/atlassian-qna huggingface dataset:
Confluence Custom HTML based on user permissions
Asked by Joanne:

Hi,

I have set up custom html to show different views based on user permissions and when I print messages, it is running the correct if-else loop however the required icons/buttons are not showing up. In particular, the create and edit page buttons so the user is unable to create new pages, do updates, etc.

Also when I print the params,

1. The param for my new user is showing up as '*remoteUserHasLicensedAccess: false*'. What does this mean and how do I set this to 'true'?

2. My new user has been given space admin rights for the individual space (this is set by the last column in the particular space permissions, correct?) but the param is showing up as '*isSpaceAdmin: false*'

![conf_perm.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/23448iD4A3F147B6A1C247/image-size/large?v=v2&px=999 "conf_perm.jpg")

Appreciate if someone can assist on this. Thanks in advance!


Answers:
author: Danyal Iqbal
body: Where is your custom html ? It is buggy:)

comments: author: Joanne
body: Hi Danyal,

Thanks for helping! Here's my [file](https://drive.google.com/file/d/1GHvzO_AyghHNeZHOztjgkLfwWd1OtTfm/view) - I would like to use line 8 to limit based on space admin but it is not working. I would be grateful if you could advise on that too.

Thank you!


author: Joanne
body: Hi Danyal,

I managed to fix it. Thank you for trying.


Tags: atl-adm

developer

permission

user-management
Error rendering macro 'recently-updated'
Asked by ogudym:

Hello support,

No can login into our Wiki page after this error occurred.

"Error rendering macro 'recently-updated'

Error creating bean with name 'tenantedLuceneConnection' defined in class path renounce \[indexingSubSystemContext.xml\]: Bean instantation via constructor failed; nested exception is org.springframework.beans.BeanInstantationException: Failed to instantiate \[com.atlassian.bonnie.LuceneConnection\]: Constructor threw exception; nested exception is com.atlassian.bonnie.LuceneException:

org.pache.lucene.store.Lock.ReleaseFailedException:Cannot forecefully unlock a NativeFSLock which is held by another indexer component. F:\\Atlassian\\ApplicationData\\Confluence\\Index\\write.lock"

![1.png](/t5/image/serverpage/image-id/23422i22F9E74A22DCD95F/image-size/large?v=v2&px=999 "1.png")![2.png](/t5/image/serverpage/image-id/23424i4AF13BE2EC3E8729/image-size/large?v=v2&px=999 "2.png")![3.png](/t5/image/serverpage/image-id/23423i3E98F0550677E5CB/image-size/large?v=v2&px=999 "3.png")


Answers:
author: AnnWorley
body: Lists of recently updated pages depend on the [content index](https://confluence.atlassian.com/doc/content-index-administration-148844.html). Yours has somehow gotten a lock in the file system preventing the macro from pulling in content like recently updated pages from the index.

I recommend following this guide:  
[How to Rebuild the Content Indexes From Scratch on Confluence Server](https://confluence.atlassian.com/display/CONFKB/How+to+Rebuild+the+Content+Indexes+From+Scratch+on+Confluence+Server)

The file system lock should be released when you close down Confluence and afterward you will have a fresh index.


Tags: error
Not able to import my confluence backup file
Asked by pavan:

I am not able to import my confluence backup.

According to this document [here](https://confluence.atlassian.com/confcloud/migrate-from-confluence-server-to-cloud-724765529.html), I do not find the '**Site import**' option in step 5. Whereas it was very easy to import the jira backup using the same 'Restore' option in settings. Please advise.

Thanks


Answers:
author: AnnWorley
body: If you are on Confluence Cloud the site export option is at https:/YOUR_URL.atlassian.net/wiki/admin/import/importconfluencesite.action.

If you already have Jira Cloud you will see:
> Site import isn't available for Atlassian Cloud sites with both Confluence and Jira (it works for Confluence-only sites).

To import an entire Confluence site, you'll need to import the spaces one at a time. Take a look at [Import a Confluence space](https://confluence.atlassian.com/confcloud/import-a-confluence-space-724765531.html) for more details.

If you are using Confluence Server you may find the site restore options on the page:\<Confluence_Base_URL\>/admin/backup.action
Is there a way to lock/freeze a table column and row heading from scrolling?
Asked by Barbara Langworthy:

We work with very large tables, requiring lots of scrolling horizontally and vertically. But when we scroll past the original page size, we can no longer see the column and row headings. We'd love to lock / freeze the headings so that we can view them even when we scroll across or down. Without this feature, entering data into very large tables is very error-prone and labor-intensive.

Thanks!


Answers:
author: Andrey Khaneev _StiltSoft_
body: Hello Barbara,

You can do this with the help of [Table Filter](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=cloud&tab=overview) macro: set [Freeze first N rows / columns](https://docs.stiltsoft.com/display/TableFilter/Managing+Look+of+the+Table+and+Filtration+Pane#ManagingLookoftheTableandFiltrationPane-FreezingFirstNRows/Columns) option and [get it working](https://demo.stiltsoft.com/display/tblfilter/Managing+Look+of+Tables?os_username=guest1&os_password=guest1).

comments: author: Barbara Langworthy
body: Thanks, Andrey! To access the Freeze first N rows / column feature, do we need to buy the Filter Table and Charts app?


author: Andrey Khaneev _StiltSoft_
body: Yes, this is a paid add-on and you need to buy it.


author: Adrian Vella
body: Finally someone has provided the answer. What a painnnnnnnnnnn!!! I would assume this would be standard.


author: Isaac Sherman
body: ![frown.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/38861i473C748630F279AE/image-size/large?v=v2&px=999 "frown.jpg")


Tags: cloud

confluence-cloud
Can you subscribe to a blog by label?
Asked by Chela Wallace:

Is it possible to label blog posts so folks can subscribe to just those posts with that label from that space?


Answers:
author: AnnWorley
body: You may label a blog post and list the posts with that label using the [content by label](https://confluence.atlassian.com/doc/content-by-label-macro-145566.html)macro, but there is no way in a user profile's email settings to subscribe to notifications based on labels.

comments: author: Chela Wallace
body: Are there plans to add this functionality? It would be very handy as a way for folks to be notified about only those blogs they are interested in.


author: AnnWorley
body: There are no immediate plans to implement the ability to watch pages or blogs based on label. The issue has been brought up but it will not be considered again until February 2019:

[Watch Labels](https://jira.atlassian.com/browse/CONFSERVER-6810)
> While this suggestion has gathered significant interest, we're unable to implement all of the excellent suggestions you make. We appreciate the benefits of such requests, but don't plan to work on this for the foreseeable future.
>
> This suggestion will be reviewed in about 12 months time, at which point we'll consider whether we need to alter its status.


author: Chela Wallace
body: Bummer!
Does a macro exist on the cloud version to show your JIRA sprint goals on a Confluence dashboard?
Asked by Lisa Dalton:

I want to show my team's current sprint goals on the project space in Confluence, without having to manually redo it every 2 weeks.


Answers:
author: Davin Studer
body: You could create a Jira filter that shows all the issue assigned to that sprint. Then you could use the Jira macro to display that filter. When that sprint is over you could simple change which sprint the filter looks at and you page should change to show the new sprint.

comments: author: Davin Studer
body: Actually you could even make the filter something like this and then you would not have to change the filter.

```
project = "{Your Project}" AND sprint in openSprints()
```


author: Schumacher
body: The goal and the selected pbi's aren't the same thing. The goal of the Sprint should contain a business vision and target to reach within sprint duration.
Confluence page properties report macro displays Jira Issue/Filter page property Refresh spinning
Asked by Jeff Engle:

Using the Page Properties Macro on the children pages with properties that contain Jira Issue/Filter macros Display Options: Table (Field: Due Date) renders properly on the child pages, but when summarized on Page Property Report Macros, these columns show "Refreshing" with spinning wheel instead of the desired field values from Jira (Due Date and Fix version/s in this case). Is there a workaround or fix for this?

### Confluence 6.3.3 {#toc-hId-1620118582}


Answers:
author: Deborah Cross
body: I'm having this issue on cloud so I'm doubtful the server upgrade will fix it. I've just logged a support ticket, will update when I have an answer.


author: Davin Studer
body: I'm on 6.8.1 and when I put a Jira macro in a page properties macro I see the results on the report page. So, I would say maybe an upgrade might fix the issue.

comments: author: Jeff Engle
body: That is very helpful information, I will pass it along to our group that manages the server and keep my fingers crossed. Thank you.


Tags: confluence-server

server
Link Program to Project in Confluence
Asked by DPA:

Hi,

I have a Program(NextGen), there are multiple projects(Technology, Marketing, Release.....) under the Program.

I want to create a Space for the Program(NextGen) and also individual spaces for all the projects(technology, Marketing, Release ...). I understand that all the spaces can be created separately. I want to link them from Hierarchical order. Program top level space and rest of the projects are lower level spaces to achieve the consistency.

How can I do it.


Answers:
author: Davin Studer
body: There is no built-in space hierarchy in Confluence. If need to have some kind of hierarchy you would need to do it within one space. You would have a parent page that would have information about your program and then child pages for your projects. You can control access to the project pages through page restrictions.

comments: author: DPA
body: I am surprised to find that it is not possible to have a Program, Project relationship at the spaces level. Thanks for your suggestion.
How do you embed a JIRA Release page into a Confluence page?
Asked by Heidi Faucette:

I have a Confluence page where I keep stakeholders updated. I would like to embed my 'Releases' page in JIRA so the Confluence data updates when I change it in JIRA. Example of JIRA page to embed in Confluence:

![5-31-2018 3-14-28 PM.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/23406i280B001DC829FDCD/image-size/large?v=v2&px=999 "5-31-2018 3-14-28 PM.jpg")


Answers:
author: Perry Preston
body: painful point


author: Ozsa O
body: Did you ever find a way to do this? I am looking for a solution for this too.


author: Davin Studer
body: I see a couple things you could do. You could iframe the release page in Confluence, or you could create a filter that selects the issues that are part of that release and then use the jira macro to display that filter.

comments: author: Heidi Faucette
body: Thanks, Davin. I do not want the granularity of issues to display, just the Versions, date, status...

I will look into the iFrame approach again, but think it's a plugin that needs to be purchased and I was looking for a cheap way to implement.

Thanks again!!


author: Driss AIT OUGHLAD
body: Did you ever find a way to do this? I am looking for a solution for this too.


author: Chris Allan
body: I am also looking for the same view, has anyone been able to come up with a solution?


author: Heidi Faucette
body: Unfortunately, no.
What changed? Links to my Confluence pages are not working now.
Asked by Deanne Gittens:

My anonymous users had bookmarked my wiki pages in Confluence and when they go to access them now, they get blank pages. They are using the Chrome browser and have View access only. Can anyone help me with this, or point me to what the issue might be? Thanks!

Deanne


Answers:
author: AnnWorley
body: I would like to help. Since the pages are accessible anonymously would you feel comfortable linking an example here so I can see what I see as an anonymous user?

comments: author: Deanne Gittens
body: Sure. Here is a link: <https://legalinc.atlassian.net/wiki/spaces/DOC/pages/308346912/Setting+up+Linc>


author: AnnWorley
body: Deanne, I experienced the blank page (seemed like it rendered briefly then disappeared) then when I asked a colleague for a sanity check it suddenly started working. Is it working for you now?

If it is working for your anonymous users now but it fails again later, please open a support ticket using your Cloud URL at <https://support.atlassian.com/> while it is happening so we can catch it in the act.


author: Deanne Gittens
body: OK, thank you!! By the way, what you experienced was exactly what users were getting. If it should happen again, I'll put in the ticket as you recommend.


author: Deanne Gittens
body: OK thank you Ann! It's working again but users were experiencing exactly what you had encountered. I will submit a support ticket if it should happen again per your recommendation. Thanks again.


Tags: cloud

confluence-cloud
How to embed Zephyr Query Language (ZQL) within a Confluence Page
Asked by Patrick Martin:

I embed JQL (Jira Query Language) filters within Confluence Pages that exectute the query on demand when I open the pages

However, I wish to do the same but with Zephyr Query Language queries (ZQL) by embedding them the same way into Confluence Pages (via the Jira Issue/Filter macro) but I can't.

It seems Jira Issue/Filter macro only runs JQL but not ZQL

Do I need a plugin to allow a Zephyr Issue/Filter macro to appear as an option in Confluence?

Thank you


Answers:
author: Fabian Lim
body: Hi Patttick

I would contact zephyr directly to see if this is in their roadmap.

Good luck.


Tags: atlassian-marketplace

jira

zephyr
Error rendering macro ToC - duplicate class
Asked by Paul Connaghan:

Hi there,

I am working with a client who has no confluence admin / owner currently that is technical enough to look into where the Confluence Server 5.3 is hosted (i am working on finding people though and getting some admin rights assigned).

I was updating pages with a bit of HTML with style and div html tags (for a header toolbar) and several (but not all) ToC Macro's seem to have broke with a duplicate class error.

After spending much time, and trying to resolve this issue several times through different approaches I am no further forward. Can anyone recommend a solution I have copied the code from my HTML Include macro below (the links have been changed to protect client identity). I seen some people having similar exceptions copy the duplicate html classes but when I inspect the code I only get the error message, so not sure how to obtain that detail?

Any help or suggestions greatly appreciated!

Paul

Error:
> Error rendering macro 'toc' : \[com.ctc.wstx.exc.WstxLazyException\] com.ctc.wstx.exc.WstxParsingException: Duplicate attribute 'class'. at \[row,col {unknown-source}\]:

```
<style>ul.menu {    list-style-type: none;    margin: 0;    padding: 0;    overflow: hidden;    background-color: #00877c;}li.menu-float {    float: left;}li.menuItem a {    display: block;    color: white;	font-size: 24px;    text-align: center;    padding: 25px 20px;    text-decoration: none;}a.menu-link {	color: white;}/* Change the link color to #111 (black) on hover */li.menuItem a:hover {    background-color: #005293;} li.menuItem a:active {    background-color: #4CAF50;}</style> <div><img src="download/attachments/43188283/Small%20Logo.png"> </div> <div><ul class="menu"><li style="float:right;font-size:24px;color:white;padding: 25px 20px;"><form class="search" method="POST" action="/plugins/pagetreesearch/pagetreesearch.action" class="aui" name="pagetreesearchform">Search            <input type="hidden" name="ancestorId" value="43188283">            <input type="hidden" name="spaceKey" value="somespace">            <input style="height:30px;font-size:24px;" type="text" class="text medium-field" size="20" name="queryString">            <input style="border:none;background-color:4CAF50;" class="aui-button" type="submit"  value="Search">        </form></li></ul><ul class="menu">  <li class="menuItem menu-float"><a style="color:white" href="/1">Home</a></li>  <li class="menuItem menu-float"><a style="color:white" href="/2">Process</a></li>  <li class="menuItem menu-float"><a style="color:white" href="/3">Screens</a></li>  <li class="menuItem menu-float"><a style="color:white" href="/6">Policy</a></li>  <li class="menuItem menu-float"><a style="color:white" href="/#">Rules</a></li>  <li class="menuItem menu-float"><a style="color:white" href="Interfaces">Interfaces</a></li></ul></div>
```

```
 
```


Answers:
author: Fabian Lim
body: Hi Paul,

This looks an known issue as stated here: <https://jira.atlassian.com/browse/CONFSERVER-53138>

and there is a workaround posted.

Regards


Tags: confluence-server

server
Linking Source File and Confluence File Updates
Asked by Cameron Church:

Hi,

I have embedded an excel file via the office excel macro on various confluence pages and was wondering if there is a way to have the source file updated when the file is updated, edited and saved on confluence. Currently edits made to the source file, when not opened in confluence, do not change the document on confluence itself or when opened, edited and saved on confluence, the offline source file does not update.

All I am looking for is a way to link these files, so that the updates occur in both spaces.

Thanks,

Cameron Church


Answers:
author: Bart D
body: Not possible... confluence treats its version as the authoritative file.

comments: author: Cameron Church
body: Thanks for the feedback Bart. That's what I figured, but thanks for confirming.


author: Davin Studer
body: The typical thing for this scenario would be to make the Confluence version the authoritative and only version. If you have Office installed and you have edit access to the page you should see a link above the Office macro and also on the attachments page that will allow you to directly open that Office attachment in the appropriate Office application (Word, Excel, Powerpoint). When you use that link and save the document the changes will be push right back into Confluence without having to do the whole save to your machine/edit/save/re-upload dance.

comments: author: Davin Studer
body: I should also mention you get the added benefit of the document now being versioned so you can see how it has changed over time and go back to a previous version if necessary.


author: Cameron Church
body: Thanks for the feedback Davin. I am aware of the Edit Document function and have used it to edit and update the excel files I have attached to my pages.

You didn't say it directly, but I'm assuming there isn't a way for the original file to receive the updates made through confluence?
move high level pages
Asked by Pat D'Ambrosio:

Hi,

I have a set of pages that are ordered alphabetically in my left hand pane, but I want them ordered as a ToC. I tried dragging and dropping to no avail, what should I do?

Thanks!

Pat


Answers:
author: Davin Studer
body: If you are a space administrator you can change the order of the pages in the page tree. At the bottom of the page tree you should see "Space Tools". One of the options under that menu is Reorder pages. That page will allow you to drag and drop the order of the left hand navigation.


author: Moses Thomas
body: [@Pat D'Ambrosio](/t5/user/viewprofilepage/user-id/1453974)ToC please explain what it means ?

comments: author: Davin Studer
body: Normally means Table of Contents.


author: Moses Thomas
body: [@Davin Studer](/t5/user/viewprofilepage/user-id/781467)Thanks!
Anchors do not work across pages
Asked by Amy Hogan:

I have followed all the instructions but when I try to link to an anchor in another page it takes me to the top of the page and not the anchor. Please advise when this will be resolved.

* Powered by [Atlassian Confluence](http://www.atlassian.com/software/confluence) 6.3.1


Answers:
author: AnnWorley
body: I could not reproduce the behavior you are describing on Confluence 6.3.1 or Confluence 6.9. However, our bug tracker reveals that we have done a lot of work on anchor bugs in the past so this could be a new one.

To help me reproduce the issue, please provide the storage format from both the page with the link and the page with the anchor. It may be worthwhile to create test pages in order to avoid sharing your wiki content or posting a long page.

To get the storage format:

* Click on the ellipsis (...) in the top right-hand corner of the page and select View Storage Format from the dropdown.
* Copy the storage format to a file and post it in a code block to this thread. This will allow us to recreate the pages locally and see if we get the same behavior.

Thanks,

Ann


Tags: confluence-server

server
I don't want my public confluence (cloud) site to be indexed by search engines
Asked by Fran?ois Eric:

Can I do this?

In a hosted environment I would have modified the robots.txt....but can I do something similar in the Cloud Confluence version?


Answers:
author: Nic Brough -Adaptavist-
body: No, see <https://jira.atlassian.com/browse/CLOUD-5915>

It might be worth asking <https://support.atlassian.com/contact> if they would set up a robots.txt for you though.

comments: author: Fran?ois Eric
body: Thank you for your quick answer! I will contact them directly indeed.


author: Fran?ois Eric
body: You were right. They were able to help me out.

Thanks again


Tags: cloud
can you create a task report macro that displays all tasks created on the current page
Asked by Mark Kosoglow:

As we take meeting notes, tasks are assigned inline on the meeting note page.

Is there a way to use the task reporting macro to aggregate all the tasks created inline into a summary section at the top of the page?


Answers:
author: Davin Studer
body: One of the properties of the task report macro allows you to specify the page.

![Capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/23407iAA0AFC19204012F2/image-size/large?v=v2&px=999 "Capture.PNG")

comments: author: Mark Kosoglow
body: sorry. let me be a little clearer.

I have a macro to create a new page from a template.

The page has a 2 column section at the top of the page and a single column section at the bottom where the meeting notes are typed in.

As tasks are created in the "notes" section of the page, I want the top right section to be a Task Report macro that displays all tasks created in the main portion of the page (to aggregate them all automatically in one place).

I don't want to have to fill in the "pages" of the Task Report macro properties each time.


author: Davin Studer
body: Ah, I see. Since you are on cloud I don't have any great options for you. If this were a server version you could create a user macro that would be a wrapper for the built-in task report macro and would autofill that property. But the cloud offering does not allow you to create user macros.


Tags: cloud

confluence-cloud