youngmon/atlassian-qna huggingface dataset:
custom.css file not loading/rendering in firefox/Internet explorer
Asked by Dipankar Kharga:

I am using self-hosted confluence server. My custom.css changes are all good in chrome/safari.  
Problem: My custom.css file does not render in FIREFOX/IE. I am providing both the senerios below.  
Please replicate the issue at **docs.zetaapps.in**  
**Chrome** - It renders the css file, so our custom changes are all good.  
![Inline image 2](https://mail.google.com/mail/u/0/?ui=2&ik=beb494fee4&view=fimg&th=15d3c3eb2ed8adc5&attid=0.0.2&disp=emb&realattid=ii_15d3c39ca1c57c9b&attbid=ANGjdJ9mhFrEavO0704RPcaD3M-o-RVfdw7pq5oYj6q6ECn0RwvZPM8eMXCxlC-Zqa3usrD6oJop0kT83yuAXbYsOz6OcTdSbRmYGuxQq7WwRXyWR7QKoADzM5ef97k&sz=w998-h282&ats=1499954333848&rm=15d3c3eb2ed8adc5&zw&atsh=1)  

**Firefox** - It is not showing css file at all. Please help here.  
![Inline image 3](https://mail.google.com/mail/u/0/?ui=2&ik=beb494fee4&view=fimg&th=15d3c3eb2ed8adc5&attid=0.0.1&disp=emb&realattid=ii_15d3c3e53dfdf8eb&attbid=ANGjdJ9AUvj22T5rtyhW_QQq0LcLAIQ5e4TejLjiGtklcEHOEGs4HNGSsyEtgogmPsdrmspKPHYr6I-6-iYcXVjbkoWK9onNGPUTmqn9dCgkKbg1GXkYzcscj9BkKxs&sz=w998-h456&ats=1499954333849&rm=15d3c3eb2ed8adc5&zw&atsh=1)

\*\*\*\*\*\*\*\*\*\*Please help resolve this issue since IT IS A BLOCKER\*\*\*\*\*\*\*\*\*


Answers:
author: Dipankar Kharga
body: This is resolved, removed the source editor library addon that was stopping CSS to render in IE and firefox.

Thanks again

comments: author: AnnWorley
body: Thank you for sharing the solution - I marked it Accepted so people can find the answer faster. :)
Confluence article slug
Asked by Josh Smith:

Is there a way to change the article slugs used on Confluence? We would like to use unique numbers rather than article titles in our URLS.

For instance:

https://mysite.atlassian.net/wiki/display/space/490294

Instead of:

<https://mysite.atlassian.net/wiki/display/space/This+is+a+document>


Answers:
author: Nic Brough -Adaptavist-
body: A slug is a garden-munching invertebrate, or slang for a bullet. You obviously mean urls though.

Confluence tries to generate "friendly" urls automatically, but it will always still respond when you use the page ID in a url - the first format you gave is always valid.

I don't think you can turn off friendly urls in Cloud (and I'm not sure it's easy on server), but there is a trick - friendly urls are only generated when it can translate them into something that works. The process chokes if there's any characters it can't handle in the title, and it reverts to using the page id. So if you get your users to stick odd characters in every page name...

comments: author: Josh Smith
body: Thank you for the swift answer!

Also: [https://en.wikipedia.org/wiki/Semantic_URL](https://en.wikipedia.org/wiki/Semantic_URL#Slug)


author: Nic Brough -Adaptavist-
body: I still shudder at the word "slug", no matter how it's appropriated for a different use. Horrible ugly creatures that eat my garden and slime things up worse than a hungry ghost! :-)


author: Josh Smith
body: Fair enough :)
Can I make a report (as a table) with information from child pages?
Asked by Marek St?pel:

I would like to have a page with a table which will be automatically updated on the base of information from child pages. Child pages I would like to create on the basis of template. So table will contain records and each record will present the same struture of information from child pages. Maybe use of any variable report plugin would be possible, but I haven't found such.


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

Did you try Page Properties Report macro?

comments: author: Marek St?pel
body: Hello Andrey,

It's exaclty what I was looking for. Thank you


author: Andrey Khaneev _StiltSoft_
body: You are welcome!


Tags: template
Viewport Form Dropdown issue
Asked by Louisa C:

Hello,

I'm using Confluence within the organisation I work for, and my manager requested a dropdown list in one of our tables. I managed to insert a dropdown list with Viewport Form Dropdown, and everything was fun and games until I tested it. What is happening is: after changing the value manually, it still resets to the default value whenever I refresh the page. Why? Can anyone please help me? Apologies if the question has already been asked, I couldn't find it anywhere.

PS. I have zero experience in coding / IT and I just discovered Confluence last week.

Thank you,

Louisa


Answers:
author: Stiltsoft Support
body: Hi [@Louisa C](/t5/user/viewprofilepage/user-id/1140562) ,

If you are open to third-party apps, our [Handy Macros for Confluence](https://marketplace.atlassian.com/apps/1214971/handy-macros-for-confluence-formatting-and-interactive-ui?tab=overview&hosting=cloud&utm_source=atlassian-community&utm_medium=answer&utm_campaign=handy-macros-traffic-sources&utm_id=1216111&utm_content=viewport_from_dropdown) would be a perfect fit for you. With its help, you can add multiple dropdown menus in a few clicks. Starting with the app is ultimately quick and easy. Another benefit is that Handy Status can be changed in the page view mode without switching to the edit mode.

Handy Macros for Confluence is available for any Confluence hosting - Cloud, Data Center, Server. It also includes many other functionality for Confluence formatting and enhancing UI to satisfy your needs.


Tags: forms

issue

select-list
Hook Create Space and dynamically load space-blueprints ?
Asked by Hans Pesata:

Hi!  

I need to be able to create a wizzard, which can be opened via "Create Space" and within this wizzard it should be possible to select a space-blueprint from a list of available space-blueprints. with each one residing in a seperate plugin.  
Therefore it should be pssssible to extend the list dynamically by creating a new plugin.

Any ideas on how to achieve this would be greatly appreciated!

Regards,  
Hans


Answers:
author: Alex Koxaras _Relational_
body: Hi [@Hans Pesata](/t5/user/viewprofilepage/user-id/613670)

On cloud you can't do that unfortunately. Maybe by developing a forge app?
Recently updated macro - duplicate entries
Asked by Yaacov Weingarten:

I am using the Recently Updated macro in one of my Space homepages. It shows the same page multiple times if it was changed multiple times.

Is there a way to configure it to not show duplicate page entries?


Answers:
author: Christoph Sch?tz
body: Yaacov - normally it should not do this. Have you reindexed Confluence? If so and the problem still persists please raise a bug with the Atlassian Support.

Cheers

Christoph
Can't use "group by" in Confluence Active Objects
Asked by Yurii Bilash:

I'm developing Confluence plugin that it uses AO for storing data in db.  

I have an Entity in AO(let it be MY_ENTITY and table in database has the same name). Suppose it has such fields: ID; a; b; and c. And I want to get count of all entities that is unique by field 'b'. How sql would looks like:  

```
SELECT COUNT(*) FROM (SELECT b FROM MY_ENTITY GROUP BY b) as INNER;
```

I want implement the same query using Active Objects libarary. What I've done:

```
public int countUniqueMyEntitiesByB() {
   Query query = Query
      .select(b) /* if it change to .select() in MySQL it works :)*/
      .group(b);

   MY_ENTITY[] groups = ao.find(MY_ENTITY.class, query);

   return groups != null ? groups.length : 0;
}
```

But I facesed with ugly bug, for example for H2 database:  

```
com.atlassian.activeobjects.internal.EntityManagedActiveObjects.find(EntityManagedActiveObjects.java:136)
caused by: org.h2.jdbc.JdbcSQLException: Column "ID" must be in the GROUP BY list; SQL statement:
SELECT b,ID,a,c FROM MY_ENTITY GROUP BY b [90016-176]
```

As you can see it select all fields even I specified select only one field. If I add field "ID" to the group list query really works but fetch not what I need. The question is if it's possible to implement such query using AO and if yes how?


Answers:
author: ??
body: Hello,  

I am currently improving this future and I noticed that you need to have defined Preload annotation with non default value for your entity for 'group by' to work. I don't know why It was set this way but I will try to release new version of this plugin soon to fix it.


author: Sahal Saad
body: Hi,

Did you set **@Preload** at your entity ?

I think you can try use **new Query("")** **.**

comments: author: ?? ??
body: Has anyone solved this problem? I am troubled with the same problem.

I did not set **@Preload** at my entity and **new Query("")** results in a compile error.

I think **GROUP BY** query using AO does not work.


Tags: active-objects

confluence-app

confluence-development
How do I search for a certain part of a Label?
Asked by Nadav Dahan:

In Confluence, I am trying to search all pages that have a certain text inside of labels.

For example,

Label: project-GM

Ideal search : GM or label : GM

I've so far tried using ScriptRunner and using there guide to do a Label Search Extractor but there isn't much information on the subject on how to custimze and fit it to my needs.

Any recomdations please?


Answers:
author: Stephen Deutsch
body: Hi Nadav,

This should work in a standard search:

labelText:/.\*GM.\*/

comments: author: Nadav Dahan
body: Great answer thanks!

And how can I get all the documents/pages as a variable in-script?


author: Stephen Deutsch
body: A few caveats:

I don't have scriptrunner installed, so I couldn't test it. I'm not an expert in Groovy, and I don't know so much about extractors. That said, this might work (adapted from the example on <https://scriptrunner.adaptavist.com/latest/confluence/SearchExtractors.html>):

```
import com.atlassian.confluence.labels.Label
import com.atlassian.confluence.pages.Page
import org.apache.lucene.document.Field
import org.apache.lucene.document.StringField

if (searchable instanceof Page) {
 Page page = (Page) searchable
 String labelText = "gm"
 String labels = page.getLabels().inject("") { acc, val -> acc + val.getName() + " " }
 if (labels.contains(labelText)) {
 document.add(new StringField("labelContains", labelText, Field.Store.YES)) 
 }
}
```

then you would search for "labelContains : gm" (note that labels are always lowercase).

comments: author: Nadav Dahan
body: Awesome ! really helpful, last question is how do I do it for any kind of text so it can work on many sorts of labels (project-gm, project-bee.....), and in that way I can search whatever sub-text I want ( labelContains : XXXX) and it will work......


author: Stephen Deutsch
body: Unfortunately, I'm not sure about that one; by making this search extractor, you're creating an alias in the lucene index, so in order to match any value, you would have to create permutations for every possible value in order to match exactly (i.e. for project you would search for pr, pro, proj, proje, ro, roj, roje, ect.). If you are only going to use "project-xxx" to match, then something like this might work (as I said, I have no way of testing):

```
import com.atlassian.confluence.labels.Label
import com.atlassian.confluence.pages.Page
import org.apache.lucene.document.Field
import org.apache.lucene.document.StringField

if (searchable instanceof Page) {
 Page page = (Page) searchable
 String projects = page.getLabels().findAll { it.getName().contains('project-') }.inject("") { acc, val -> acc + val.getName().replace("project-", "") + " " }.trim()
 if (projects) {
 document.add(new StringField("project", projects, Field.Store.YES)) 
 }
}
```

then you should be able to search for "project : gm" or "project : bee" or whatever.


Tags: developer

export

label

script

scriptrunner
How to use access token in confluence rest api
Asked by Suresh Kumar:

How to use the access token which i got I fallowed the same concept as described in atlassian connect jira documentation.


Answers:
author: Vero Rivas
body: Hi [@Suresh Kumar](/t5/user/viewprofilepage/user-id/1140500)

Look at this post, maybe can help you

<https://confluence.atlassian.com/enterprise/using-personal-access-tokens-1026032365.html>

Cheers
New page with table, some columns form other table
Asked by Samarth Gupta:

I have a wiki page with table_1 having 10 -15 column. This table keeps getting updated at regular interval manually by different ppl.

Now I want to create a new page which automatically gets created with a table_2 having only first 3 columns of the source / original table.

I want only new pages with latest table_1 content, old pages which were created with old version of table_1 should remain unchanged.


Answers:
author: Shannon S
body: Hello Samarth,

You may be able to accomplish this using the [Excerpt Include Macro](https://confluence.atlassian.com/doc/excerpt-include-macro-148067.html) in Confluence. This allows you to include part of a page in another page in Confluence.

Have a look at that documentation and let us know if you have any questions!

Kind Regards,

Shannon
Java Code for attaching to confluence page.I am using web confluence.
Asked by Suresh Kumar:

I am getting 302 moved temproraly error.

I am using <https://xxx.atlassian.net/rest/api/content/458770/child/attachment>


Answers:
author: Stephen Deutsch
body: Looks like you forgot to include /wiki/, so your URL should be:

<https://xxx.atlassian.net/wiki/rest/api/content/458770/child/attachment>
Full Search not displaying all results
Asked by Alexander levy:

I have a bunch of documents (word) within my pages but when i do a full text search, it only bring up the text embedded within some of the attachments, and not all. the permissions/restrictions are all the same!!


Answers:
author: David at David Simpson Apps
body: You could be experiencing problems with the Lucene "stop words" which will be removed from every search, *even exact match searches*.

Here's some background to the problem:

* [CONFSERVER-14134 Ability to make search return exact matches or at least prioritize exact matches in the search results](https://jira.atlassian.com/browse/CONFSERVER-14134)

If you're on Confluence Server, perhaps, you could edit the stop words:

* [How to change the Confluence Lucene Stop Words](https://community.atlassian.com/t5/Answers-Developer-Questions/How-to-change-confluence-lucene-stop-words/qaq-p/463493)
users who are logged in but unknown to site are not treated as anonymous
Asked by Brian M Thomas:

There are a couple of other questions on this, but neither covers my situation.

A user that was logged in with an Atlassian ID *but unknown to my site* found that he couldn't access it unless he logged out.

He was not a member of any group, because he wasn't registered as a user on my site. In this case, he should have been treated as anonymous because his authentication as an Atlassian ID user is irrelevant to me since I don't know him.

Other questioners have been told that the **users** group needed to be given "Use Confluence" permission, but this user is not a member of that group. In any case, I can't give that group the proper permissions.


Answers:
author: Nic Brough -Adaptavist-
body: I think this is a problem with the Atlassian accounts idea.

Atlassian knows someone is logged in, so Cloud thinks they are too. Then it looks at your permissions and decides the user can't see anything. But because they're logged in, they are not anonymous.

I think that's quite a significant bug in Confluence. It's the same root cause of a problem in both Server and Cloud systems too. When you have a space that allows access to group X and anonymous, then someone in group Y (but not X) logs in, they can't see the space, because they're not anonymous. Logging out gives them access.

comments: author: AnnWorley
body: Related to our old friend: [Allow unlicensed, authenticated users to have anonymous read only access](https://jira.atlassian.com/browse/CONFSERVER-30161)


author: Brian M Thomas
body: Ann:

Thank you for that issue reference; I'll be sure to follow it.

The reason that I posted this one despite the existence of other related ones is that I view the situation in a slightly different light.

The mistake Atlassian have made is to assume that the sites all share the namespace managed by the Atlassian ID service, as in any enterprise SSO arrangement. They don't; each shares only that subset of the namespace of which it is aware, and users cannot be considered "logged in" to my site solely because they are "logged in" to another site. As far as my site is concerned, they are unnamed, because they don't have a name that it recognizes.

Many authentication schemes have foundered on this mistake, because they didn't recognize that just because another site knows you as "Bob" doesn't mean anything to me if I don't know "Bob" from Adam, so to speak.
How to Import Word Document and split by heading Level 4,5... ?
Asked by Carlos_Calderon:

Hello

Currently, Confluence allow me to split by heading when import a Word Docuemnt as following:

* Don't split
* Level 1 Headigns
* Level 2 Headings
* Level 3 Headings

Then, the document that I need to import has Level 4, 5 and 6 of headings. So when I import to Confluence using Level 3, it doesn't split the headings correctly because is missing Level 4,5,6 from the Word document. So I want to choose at least 6 levels on confluence to see the file imported properly.

It's possible to add more level headings?

Thanks.


Answers:
author: ?????????? ??????????
body: Hi, all!

So I have the same problem as Carlos described... is there any possibility to load WORD documents with more than three heading levels correctly?

comments: author: Shannon S
body: Hi there,

You can see my latest reply now to Carlos above. I can confirm it's possible to split beyond level 3 in Confluence Server, but not in Cloud. I've created a feature request for Cloud.

Can you confirm if Cloud is the version you're working with, and if not, with which version are you having the issue?

Regards,

Shannon


author: Carlos_Calderon
body: Hello Shannon

Thank you for you answer.

1. I made a document to understand in a easy way what I want. I just create six different titles and marked each one as Heading 1, 2, 3, 4, 5 and 6. See image: **<https://www.screencast.com/t/SILleuEu1>**
2. Then I do import from Confluence using the option "Import Word Docuement", and the dropdown to Split by Heading just display till Heading 3, and I want to split till heading 6. See image: <https://www.screencast.com/t/mwPl4TFimFm>
3. This is how it looks when I imported the document with Heading 3. I want to split it in the same way but including Heading 4, 5 and 6. See image: <https://www.screencast.com/t/7NZqkQjf>

Let me know if this is clear for you.

Thanks

comments: author: kerensho
body: Hi Carlos, Did you find any resolution for this issue?

Thanks

Keren


author: Shannon S
body: Hi Carlos,

Apologies that I didn't see your response which was posted as a separate answer on this thread.

I'm able to import in Confluence Server beyond level 3, and was able to confirm this in Confluence Server version 6.10.1.

In Confluence Cloud I can confirm it only works up to level 3.

I created a feature request for Confluence Cloud:

* [CONFCLOUD-64884](https://jira.atlassian.com/browse/CONFCLOUD-64884) *On Word Doc Import, ability to split headings beyond level 3*

Can you let me know if you were having the issue on Cloud or Server, and if so, which version?

Regards,

Shannon


author: Will Kim
body: Can't wait til this is fixed....got boatloads of shtuff to upload


author: Shannon S
body: Hi Carlos,

Can you please verify exactly what you're missing from the document? You said that you import using Level but you're missing 4, 5, and 6 from the Word document.

Can you outline what your document formatting looks like now so we can better understand the issue you're having?

Kind Regards,

Shannon
REQ: Solution for Table that is both sortable and expandable/collapsable
Asked by Casey Maynard:

I have a 800 row and 30 column table.

I cannot figure what method to create a table that is both

1. Expandable/Collapsable, so that each row remains aligned.

2. Column that are Sortable (only a few are required to be sorted

Here is a layout of what I am looking for

Basically I want it in a table

I want to sort on any of the Bolded Column names

But I also want the ability to collapse the table row as show with \*\<

This will be tricky, because if I have 800 rows I want to expand and collapse them ALL at once (if possible)

---------

**App** **Name** **Ver** **Date** **Status** **Dept**

AppNameA 1.16.1 03/07/17 Retired Dept A

AppNameA 1.17.0 07/15/17 In Use Dept B \*\<want to collapse this row

AppNameB 1.0.1 12/15/06 In Prod Dept B

AppNameB 1.0.0 12/14/06 Retired Dept B \*\<want to collapse this row

---------


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

What about alternatives:

* You can make your table to [fit screen](https://demo.stiltsoft.com/display/tblfilter/Managing+Look+of+Tables#ManagingLookofTables-Fittingtabletothescreenarea) and make it srollable with [Table Filter](https://marketplace.atlassian.com/plugins/com.stiltsoft.confluence.plugin.tablefilter.tablefilter/cloud/overview) macro.
* You can [filter your table](https://demo.stiltsoft.com/display/tblfilter/Filtering+Text+Table+Data) with Table Filter macro. There are many different ways to do this, for example, you can set default filters or to make it show only first X rows by default.

comments: author: Casey Maynard
body: Well I am looking for an affordable solution. We have about 50-100 users so the monthly fee is out of our range. I will try the 'free' version to determine if it is at least flexible enough for my use. But I still hope there is a different layout option
sharing a page to a confluence enabled user without them being in space permissions
Asked by div18itadmin:

Hello,

I have a user who is currently not listed in the space permissions but would like to allow him to access one single page so he can upload some documents on the page. Is this possible?

I tried sharing the page to him and when he tries to upload to the file list there it tells him "You'll need to ask permission to insert files here". I've verified that he has read/edit in the page restrictions for that page.


Answers:
author: Steven F Behnke
body: You have the permissions/restrictions model backwards.

* Users and groups are defined against permissions in **Space Permissions**; a user must have permissions in a space to do any specific operation.
* Users and groups can have their permissions *restricted* per page via **Page** **Restrictions**.

You must grant him Space Permissions to the entire space first and then lock down the other pages to prevent him from editing them.

comments: author: div18itadmin
body: Steven,

Thanks for the answer. It's just that on this particular space there are tons and tons of pages I would need to restrict. Is there someway to edit these page restrictions in bulk or another way?

Thanks


author: Steven F Behnke
body: Unfortunately, I do not have a good answer for you. I use ScriptRunner for Confluence so I'd likely write a groovy class to loop through all pages and set restrictions with the JAVA API.

It doesn't look like the REST API can update page restrictions...

All related questions to this suggest using a vendor supplied plugin by AppFire/Bob Swift, Confluence CLI to accomplish this.


Tags: permission