youngmon/atlassian-qna huggingface dataset:
HTML include macro cannot combine with excel include macro
Asked by Anoop K Baby:

Hi Team,

Looking for a suggestion for an issue which I am facing. I was trying to combine excel macro and html macron on a same confluence page, but always it showing only html macro content if I combine both. Anyway suggestions?


Answers:
author: Anoop K Baby
body: The issue which I reported one was while I am using html include macro , not just the html macro .. I think you guys are talking about html macro.

comments: author: Anoop K Baby
body: I have updated the bug page - [https://jira.atlassian.com/browse/CONFSERVER-54914?_ga=2.188498026.390952301.1517849012-1732044338.1508861704](https://jira.atlassian.com/browse/CONFSERVER-54914?_ga=2.188498026.390952301.1517849012-1732044338.1508861704?)


author: AnnWorley
body: In the test case I reported, it turns out it is not a bug at all, but the way we are entering the HTML in the macro. I looked before I opened the new bug but I failed to find [Page does not render correctly once any html code inserted on HTML](https://jira.atlassian.com/browse/CONFSERVER-54107)

The dev team set me straight on [Excel Spreadsheet is not displayed on a page which includes HTML macro](https://jira.atlassian.com/browse/CONFSERVER-54914):
> The HTML Macro content contains \<html\>, \<head\> and \<body\> tags. This is causing the page to render incorrectly. Those tags should not be included in the body of an HTML macro. Only the real HTML content should be included.


author: AnnWorley
body: I look forward to hearing suggestions as well. I opened a bug report because I was able to reproduce the behavior in Confluence 6.6.x and the newest release of Confluence, version 6.7. I just cannot seem to display a spreadsheet if the HTML macro is on the page. Here is what I came up with for the bug:[Excel Spreadsheet is not displayed on a page which includes HTML macro](https://jira.atlassian.com/browse/CONFSERVER-54914)

Please add your thoughts to the bug report, it is public. Doing so will add you to notifications so you can keep up with the progress.

comments: author: Anoop K Baby
body: Thank you for the bug report. But as per my previous experience with Atlassian's bug reporting, I am not expecting any improvement on this for next 5 - 10 years.


author: Nic Brough -Adaptavist-
body: To be fair, you're ignoring the bugs that get reported in one version and usually fixed in the next point release. And most of what you're saying takes years are change requests rather than bugs.


Tags: html-macro

ms-excel
Where does Confluence store its space views information ?
Asked by Srikanth Kola:

I am trying to determine inactive spaces in Confluence. I dont want to query by last modified date. Since users can still use/view a space even though they are not making any updates to content.

So I decided to write a query by last viewed date using below query.

SELECT S.SPACENAME, V.\[SPACE_KEY\], MAX(V.LAST_VIEW_DATE) as LastViewDate  
FROM \[AO_92296B_AORECENTLY_VIEWED\] V, \[SPACES\] S  
WHERE (V.\[SPACE_KEY\] = S.\[SPACEKEY\] AND S.\[SPACETYPE\] = 'global')  
GROUP BY S.SPACENAME, V.\[SPACE_KEY\] ORDER BY LastViewDate ASC;

But I have a feeling that \[AO_92296B_AORECENTLY_VIEWED\] is not the right table, because when I go to SPACES table it shows 289 global spaces. However when I use above query to figure our last viewed date for those spaces I only get 232 results.

Any advise is greatly appreciated.


Answers:
author: Srikanth Kola
body: Select \* from \[Confluence\].\[dbo\].\[SPACES\] where \[SPACEKEY\] not in (SELECT V.\[SPACE_KEY\] FROM \[Confluence\].\[dbo\].\[AO_92296B_AORECENTLY_VIEWED\] V, \[Confluence\].\[dbo\].\[SPACES\] S WHERE (V.\[SPACE_KEY\] = S.\[SPACEKEY\] AND S.\[SPACETYPE\] = 'global') GROUP BY V.\[SPACE_KEY\]) AND \[SPACETYPE\] = 'global' order by \[LASTMODDATE\] ASC


author: Srikanth Kola
body: > ```
> Select * from [Confluence].[dbo].[SPACES] where [SPACEKEY] not in (SELECT V.[SPACE_KEY] FROM [Confluence].[dbo].[AO_92296B_AORECENTLY_VIEWED] V, [Confluence].[dbo].[SPACES] S WHERE (V.[SPACE_KEY] = S.[SPACEKEY] AND S.[SPACETYPE] = 'global') GROUP BY V.[SPACE_KEY]) AND [SPACETYPE] = 'global' order by [LASTMODDATE] ASC
> ```


author: Boris Berenberg - Atlas Authority
body: I would just look at access logs, or consider using a third party app like <https://marketplace.atlassian.com/plugins/com.addonengine.analytics/server/overview> if this is a frequent review you want to perform / you have other analytics needs.

comments: author: Srikanth Kola
body: I don't think we can buy a 3rd party plugin at this point of time.

And do you mean access logs on server ?


author: Srikanth Kola
body: Also I am talking about all the spaces that exist, not just a particular one


author: Nic Brough -Adaptavist-
body: Have you enabled the internal view tracking function (which is not recommended for medium to large Confluence systems)?


author: Boris Berenberg - Atlas Authority
body: Yes, I was talking about access logs on the server itself.  
For context, what Nic is referencing is: <https://confluence.atlassian.com/doc/viewing-site-statistics-123043962.html>


author: Srikanth Kola
body: I user below query to get the results, thanks for you assistance

```
Select * from [Confluence].[dbo].[SPACES] where [SPACEKEY] not in (SELECT V.[SPACE_KEY] FROM [Confluence].[dbo].[AO_92296B_AORECENTLY_VIEWED] V, [Confluence].[dbo].[SPACES] S WHERE (V.[SPACE_KEY] = S.[SPACEKEY] AND S.[SPACETYPE] = 'global') GROUP BY V.[SPACE_KEY]) AND [SPACETYPE] = 'global' order by [LASTMODDATE] ASC
```
One of my users can see Jira but not Confluence
Asked by Christopher McCafferty:

Hi,

I have a user who can see Jira items, but is unable to see Confluence pages. He is in the same default groups as everyone else. No separate groups are set up. No other user has this problem.

One interesting thing is this user has two emails at work, slightly different spellings, one forwards to the other. Not sure if that might be related or what role the email address plays in a user account.

How can I fix this? He's a user I really need to get active in Confluence.

Thanks in advance,

Chris


Answers:
author: Christopher McCafferty
body: Alas, they are different email addresses. Not sure how that happened. He said he had to make an account twice.

I'll try to remove one whole email address, scrub all mention of the other account and try to line up the permissions on that one remaining account.

comments: author: Kathy Hart
body: That would do it.


author: Christopher McCafferty
body: Quick reply, thank you!

The user is already licensed on both apps and is taking up a license slot on both.

comments: author: Kathy Hart
body: Well, then.

Email is extremely important to the Jira account. So that avenue should definitely be checked. Are both his licenses based on the same email address, for instance?

The only other thing I can think of is to review again that the share permissions on the Confluence space or pages in question do not exclude him in some way.


author: Kathy Hart
body: Confluence is licensed separately from Jira. You need to check that this person has a Confluence license assigned to them. If you have full admin rights you will be able to check this. Otherwise you will have to have an admin make the change.


Tags: jira

permission
How do I disable Blog-Entry and empty page?
Asked by Sophia Wagner:

Hi! How do I disable the "Empty page" and the "blog entry" templates? I can not finde these anywhere.


Answers:
author: Max Foerster - K15t
body: Okay, so you want to achieve two things here:

* users not being able to create blog posts (and use the blog at all)
* users should only be able to use pre-defined page templates

Correct? Are you running on Server or Cloud?

Best,

Max

comments: author: Max Foerster - K15t
body: If you're running on Server, have a look at this app in the Marketplace: [Template for Blog Posts](https://marketplace.atlassian.com/plugins/ch.bitvoodoo.confluence.plugins.blogpost-templates/server/overview)

Can't try it right now but would have a look at it tomorrow. I'm very, very sure there is no easy way to accomplish what you want as it is not intended to disable that features as you like. And by the way, depending on why you want to disable the templates. Users can still just remove every content and save an empty page. And pressing "C" is still fixed for creating an empty page. Not sure what happens in combination with the app though. Is there any reason why just promoting other templates would not solve the second bullet point?

Best,

Max


author: Sophia Wagner
body: Thanks so muh for the answer!

Sophia


Tags: template
List pages that contain the current user in a given page property?
Asked by Martin Cleaver:

We need a page properties report that reports pages assigned to the current viewing user, where the assignment is governed by a page property field.

{page properties} and {content by label} allow me to select a static user name but what I'm looking for is relative to the person viewing.

Can this be done without apps (plugins. add ons)?

If not, which apps would you recommend?

I'd like to avoid user macros and overly technical hacks.

Thanks,

Martin


Answers:
author: Monique Khairuliana
body: Hi Martin,

There's no readily available function for that in Confluence yet, maybe you can use these as a workaround:

* <https://confluence.atlassian.com/doc/viewing-site-statistics-123043962.html>
* <https://marketplace.atlassian.com/plugins/ch.bitvoodoo.confluence.plugins.viewtracker/server/overview>
* <https://marketplace.atlassian.com/plugins/com.elitesoftsp.confluence.page.tracking.plugins/server/overview>


Tags: confluence-server

page-property

property
Office Excel macro bug
Asked by Matthew Warren:

I have a situation where I'm attempting to use 'Office Excel' Macro on a page I have uploaded an .xlxs file to.

In the 'Office Excel' Macro, the uploaded file does not appear in the 'File Name' dropdown.

I have attempted to re-upload the file to the page to no avail.

Then I created a new page and repeated the process and it worked.

What might be causing this issue? What might I be overlooking?

Thank you


Answers:
author: JefteBarboza
body: Resolved!

Do not use characters in the page name in confluence, this will bug the macro, making the attached file on the page not appear in the combo.

Att

Jefte Barboza


author: Thomas B
body: Hi [@Matthew Warren](/t5/user/viewprofilepage/user-id/1182960) and [@JefteBarboza](/t5/user/viewprofilepage/user-id/3216628) - I know there is an issue when you upload a document to a page and then attempt to use the macro, it won't recognize the file.

1. Create page
2. Add attachment
3. Save page
4. Edit page again
5. Now the macro will work

Seems to be a bug with Confluence not recognizing new attachments in real time.

Thanks

comments: author: JefteBarboza
body: Hi, Thomas   
I follow the steps but it still does not work. Version of office is 2016.


author: Thomas B
body: Is it possible that the attachment is on a different page than what is specified in the Page Name section of the macro?


author: JefteBarboza
body: Resolved!

Do not use characters in the page name in confluence, this will bug the macro, making the attached file on the page not appear in the combo.

Att

Jefte Barboza


author: JefteBarboza
body: I have a situation where I'm attempting to use 'Office Excel' Macro on a page I have uploaded an **.xlsx** file to. In the 'Office Excel' Macro, the uploaded file does not appear in the 'File Name' dropdown. I have attempted to re-upload the file to the page to no avail.

Obs.: Excel 2016

comments: author: JefteBarboza
body: Hi, Thomas   
I follow the steps but it still does not work.


author: Thomas B
body: Hey Matthew.

Before we dig any further, I just want to confirm your excel file extension was a typo. I don't think any excel document can be .xlxs but it **should be .xlsx**...

Thanks

comments: author: Matthew Warren
body: Correct Thomas,

That is indeed a typo, I meant to type xlsx

Matthew


Tags: bug

macro
How do I add users to a team space?
Asked by Jackie Schay Cofield:

Hello,

I was trying to add a new user to a page, and accidentally removed a row of users on the team space overview page. When I went into the permissions section, it looks like the users still have access but are just not visualizing on the overview page. How do I fix this? I want them listed as users on the team space overview page.


Answers:
author: Max Foerster - K15t
body: Hi Jackie,

you can simply rebuild the team panel as it is only using built in macros. For the profile picture use the profile picture macro and the name is nothing more than a link with the email address of the user if I remember correctly. Put that in a table and you're good to go! :)

Best,

Max

comments: author: Max Foerster - K15t
body: Hey Jackie,

were you able to solve your problem with my answer? If yes, I'd appreciate it if you could accept my answer as solution (checkmark on the left hand side of my post)

Best, Max
Confluence license
Asked by Kapil M Sharma:

I bought 10 Confluence Licenses and I have only utilized 8, but confluence is showing me the following info:

* Users allowed by license: 10
* Current active users: 10

In my group member list I see 7 users only plus I have one admin account. I need to add two more users, please help.

Thank you,

Kapil


Answers:
author: Kapil M Sharma
body: We are using server version and I can see 8 user listed in UI, but the count says 10 and if try to add more users, it interrupt other's access.

Thanks,

Kapil

comments: author: Brant Schroeder
body: Are you using Jira to manage your users permissions or is this a stand alone instance?


author: Kapil M Sharma
body: I have Jira and Confluence on the same server, but Confluence is using separate user directory. I have 25 users licence in Jira and 10 in confluence.


author: Brant Schroeder
body: Do you have access to the DB? If you do you will want to run the SQL Ann pointed out in her post above. You can find the SQL here:

[https://confluence.atlassian.com/confkb/how-to-get-a-list-of-active-users-counting-towards-the-confluence-license-298978076.html?_ga=2.136068465.195546107.1517241589-589419804.1510933849\&_gac=1.238807348.1513614759.EAIaIQobChMIt_KBrP6T2AIVg6DsCh01QwLQEAAYASAAEgIdBvD_BwE](https://confluence.atlassian.com/confkb/how-to-get-a-list-of-active-users-counting-towards-the-confluence-license-298978076.html?_ga=2.136068465.195546107.1517241589-589419804.1510933849&_gac=1.238807348.1513614759.EAIaIQobChMIt_KBrP6T2AIVg6DsCh01QwLQEAAYASAAEgIdBvD_BwE)


author: Kapil M Sharma
body: I did not utilize DB to store user info.


author: Brant Schroeder
body: When you installed Confluence did you just use the embedded database? If so you can access it using the following documentation and then query the tables listed above. <https://confluence.atlassian.com/doc/embedded-h2-database-145098285.html>


author: Brant Schroeder
body: Are you using Confluence in the cloud? If the answer is yes you will want to check how many users you have assigned in to different applications. You can go to Settings \> User management \> Manage applications to see counts and see who is assigned.


author: AnnWorley
body: Hi Kapil,

I would like to share: [How to get a list of active users counting towards the Confluence license](https://confluence.atlassian.com/confkb/how-to-get-a-list-of-active-users-counting-towards-the-confluence-license-298978076.html)
> Confluence's license count is based on Global Permissions. Users will count towards the license in the following ways:

*
  > If the user is a member of a group that has global permissions to use Confluence
*
  > If the user is individually granted global permissions to use Confluence

> Within the UI, you can get a listing of groups and users that are assigned Global Permissions by navigating to Confluence Admin \> Global Permissions. You can find the groups via Confluence Admin \> Groups to reveal their members.

If you can't find the users in the UI, the article I shared has SQL queries to investigate further.

Thanks,

Ann
Do I need to configure Application Links for every cloud instance
Asked by Barak Schiby:

Hi,

I want to connect my application to JIRA, so all my users can sync with their own JIRA instance directly from my app.

Will my app users required to configure application link themself or can I centerly configure My application Link so it will applay to all cloud instances?

Thanks


Answers:
author: Shannon S
body: Hi Barak,

If Confluence needs to receive information from a Jira application, then the application link needs to be there. They will need to add it themselves or at least accept some kind of request to link the two.

I'm not sure what sort of application you're developing and don't have any experience with this myself, but I think that answers your question?

Regards,  
Shannon
How do I add a background image without plugins to a single page
Asked by Asaf Gershon:

Can I add a background image without plugins to a single page


Answers:
author: Davin Studer
body: You could create a user macro that had some CSS in it to apply a background to the page body.

comments: author: Asaf Gershon
body: Is there any manual in how to create a user macro?


author: Nic Brough -Adaptavist-
body: Start at <https://confluence.atlassian.com/doc/writing-user-macros-4485.html>


author: sarah@leadermes.com
body: As far as I know, this option is only available for Confluence Server, but not for cloud users.
After macro insertion, remove the parameter value from the macro parameter
Asked by rambabu patina:

I am new to Confluence macro implementation and have one requirement like,

After inserting the macro in the confluence page and update, remove the macro parameter from that macro.

So that on page refresh the parameter should not be available.


Answers:
author: Nic Brough -Adaptavist-
body: That sounds wrong to me. When you give a macro a parameter, it's part of the content and should remain there. This feels more like you are trying to create an action, not content, in which case you should be looking at adding items to menus and toolbars

Could you explain the reason for what you are doing? What will your users get from this?
XML Export/Import - What am I doing wrong?
Asked by David Haynes:

I have a number of spaces that I am attempting to consolidate into one space (yahoo! corporate restructuring!)

Something is not working with my methodology for doing this. I am doing the following:

1. In the source space, Space Tools -\> Content Tools -\> Export
2. Select XML and do either type of export
3. Check that the zip file has been created. File is in the form 'Confluence-space-export-090512-10.xml.zip'
4. In the destination space, Space Tools -\> Content Tools -\> Import
5. Provide the path to the temp directory
6. The import fails

Looking at the atlassian-confluence.log, I am getting an index out of bounds exception:

```
2018-01-31 09:26:34,325 ERROR [http-nio-8443-exec-12] [confluence.spaces.actions.ImportPagesAction] execute An error occurred importing: /var/atlassian/application-data/confluence/temp/Confluence-space-export-092549-8.xml.zip
?-- space: 29229057 | url: /spaces/doimportpages.action | traceId: f45ea36c4c8c9666 | userName: admin | referer: https://confluence.cbts.cinbell.com/spaces/importpages.action?key=DTS | action: doimportpages
java.lang.RuntimeException: org.owasp.validator.html.ScanException: java.lang.ArrayIndexOutOfBoundsException: 1
```

I get the same issue with version 6.2.3 and 6.7.0.

Am I doing something wrong? If so, what do you recommend?


Answers:
author: Thomas Deiler
body: Dear [@David Haynes](/t5/user/viewprofilepage/user-id/178763),

for the re-import, you have to jump to General Configuration -\> Backup \& Restore. There you can import a XML dump.

The import within the space is for text files only.

so long

Thomas

comments: author: Thomas Deiler
body: Note: If you just plan to consolidate different pages on one Confluence instance, you could move the pages within the spaces instead of export/import. The upper answer is useful for re-importing on a different instance.


author: David Haynes
body: Thanks [@Thomas Deiler](/t5/user/viewprofilepage/user-id/484715)

I had tried the copy/move method before but not as the administrator (although I had admin rights in both spaces). Either I botched it somehow (likely) or was restricted for some reason.

Anyway, going in as 'admin' allows me to copy/move between spaces.

That 'export with one method' and 'import with another' seems a bit odd to me.


Tags: import
How to display the content of a confluence page in a jira ticket?
Asked by Natascha Totzler:

Hello, I want to display the content of a confluence page in a jira ticket. (Like to display a picture in the ticket by using ! in front and in the end of an link.)

So, if I write something in confluence, it should be possible to read the information directly in the ticket, without clicking a link.

And ideally not only the whole page, maybe it is also possible to show just a specific part of a confluence page eg from one anchor to another?

Is there an addon or plugin for that?

Thanks!


Answers:
author: Shannon S
body: Hi Natascha,

This isn't a built-in feature but you might be able to do it using the method outlined [in this thread](https://community.atlassian.com/t5/Jira-questions/How-to-embed-Confluence-Content-in-JIRA-issue-or-vice-versa/qaq-p/205548).

Can you have a look there and see if that helps?

Regards,  
Shannon

comments: author: Natascha Totzler
body: thx!


Tags: atlassian-marketplace

jira
Is copy paste of Image in Page or template has specific memory only .
Asked by anuj dhoot:

I am trying to paste image directly from web ,word ,snaagit, etc .

It accepts few images and after like 10 images it doesn't work .

Is it some memory problem like image should of this size (my max image size was 10mb).

or These many attachements are only allowed


Answers:
author: Shannon S
body: Hi Anuj,

Can you let us know what version of Confluence you're running? Does this occur in all browsers and from other computers?

Regards,

Shannon


Tags: confluence-administration