youngmon/atlassian-qna huggingface dataset:
What is the best location for software across all teams?
Asked by Charlie Johnson:

I work with two IT teams, Development and Operations. Each team has its own space. Is it better to set up a software parent page in each space to separate software and applications by team or is it a better alternative to display both teams' software and applications in one space?

1. What space structure has worked best for you regarding software and applications? An example of a left navigation pane would be helpful to understanding your spaces.

2. Do you separate software from applications in a space or do your applications have their own spaces?

Thanks!

Charlie


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Charlie Johnson](/t5/user/viewprofilepage/user-id/591538) ,

my suggestion is to use separated spaces and use space link to facilitate users to navigate accross different linked spaces.

Hope this helps,

Fabio
Add a custom wiki to knowledge base for customer service desk.
Asked by Parker Weihe:

Not sure if I'm asking this correctly or not. But a while back we developed an automated process that generates the text formatting for a custom wiki that defines and describes our custom api for one of our products. Is there a way to link this up in the knowedge base so that if a customer typed out say ".setMode" it would provide them with a link to that methods wiki page? On top of of that is there a way that the confluence can house this said wiki?


Answers:
author: Nic Brough -Adaptavist-
body: Duplicate - <https://community.atlassian.com/t5/Confluence-questions/Add-a-custom-api-wiki-to-knowledge-base/qaq-p/600179>


Tags: api

cloud

jira-service-desk

wiki
Table of Contents Macro not functional - Confluence 5.9.12
Asked by Marius:

I read all posts in the Forum that relate to the ToC-Macro and tried all suggestions but it seems like there is another Bug in 5.9.12.

The table shows all headlines correctly but the links don't redirect.

If you refresh the window, you get to the right spot.

I would be glad if anyone could help.

Greetings,

Marius


Answers:
author: Marlon Palha
body: Hi Marius,

As part of reading all posts in the forum related to this, did you read <https://jira.atlassian.com/browse/CONFSERVER-39960>? The description of the issue there sounds similar to yours even though it doesn't specify 5.9.12. Do the suggested workarounds there not work for you?

Thanks,  
Marlon

comments: author: Marius
body: Hi Marlon,

thanks for your answer!

I started playing around with the ToC Zone again and notices something strange that indeed works as a solution.

If the Table of Contents is followed by an empty Table of Contents Zone, it magically works. Even though the Table of Contents Zone is empty, thus not visible in the end and not contributing to the layout.

Anyway, it works. Thanks a lot.

Marius


Tags: table-of-contents
How do I ALWAYS open ticket in tab WITHOUT right click. Configurable?
Asked by JD Elliott:

I'm constantly accidentally triggering the ticket summary while in board view. I NEVER, EVER want to see. Kill it with fire. I would like to configure the links in my board to open a new tab for the ticket. It eats up valuable horizontal screen space. Especially on laptops and small screen resolutions on video calls.

I'm guessing this isn't configurable. I'm here hoping someone will prove me wrong. I can't find a setting.

I can't figure out how to make a feature request either.

This is a small thing that makes the people on my team curse at Jira every day.


Answers:
author: josh
body: I know this answer isn't the greatest, but CTRL+Click (on windows) will open up the details in a new tab.


Tags: jira

link

tab
Syntax for a variable inside a style attribute in a user macro
Asked by John Corwith:

Looking to write a macro where the user can configure the table border color. Need something along the lines of:

\<table style="border: 2px solid $colorvariable;"\>

but I need to 'escape' the $colorvariable.

my macro works as expected with

\<table style="border: 2px solid white;"\>


Answers:
author: Thomas Schlegel
body: Hi John,

this should do it:

Macro Body: rendered

```
## @param colorvariable:title=Colorvariable|type=string|required=true<table style="border: 2px solid $paramcolorvariable;">
```

comments: author: John Corwith
body: oops, I forgot the param leading the attibute. will try that, thanks!


author: Thomas Schlegel
body: did you name the variable "$paramcolorvariable"?

without "param" before the variable name, it doesn't work. In your example code, you name the variable just $colorvariable.


author: John Corwith
body: did the following:

## @param colorvariable...

\<table style="border: 2.0px solid $++colorvariable;++"\>

my bad. will test in a few but I'm pretty sure you hit it. have programmed in too many different languages. thanks.


Tags: user-macro
Getting HTTP Error, when uploading a file
Asked by Biswa Bangla News:

*This question is in reference to Atlassian Documentation: [Upload Files](https://confluence.atlassian.com/pages/viewpage.action?pageId=724765101)*

file upload function failed all day.

It results "http error"

Why????


Answers:
author: Nic Brough -Adaptavist-
body: Is it one specific file, or all file uploads?

If it's one file, then the question is what's the difference between it and files that work.

If it's all of them, it needs to go to <https://support.atlassian.com> because the next step is to start looking at logs, and only they can do that.


Tags: attachment

error

upload
How can I turn on comment pins for images in Confluence 6?
Asked by Marcus Reese:

<https://confluence.atlassian.com/doc/share-and-comment-on-files-704578253.html> says we can pin comments on images, but I'm not seeing it.

Things I've tried:

- Paste image in edit mode, preview (no pin option there), update to publish, click on image (no pin option there), select image (no pin option pops up), edit (no pinnable comment option there).

- Drag and drop pdf, update to publish, click (just downloads the file).

- Use PDF macro to import pdf image, click to run PDF viewer (no pin option there).

- Search macros for Preview (no such thing).


Answers:
author: AnnWorley
body: Is the lightbox coming up at all when you click the image? If not, please check whether the plugin "Confluence Previews" is enabled under Confluence Admin\>Add-ons\>filter by All Add-ons.

Please let me know what browser you are using.

comments: author: Marcus Reese
body: Thanks! I asked our administrator to enable the plugin, and now things are working in Chrome. He says in Firefox it only seems to work on PDFs, not images:

" I tried commenting on your page again, and was able to pin a comment to the PDF. I couldn't view the PNG files (just got a spinner, and the list of files changed to all PDF). "

He also suggested that you put that plugin info on the Documentation page "Share and Comment on Files."

Again, thanks so much!
How to show issue summary for a JIRA issue filter macro while in edit mode
Asked by Anthony Pomtree:

While editing a Confluence page and using a single JIRA issue filter macro, you can only see the issue number. This is not very helpful when editing a page with numerous links. Is there a way to customize the macro so that it's more descriptive?

Example:

![jira-issue-filter-macro.jpg](/t5/image/serverpage/image-id/2320i61F954F56DB2B2FD/image-size/large?v=v2&px=999 "jira-issue-filter-macro.jpg")


Answers:
author: Ameer
body: From 'Edit' window of the confluence page, click on the Jira Issue macro. A popup appears, where you can click on 'Show Summary'. That's it.![jira.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/33110iBD4A36BA51CE4D7F/image-size/large?v=v2&px=999 "jira.PNG")

comments: author: Paolo Cruz
body: [@Ameer](/t5/user/viewprofilepage/user-id/1607751) it seems that you misunderstood his questions.

He wants to show summary in edit mode and not in "published/saved" mode (what you mentioned).


author: Joel Ransom
body: I have the same question as the OP's over 2 year old question. It seems like a basic need that is left unmet. It's a daily source of aggravation.

While Ameer's year old answer wasn't quite accurate it is still helpful, because if you click on the Jira Issue Macro and click Edit you can at least see the issue summary for that Issue. It never occurred to me to do that.

Of course what I want is for all the issue summaries to display when the confluence page is in edit mode.


author: Brett Hall
body: This is a daily source of frustration for us too. I only see the Edit, View in JIRA, or Remove options, no summary.

Please help vote up: <https://jira.atlassian.com/browse/CONFSERVER-24448>


Tags: issue-link

macro
change css space styling for table headers
Asked by Mordechai Cikk:

This page (as well as helpful insights by other users) was very helpful for changing basic Header styles:

<https://confluence.atlassian.com/doc/styling-fonts-in-confluence-174751968.html>

It provides the following helpful starter:

body {  
font-family: Times, "Times New Roman", serif;  
font-size: 14px;  
}  
.wiki-content,  
.wiki-content p,  
.wiki-content table,  
.wiki-content tr,  
.wiki-content td,  
.wiki-content th,  
.wiki-content ol,  
.wiki-content ul,  
.wiki-content li {  
font-size: 14px;  
}

But I haven't been able to find explanations for using those styles listed.

Some basic page content that I need to alter syles for are:

1) Table headers and detail rows (I found that .wiki-content tr, and .wiki-content td, both do this BUT for headers and detail rows together. I was not able to split them up).

2) Space footer

Thanks for any ideas.

Mordechai


Answers:
author: StephR
body: 1) Regarding table styling:

* Header rows can be targerted using .wiki-content th
* Additional cell can be targeted with .wiki-content td
* Only use .wiki-content tr if you want to impact all rows in the table, for instance if you want to force a minimum height. The td and th elements are nested in tr.

2) For footer, you should be able to use #footer .footer-body

comments: author: Kris Fininen
body: [@Stephanie Renfrow](https://community.atlassian.com/t5/Confluence-questions/change-css-space-styling-for-table-headers/qaq-p/599714) We are unable to change the header row other than the font size and border style. We used Adaptavist's CSS Style Sheet macro. We are using Confluence 6.6.1 on Windows 7 PC. Here is the CSS we entered:

.wiki-content th {  
font-size: 1.2em;  
color: #39016d;  
background-color: #00aa00;  
border: 3px #fff solid;  
}

.wiki-content tr {  
color: #fff;  
border: 3px #fff solid;  
background-color: #a84000;  
}

.wiki-content td {  
border: 3px #fff solid;  
}

Using the above styles, the header row background color and font color do not change. Only the font size and border color are changed. Are there limitations on what can be changed in the header row?

Another problem is all the styles do not carry through to a PDF document using the Scroll PDF Exporter 4.2.1. Using the CSS above only the header font size and the row color are exported.

And finally, NOTHING comes through when using Scroll HTML Exporter 3.7.1. The table reverts to the default styles.

Note: We want to be able to change styles on individual pages and not the entire space.

Any ideas?


Tags: css

stylesheet
How create a wizard after creating the Blueprint on my Confluence Cloud
Asked by Basma:

Hi Atlassian devloppers ,

After creating a Blueprint add-on based on node.js for my Confluence cloud. using the tutorial on the link bellow

i wanna create a Dialog Wizard that display a "name " field (name of the page that will be creating via BluePrint) just after the user click on the blueprint

<https://developer.atlassian.com/cloud/confluence/multi-page-blueprints-with-confluence-connect/>

#HelpPlease

Regards

HELD Basma


Answers:
author: Brenda Blanco
body: Same here! Any help?


Tags: cloud

confluence-cloud

confluence-development

connect

developer

node.js
Searching by labels (number)
Asked by azweg:

I have defined label '1234' and labed some pages with it. Label '1234' is now visible under "all labels" page and filtering from this place works perfectly. But the question is how to filter this label in searching field - "labelText: 1234" doesn't seem to work while "labelText: agile" works perfectly, any ideas how to do it?


Answers:
author: Nic Brough -Adaptavist-
body: Duplicate of <https://community.atlassian.com/t5/Confluence-questions/Searching-by-labels-number/qaq-p/599556>
Searching by labels (number)
Asked by azweg:

I have defined the number label ie. '1234' and labled some pages with it. The question is how to filter it in searching field? Labeled pages are visible under "All labels" page but typing "labelText: 1234" seems to not work. While "labelText: agile" works perfecly. How to correctly define this filter?


Answers:
author: Marlon Palha
body: Hi Aleksandra,

Have you tried using a CQL search such as:

label = 1234 or

label = "1234"

See <https://developer.atlassian.com/confdev/confluence-server-rest-api/advanced-searching-using-cql>

Thanks,

Marlon

comments: author: azweg
body: I have tried almost everything and unfortunatelly it doesn't work. Seems like Confluence doesn't understand number labeles...
Automatically label template page based on template variable
Asked by Axel Holene:

I have a template with a template variable that contains a list of quality properties, where one is to be chosen.

```
qualityProps = {quality1, quality2, quality3}
```

When the user is generating a new quality property report via the template, I would like the resulting page to be labelled automatically based on the chosen quality property. For instance, if the user choses \`quality1\` the resulting page should be labelled \`quality1\` (or whatever the quality property is named).

How may I achieve this?


Answers:
author: Christoffer Bromberg _K15t_
body: Hi Axel,

<br />

Afaik you can only use static labels on templates.

The way to build this for all users would be Confluence blueprints - <https://developer.atlassian.com/server/confluence/confluence-blueprints/>

Cheers, Christoffer

comments: author: Sergey Bondarev
body: It's sad.


Tags: label

template
Export confluence data to wikimedia
Asked by Shubham Saini:

Hi, Is there any option available in confluence to export it's data to wikimedia


Answers:
author: Nic Brough -Adaptavist-
body: I think the question is more "what can wikimedia import"

Confluence can export to XML (either by space in a generalised xml, or a more "backup of the whole of confluence for moving the whole thing" format), word type documents, HTML or pdf.

There are other exporters for other formats available in the marketplace as well.

Whether any of these might be suitable for wikimedia import, I can't answer, I don't know it.


Tags: export
Widget connector not working for youtube videos
Asked by Joel Negroni:

I need to embed some Youtube videos into the confluence site I'm designing. Currently I use the widget connector and it is not adding videos that I need connection for.

Here is how they come out. Can someone assist me with this, is it an error on my side?

![Screen Shot 2017-06-19 at 8.19.33 PM.png](/t5/image/serverpage/image-id/2298iC7A372E6D2EA6688/image-size/large?v=v2&px=999 "Screen Shot 2017-06-19 at 8.19.33 PM.png")![Screen Shot 2017-06-19 at 9.52.09 PM.png](/t5/image/serverpage/image-id/2299i356AE8A58F72F1E0/image-size/large?v=v2&px=999 "Screen Shot 2017-06-19 at 9.52.09 PM.png")


Answers:
author: Dave Horn
body: Hi Joel,

I took a look at the Widget Connector macro. The way it works is that a source site needs to have access built into the macro, and your source site isn't one of them. If you can find a way to re-host your content on a recognised host you should be fine. Widget Connector supports content from around 50-odd hosts, but not the one you've listed. Good luck :)


Tags: embed

user-macro

video

widget

widget-connector
Export Formats no longer has PDF
Asked by Terry Stratoudakis:

See this screenshot:

![Capture.PNG](/t5/image/serverpage/image-id/2265iEF891F1E743C0D0A/image-size/large?v=v2&px=999 "Capture.PNG")It used to have PDF as an option. Now it is missing. How do I get PDF back?

I find this feature very helpful and would be vey disappointed if it was removed.


Answers:
author: AnnWorley
body: Terry, I am afraid you are not the only one who has experienced the PDF space export disappearing in Cloud: [PDF Export option missing in Confluence](https://community.atlassian.com/t5/Confluence-questions/PDF-Export-option-missing-in-Confluence/qaq-p/578812)

The support team can restore the PDF export functionality if you open a ticket at <https://getsupport.atlassian.com>.

comments: author: Terry Stratoudakis
body: thank you Ann


Tags: confluence-cloud

export

pdf
Change template content based on user input in variables
Asked by Axel Holene:

I have a template which have a couple of variables, such as

```
$tempTitle (String)$tempQuality (list of Strings)
```

where $tempTitle is just a string and $tempQuality is a list variable given in the template.

Now, I have spent a lot of time trying to figure out how I'm supposed to do this, and my employer should probably kill me for spending so much time on just nifty feature...

I'm trying to rename the title with the code given by Nelson in [this answer](https://community.atlassian.com/t5/Confluence-questions/Is-it-possible-de-prefill-a-page-title-based-on-a-template/qaq-p/203821), which works on $tempTitle. However, I'm not able to write more code that actually are able to evaluate the $tempQuality and include this evaluation in the title.

My code as it stands now (not working)

```
## @noparams<script>$("input[name='variableValues.tempQuality']").change(function(){  var KEnr = $(this).val();});$("input[name='variableValues.tempTitle']").change(function(){    console.log($(this).val());    $("form[name='filltemplateform']").find("input[name='title']").val($(this).val())})</script>
```

I completely fail to understand how the Confluence macros handle data from template variables, can someone please enlighten me? I'm going completetly bonkers over how riddiculously difficult it is to have some sophisticated dynamic content in Confluence.


Answers:
author: Stephen Deutsch
body: Hi Axel, maybe try this:

```
<script>AJS.toInit(function() { if (document.URL.indexOf("createpage-entervariables.action?templateId=132939777") !== -1) {  var variableNameElement = $('input[name="variableValues.variableName"]:visible');  variableNameElement.on("change", function() {   $("input[name=title]").attr("value", variableNameElement.val() + " - " + (new Date()).toISOString().substring(0,10));  }); }});</script>
```

Change 132939777 to whatever your template ID is (when you load the template, it's shown in the URL) and change all instances of "variableName" whatever your variable name is. I included also inserting the current date in the page. You seem fairly familiar with Javascript, so you can customize it as you want.

Unfortunately, including it in a user macro won't work. You'll have to insert it in the Global Custom HTML to get it to work.


Tags: javascript

user-macro
Deleted attachement - hidden, renamed or really deleted?
Asked by Florian Schmidt:

I have a question regarding deleting attachments in Confluence. I you delete it, is it

* deleted? I mean really gone?
* hidden?
* renamed or renamed in db?


Answers:
author: Thomas Schlegel
body: It depends...

on the version of Confluence you are using.

With version 5 and before, deleted attachments are gone. If you don't have a backup of the server, they are lost.

With version 6, deleted attachments are moved to trash bin. A space admin can restore your files from there.


author: Nic Brough -Adaptavist-
body: They're deleted. Gone.

You'd need to do an undelete at the operating system level to recover the physical file.


Tags: administration

attachment
PDF export and print: include elements from the page information
Asked by Olivier Marchesini:

For a quality management system, when printing a page I need to add some information as author, last change. links with and links from to the page. This information is kept in Confluence (you can see it inPage information).

So is it possible to add meta data to teh print or pdf?


Answers:
author: AnnWorley
body: Please check out the [PDF export add-ons available on the Atlassian Marketplace.](https://marketplace.atlassian.com/search?product=confluence&query=pdf) They really add a lot of options.
Count child pages of parent when creating a page from template
Asked by Axel Holene:

I'm trying to automatically set parts of the title in pages created with a macro, inspiation found here: <https://community.atlassian.com/t5/Confluence-questions/How-to-count-the-number-of-child-pages-with-a-particular-label/qaq-p/445878>

The macro I've written counts the child pages of the current parent, and returns that number + 1, indicating the numeric title of the page to be created

```
1 Parent (this page has a "create from template" button)    1.1 Child one    1.2 Child two    1.3 Child three, etc.
```

The parent page has a "Create from template" button. When trying to use the \`countChildren\` macro when generating the \`Child one\` pages and so on from a Template, the returned number of children is zero. I suspect the macro doesn't recognize \`1 Parent\` as a parent page anymore.

How do I refer to the \`parent\` page which calls the template in a macro?

```
## @noparams#set($pageCount=0)#foreach ($child in $content.children)    #set($pageCount = $pageCount + 1)#end$pageCount??
```


Answers:
author: Stephen Deutsch
body: Pretty easy change:

```
## @noparams#set ( $pageCount = 0 )#foreach ( $child in $content.parent.children )    #set ( $pageCount = $pageCount + 1 )#end<p>$pageCount</p>
```

comments: author: Axel Holene
body: Thanks for the reply. This doesn't work in a template... Does the template page know its parent before it is "properly" created, i.e. it is available as a new page in the page tree?


author: Stephen Deutsch
body: Unfortunately it doesn't, it only knows it as soon as the page is saved. At the moment of creation before it is saved, it acts as an "orphaned" page. I don't think there's anything that can be done about this :(


author: Axel Holene
body: Thanks for the effort, mate :-)

The more I try to translate what I consider pretty simple requirements when it comes to reducing administration by using Confluence, the less impressed I am.


author: Stephen Deutsch
body: One thing that's nice about user macros is that just about nothing is impossible :)

This might work for you:

```
## @noparams#set ( $Long = $generalUtil.systemStartupTime )#set ( $templateParent = "" )#set ( $referer = $req.getHeader("referer") )#if ( $referer.contains("fromPageId=") )    #foreach ( $part in $referer.split("&") )        #if ($part.contains("fromPageId=") )            #set ( $templateParent = $part.replace("fromPageId=", "") )        #end    #end#end#set ( $templateParent = $req.getParameter("fromPageId") )#if ( $templateParent != "" )    #set ( $parentPage = $pageManager.getPage($Long.parseLong($templateParent)) )#else    #set ( $parentPage = $content.parent )#end#set ( $pageCount = 0 )#foreach ( $child in $parentPage.children )    #set ( $pageCount = $pageCount + 1 )#end<span>$pageCount</span>
```


author: Axel Holene
body: It works! Great! So thankful! :-D

Where on earth did you find documentation for the magic you perform here?


Tags: blueprint

template