youngmon/atlassian-qna huggingface dataset:
How do you create a banded table style
Asked by Debra Hicks:

Hi,

In the Confluence Wiki is there an easy way to create a banded table? I see Bob's table but I am not a programmer and I don't know the parameters I need to set.

Can someone please tell me what the parameters would be? Or if there is an easier way. I know you can manually apply a color, but I need it to be automatic so when I insert a new row it is the right color.

I want a dark grey header with light gray banding.

Thanks!


Answers:
author: Josh Gilbert
body: Is there no way to accomplish this row banding without having to use a macro or plugin? Seems like this is something that should be configurable from the Source Editor page.


author: Debra Hicks
body: A programmer just gave me the solution:

Use the Table Plus macro by Bob Swift. And the only thing I needed to change was the Row style.

,background:ghostwhite,

Make sure to use the commas.


author: Maarten Cautreels
body: Hi Debra,

That functionality is not included in Confluence by default. I've already found one plugin (available for both Cloud and Server) that offers this feature:

* [Advanced Tables](https://marketplace.atlassian.com/plugins/org.swift.confluence.table/cloud/overview?src=sidebar)

Let us know if this helps.

Best,

Maarten

comments: author: Debra Hicks
body: Thanks, I'll look at it.

A programmer just gave me one solution:

Use the Table Plus macro by Bob Swift. The only thing I needed to change was the Row style.

,background:ghostwhite,

Make sure to use the commas.

You can also copy and existing table and paste it into the macro and it will reformat it! Yea!


author: Debra Hicks
body: I just looked at your link and it was to Bob's macro :)


Tags: highlight

table
Is it possible to force Confluence not to reset permissions of its config file?
Asked by Volodymyr Sobotovych:

I noticed that each time I restart Confluence 5.9.12, permissions on confluence.cfg.xml are reset:

```
$ ls -l /var/atlassian/application-data/confluence/confluence.cfg.xml-rw------- 1 confluence confluence 2227 May  9 11:20 /var/atlassian/application-data/confluence/confluence.cfg.xml$ bin/start-confluence.shTo run Confluence in the foreground, start the server with start-confluence.sh -fgexecuting as current userIf you encounter issues starting up Confluence, please see the Installation guide at http://confluence.atlassian.com/display/DOC/Confluence+Installation+GuideServer startup logs are located in /opt/atlassian/confluence/logs/catalina.outUsing CATALINA_BASE:   /opt/atlassian/confluenceUsing CATALINA_HOME:   /opt/atlassian/confluenceUsing CATALINA_TMPDIR: /opt/atlassian/confluence/tempUsing JRE_HOME:        /opt/atlassian/confluence/jre/Using CLASSPATH:       /opt/atlassian/confluence/bin/bootstrap.jar:/opt/atlassian/confluence/bin/tomcat-juli.jarUsing CATALINA_PID:    /opt/atlassian/confluence/work/catalina.pidTomcat started.$ ls -l /var/atlassian/application-data/confluence/confluence.cfg.xml-rw-rw-r-- 1 confluence confluence 2227 May  9 13:08 /var/atlassian/application-data/confluence/confluence.cfg.xml
```

Notice that the permission was reset from 600 to 664 above.

This introduces security risks since the file is readable by everyone and it might (and normally does) contain db credentials.

Is there a way to ask Confluence not to reset the premissions?


Answers:
author: Branno
body: Technically, Confluence isn't changing the permissions on the existing file. It actually recreates confluence.cfg.xml at launch, this 'new' file will have whatever the default permissions are set in the umask settings you have.

You can confirm the file creation via

```
getfileinfo confluence.cfg.xml
```

You could change the default permissions for the Linux user that is used to start Confluence. There is a deep-dive into setting this at [What is Umask and How To Setup Default umask Under Linux?](https://www.cyberciti.biz/tips/understanding-linux-unix-umask-value-usage.html "What is Umask and How To Setup Default umask Under Linux?")

If you just want to set is for specific directories you could instead use setfacl. This appears to be a good resource, [Linux setfacl command](https://www.computerhope.com/unix/usetfacl.htm "Linux setfacl command")

I didn't test really far back but 5.9.x and 6.1.x both exhibit this behavior.


author: Nic Brough -Adaptavist-
body: That's strange, it doesn't do it on my installation. There is code for it in "setup_user.sh", but it should only run once.

comments: author: Volodymyr Sobotovych
body: Which version of Confluence do you use?

In my case (Confluence 5.9.12) it does even more than that. It sorts the list of properties inside of the file.
Confluence REST API: Search returning 404 for all CQL queries
Asked by Charles Tuomi:

I am trying to use Confluence REST API and cannot get the "search" resource to return results.

I have tried many variations in the cql parameter but cannot get anything but a 404. I have been referring to <https://docs.atlassian.com/atlassian-confluence/REST/latest-server/> for sample queries, so one example of a URL I tried is http://confluence/rest/api/search?cql=siteSearch\~'example'.

The response is always along the lines of:

\<status\>\<status-code\>404\</status-code\>\<message\>null for uri: http://confluence/rest/api/search?cql=siteSearch\~%27example%27\</message\>\</status\>

I am able to get results from the content resource on the same server, eg, http://confluence/rest/api/content?type=page.

What am I doing wrong?


Answers:
author: Gonchik Tsymzhitov
body: Hi!

Have you fixed it?

I have met this error, error was related incorrect json header.

```
request.addHeader("Content-Type", "application/json")
```

Cheers,

Gonchik Tsymzitov


Tags: cql

rest-api

search
Confluence 6.0.1 invalid WSDL
Asked by Dortiz:

I have a problem with confluence api soap, when I start the confluence instance, the generated wsdl is correct.

```
....<!--WSDL created by Apache Axis version: 1.2.1Built on Jun 14, 2005 (09:15:57 EDT)--> <wsdl:types>  <schema targetNamespace="http://xxx.xxx.xxx.xxx:8090/plugins/servlet/soap-axis1/confluenceservice-v2" xmlns="http://www.w3.org/2001/XMLSchema">   <import namespace="http://rpc.confluence.atlassian.com"/>   <import namespace="http://xml.apache.org/xml-soap"/>   <import namespace="http://beans.soap.rpc.confluence.atlassian.com"/>   <import namespace="http://cluster.confluence.atlassian.com"/>   <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>   <complexType name="ArrayOf_xsd_string">    <complexContent>     <restriction base="soapenc:Array">      <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]"/>....
```

But after 10-15 minutes, the wsdl is rebuilt incorrectly.

```
<!--WSDL created by Apache Axis version: 1.2.1Built on Jun 14, 2005 (09:15:57 EDT)--> <wsdl:types>  <schema targetNamespace="http://lang.java" xmlns="http://www.w3.org/2001/XMLSchema">   <import namespace="http://rpc.confluence.atlassian.com"/>   <import namespace="http://xxx.xxx.xxx.xxx:8090/plugins/servlet/soap-axis1/confluenceservice-v2"/>   <import namespace="http://xml.apache.org/xml-soap"/>   <import namespace="http://beans.soap.rpc.confluence.atlassian.com"/>   <import namespace="http://cluster.confluence.atlassian.com"/>   <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>   <complexType name="String">    <sequence>     <element name="bytes" nillable="true" type="xsd:base64Binary"/>     <element name="empty" type="xsd:boolean"/>    </sequence>   </complexType>  </schema>  <schema targetNamespace="http://xxx.xxx.xxx.xxx:8090/plugins/servlet/soap-axis1/confluenceservice-v2" xmlns="http://www.w3.org/2001/XMLSchema">   <import namespace="http://rpc.confluence.atlassian.com"/>   <import namespace="http://xml.apache.org/xml-soap"/>   <import namespace="http://lang.java"/>   <import namespace="http://beans.soap.rpc.confluence.atlassian.com"/>   <import namespace="http://cluster.confluence.atlassian.com"/>   <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>   <complexType name="ArrayOf_tns1_String">    <complexContent>     <restriction base="soapenc:Array">      <attribute ref="soapenc:arrayType" wsdl:arrayType="tns1:String[]"/>
```

Change the basic string type to the String complex type, and add the namespace <http://lang.java>

Any idea why it might be?  
thank you very much.


Answers:
author: Mirek
body: Well.. The XML-RPC and *SOAP* APIs are deprecated since *Confluence* 5.5 (seems you are using Confluence 6.0.1), and may not work as expected. *Confluence* has a new REST API that is recommended. This is why this might not fully work.


Tags: soap

wsdl
How do I create Confluence admins in Gsuite?
Asked by Nancy Calafati:

I am a super admin in Gsuite, but once we enabled the Confluence GSuite Integration, I do not have User Management as an option in Confluence.  

What do we need to do to make sure Gsuite admins have full user management priveleges in Atlassian Cloud applications?


Answers:
author: AnnWorley
body: With group-based syncing, you can use groups in G Suite to manage user access to Atlassian Cloud. This means you'll have control over who can and cannot access your Atlassian Cloud site.

For more details: [G Suite FAQs](https://confluence.atlassian.com/cloud/g-suite-faqs-873871245.html)


Tags: administration

g-suite
How to add custom icon to my confluence macro
Asked by Aristoteles:

Hi,

I created my macro and I'm trying to have a self-made icon to shown when you search for the macro in the macros search bar. So far I have added these lines in my atlassian-plugin.xml but doesnt work. Any idea?

```
<resource    name="images/"      key="icons"        location="images"/><xhtml-macro ..... icon="/download/resources/com.atlassian.tutorial.myConfluenceMacro/images/pluginIcon1.png">
```


Answers:
author: Don Willis
body: You're missing a \`type="download"\`.

Here's a link to a duplicate question that has an answer: <https://community.atlassian.com/t5/Answers-Developer-Questions/Icon-for-my-xhtml-macro/qaq-p/569559>

And one to the documentation: <https://developer.atlassian.com/server/confluence/including-information-in-your-macro-for-the-macro-browser/>


Tags: icon

macro
In confluence, in the state of page editing, the macro title appears as garbled, shown as small boxe
Asked by fangyue2:

All the macros have been garbled.

table of contents macro:

![001.jpg](/t5/image/serverpage/image-id/1021i141DFE07B1969F85/image-size/large?v=v2&px=999 "001.jpg")

states macro:

![002.jpg](/t5/image/serverpage/image-id/1022i562E6AE0939A67DC/image-size/large?v=v2&px=999 "002.jpg")


Answers:
author: Damien Tan
body: Hi there!

this look like a missing font issue that is described in this Knowledge Base below:

<https://confluence.atlassian.com/confkb/non-ascii-characters-display-as-square-characters-in-confluence-317948797.html>

Try to follow the guide on placing the missing fonts in your Java home should help


Tags: character

font

macro
Where can I activate shorcut Add task on notification and on page in my cloud confluence ?
Asked by Louis Kerson R. Pognon:

Hello,

According to this [article](https://confluence.atlassian.com/conf54/confluence-user-s-guide/managing-changes-and-notifications-and-tasks/managing-tasks-in-confluence), I should be able to see a shorcut Add Task on my notification and on pages. But I don't see it . Can someone help me to find it ?


Answers:
author: Thomas Schlegel
body: Is this the right version of the documentation? Are you using Confluence 5.4?

In Confluence 6, the task-thing is different: look here: <https://confluence.atlassian.com/doc/add-assign-and-view-tasks-590260030.html>

comments: author: Louis Kerson R. Pognon
body: I'm using the cloud version. I don't know what version it is .


author: Thomas Schlegel
body: OK, then this is the right documentation for you: <https://confluence.atlassian.com/confcloud/add-assign-and-view-tasks-724764949.html>


author: Louis Kerson R. Pognon
body: Thx for the documentation link.


author: Thomas Schlegel
body: you're welcome :-)


author: Thomas Schlegel
body: Hi Louis,

the shortcut is not visible. Just type "gn" in your browser window.

comments: author: Louis Kerson R. Pognon
body: It's not working.


author: Louis Kerson R. Pognon
body: I have still the same issue. I can't access the "Add Task" icon on notification. So I can't quickly set my notification as task.   

<br />


author: Louis Kerson R. Pognon
body: Let me know, please if I need to update some settings or not to access this feature.


Tags: cloud

confluence-cloud

task
How can i combine Confluence Tasks with JIRA Issues?
Asked by Ben Newport:

We conduct weely Business Development Meetings and assign tasks on the spot using Confluence.

What is the best way to convert the condluence tasks to JIRA Issues every week?


Answers:
author: Thomas Schlegel
body: Hi Ben,

maybe you can find an idea in this question: <https://community.atlassian.com/t5/Answers-Developer-Questions/Meeting-notes/qaq-p/484505>

I've described there a way to create an Jira issue from a selected text in Confluence

comments: author: Ben Newport
body: I tried to go to My Tasks in confluence.

Select some text and hover the pointer over the selection but nothing pops up


author: Thomas Schlegel
body: Did you link your Jira and Confluence installations via Application Link?

If not, look here: <https://confluence.atlassian.com/display/APPLINKS/Link+Atlassian+applications+to+work+together>


Tags: issue

jira

task
How do I get a list of all pages included in a PDF export?
Asked by jnsptrsn:

In a Confluence user macro, I want to get a list of all pages that are included in a custom PDF export (Browse -\> Space operations -\> PDF Export -\> Custom Export). Typically, my export is a subset of the whole space, and I only want to list the pages that are included in the PDF.

How can I achieve that?


Answers:
author: M Amine
body: you will need marketplace apps in order to achieve what you want


Tags: confluence-development

export

pdf

questions-for-confluence
Create a custom simple macro
Asked by Saurabh Gupta:

Creating a simple macro with no parameters except the one which defines the width of macro in view mode of confluence page.

So my macro is working perfectly except the part where it keeps on loading on insert/edit macro screen -

![Capture 2017-05-02 at 0.32.52.png](/t5/image/serverpage/image-id/1006iD4C8F0B0D3B5F98D/image-size/large?v=v2&px=999 "Capture 2017-05-02 at 0.32.52.png")

So here is my piece of code -

```
<xhtml-macro name="search-report" class="com.temp.ReportMacro" key="search-report-xhtml">        <description key="com.temp.macro.desc"/>        <category name="reporting"/>                    <parameters>            <parameter name="width" type="pixel" default="500px"/>        </parameters>    </xhtml-macro>
```

and

```
public class ReportMacro implements Macro {	@Override	public String execute(Map<String, String> arg0, String arg1, ConversionContext arg2)			throws MacroExecutionException {		Map<String, Object> contextMap = MacroUtils.defaultVelocityContext();		contextMap.put("reportType", "macro");		return VelocityUtils.getRenderedTemplate("vm/temp-report.vm", contextMap);	}	public BodyType getBodyType() {		return BodyType.NONE;	}	public OutputType getOutputType() {		return OutputType.BLOCK;	}}
```

I don't see any problem with the code, so what am i missing.


Answers:
author: Saurabh Gupta
body: Problem in my code was type="pixel". Wasted 4 hrs on searching other stuff.

comments: author: AnnWorley
body: Thanks for getting back to us - it will help the next person.


Tags: app

macro
What is the editor keyboard shortcut for merge cells
Asked by Arithzari:

The [Atlassian Keyboard Shortcut Documentation](https://confluence.atlassian.com/conf54/confluence-user-s-guide/getting-started-with-confluence/keyboard-shortcuts) does not list the keyboard shortcut for the 'Merge Table Cells' function.

If such a shortcut does not exist, then this question is intended as a request,

Thank you


Answers:
author: Thomas Schlegel
body: Hi Arithzari,

create you request in the Atlassian's Jira: <https://jira.atlassian.com/secure/Dashboard.jspa>

There you can see, what's going on with your request.

comments: author: Arithzari
body: Thank you, I have added it : <https://jira.atlassian.com/browse/CONFSERVER-52385>


author: Carey Hartmann
body: Glad you created the request for it to not even be assigned. :(


author: John BENEDETTO
body: Seven years later.... merging cells remains tedious AF


author: Carey Hartmann
body: Please note that it is incredibly frustrating to try to create a table with nested merged cells without this 4-year-old feature request.

comments: author: Vimal Maheedharan
body: So true!


author: Jana J?ger
body: indeed!


author: Joel Wirz
body: still fully agree in 2022!


author: Vincent CROISET
body: Who's still there in 2024 ?


author: Lo Peterson
body: Been asking since 2019. Love to see some traction on this... it's slowing page creation down big time


author: jose.constenla
body: 6 years and counting =(


author: Suraj Andrews
body: Absolutely. 5 years and still waiting. Not okay.


Tags: editor

keyboard-shortcut

merge
Macro Parameters: structured-macro, schema-version, macro-id
Asked by Mike Pearson:

Hoping someone could explain (or link to documentation) regarding macro parameters: "structured-macro", "schema-version", and "macro-id".

The reason I ask is that I'm calling another (add-on) macro from a User Macro I'm creating. I can either copy the source generated when using the add-on macro on a random Confluence page to get something like the following:

```
<ac:structured-macro ac:name="add-page-form" ac:schema-version="1" ac:macro-id="75223kksof-a39c5aXyz">
```

Or, I can just manually enter:

```
<ac:macro ac:name="add-page-form">
```

Both seem to achieve the same result (i.e. both appear to work). Obviously, I'd prefer to use the 2nd as it's much simpler. But I want to check that I'm not creating problems by:

1. Using "ac:macro" instead of "ac:structured-macro"
2. Ommitting the "ac:schema-version" and "ac:macro-id"

Any input/advice much appreciated! Thanks in advance...


Answers:
author: Mike Pearson
body: Anyone?

I still have not been able to identify any functional difference between the two ways to code a macro.

Can assume that it's safe to use the second code (i.e. use "ac:macro" instead of "ac:structured-macro", and omit the "ac:schema-version" and "ac:macro-id")?

And, if it's safe to do so, can anyone (just for my own interest), explain what "structured-macro", "schema-version", and "macro-id" are for?

Thanks!

comments: author: Gilles Falcon
body: Is there someone who find the doc? The real one


Tags: user-macro
Licensed User Access to Single Space
Asked by Nir Rikovitch:

After adding a user to JIRA/Confluence and adding him to a group called "A".

I've adjusted the premissions for a specific space so that that group has viewin/editing and so forth.

When logging in as that user, I can't get to the space. I'm essentially stuck on a specific page that has the header bar of our Confluence.

Why is that happening though I've followed the documentation.


Answers:
author: Nic Brough -Adaptavist-
body: You need to re-check the permissions for the group in the space, and maybe explain what "can't get to the space" means - is it listed in the spaces drop down for example?

comments: author: Nir Rikovitch
body: Thanks for replying. I have rechecked the group premissions in the space. It is identical to the confluence-users group settings that I have.

As for "can't get to the space": When logged in as the user, I'm taken to the jira dashboard. When clicking the confluence link, I'm taken to "Adminstraion/Users" where the page title says "Not Premitted" and te next under says "You are not permitted to perform this operation". So I don't see any page, space or tree (not that I should see the wiki tree, being confidential).

I hope that better defined the issue I'm experiencing. Your help is apprecited.


Tags: access

group

permission
Can I create a blueprint for product spaces that other employees can reuse to bootstrap their work?
Asked by rubypearl:

I would like to create blueprints for product spaces in Confluence. With a blueprint, I could create the outline for the required Confluence space, including relevant macros, so that all product spaces would have the same layout. Is this possible? Is there a better way to do this?


Answers:
author: AnnWorley
body: Yes, according to [Space Blueprint Module](https://developer.atlassian.com/confdev/confluence-plugin-guide/confluence-plugin-module-types/space-blueprint-module) "As a plugin developer, you can use a Space Blueprint module to add to the Create Space dialog in Confluence to help users bootstrap the space creation process."

This may help you get started as well:[Space Blueprints](https://developer.atlassian.com/confdev/confluence-plugin-guide/confluence-blueprints/space-blueprints)

comments: author: Anil singh
body: Yes, You can create your custom space by the following link [https://developer.atlassian.com/confdev/confluence-plugin-guide/confluence-blueprints/space-blueprints?_ga=2.247812942.839992472.1494305478-2081482943.1468227553](https://developer.atlassian.com/confdev/confluence-plugin-guide/confluence-blueprints/space-blueprints)

Hope it will helpful for you. If you need any help you can ask me.

Anil Singh

Programmer Analyst

<http://www.mirketa.com>
Do Atlassian Accounts consume paid Confluence licenses?
Asked by Tiffany L.:

When referring to the bottom of <https://confluence.atlassian.com/cloud/select-the-right-account-for-your-jira-service-desk-customers-873871210.html>, the page says "For customers to log into Confluence and collaborate on pages, convert them to Atlassian account . Don't worry about licensing. You don't need to give them application access to Confluence. Converting a customer to Atlassian account does not affect your current pricing."

Does this then mean that any time I convert a portal-only user to an atlassian account, the user is granted access to confluence and it doesn't increase my subscription costs? What is the best way for me to validate this configuration/cost setup? FYI - we're a cloud service desk customer.


Answers:
author: AnnWorley
body: [Introducing the login-free portal](https://confluence.atlassian.com/servicedeskcloud/blog/2017/04/introducing-the-login-free-portal) doesn't mention giving write access to Confluence for free for Service Desk customers.

In the page you linked, it looks like the writer is saying that you can safely convert user accounts, giving them read-only permissions to Confluence, without going ahead with giving them application access for Confluence, which would take up a Confluence license.

comments: author: AnnWorley
body: Tiffany, we updated that document you linked. Thanks for pointing out the ambiguity. Now it says:

"To let customers to log in to Confluence and view your knowledge base space, convert them to Atlassian account. Simply converting a customer to Atlassian account doesn't affect your current pricing. Don't worry about licensing. You don't need to give them application access to Confluence (which would take up a license) unless you want them to edit and comment in Confluence in addition to viewing the knowledge base."


Tags: confluence-cloud

user

user-management