youngmon/atlassian-qna huggingface dataset:
Where is the button to add a Code Block Macro Language
Asked by Marco Lisi:

*This question is in reference to Atlassian Documentation: [Code Block Macro](https://confluence.atlassian.com/pages/viewpage.action?pageId=139390)*

The article mentions **Add a new language**, but I do not see this button. See screenshot below. Is this normal?

image2015-11-20 10:51:34.png  
[](https://community.atlassian.com/t5/Confluence-questions/Where-is-the-button-to-add-a-Code-Block-Macro-Language/qaq-p/110863?attachment-id=10933){#link_1187acfeefcfeb}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/18493/1/image2015-11-20%2010%3A51%3A34.png){#display_1187acfeefcfeb_0}


Answers:
author: Bob Swift (personal)
body: I don't think that is available for Cloud???


author: Lo?c Dewerchin
body: Well I am on Server, not Cloud ...but I suppose it's the same on cloud.

Note the following option is available starting from Jira 7.5 on server , it should have been active on Cloud for quite some time now

There isn't a button to add/change to a specific language. Just add a code macro in visual mode , then switch to text mode and you will see something like this :

{code:java}  
// code placeholder  
{code}

just replace the java keyword with the language of your choice , you can find the list here: <https://jira.atlassian.com/browse/JRASERVER-21067>

Strange enough I cant find this list in the official JIRA documentation. Not linked in the release notes either : <https://confluence.atlassian.com/jirasoftware/jira-software-7-5-x-release-notes-934719297.html#JIRASoftware7.5.xreleasenotes-tweaksMoreimprovements>


author: Steve Gerstner [bridgingIT]
body: I'm not sure, but maybe it's something on security settings.

Does your account has confluence- or system-administrator permissions?

> You can configure the Code Block macro to use a specific language and theme by default and also upload new lanuages. You need **Confluence Administrator** permissions to change the default theme and language and **System Administrator** permissions to upload new languages.

Regards

Steve

comments: author: Marco Lisi
body: I thought that was the case but I looked and I'm part of every role/group in JIRA, including the one for Confluence. So I'm guessing it is not a security setting.


author: dosjots
body: **I'm having the same issue though I'm using a cloud instance. Can someone from Atlassian confirm if adding custom languages for the code block macro is supported or not?**


Tags: cloud

code-block

confluence-cloud

documentation
How to remove the reference to attachments that have been deleted?
Asked by Lisa St George:

For instance, I have attached JIRA issues to my project pages and then deleted them. Currently I have 2 JIRA issues linked or referenced in my project page, but he page still displays that I have 3 JIRA issues linked or referenced in the page (see pic attached). How do I make it so this note only references those that are still attached?

JIRA_Links_screenshot.jpg  
[](https://community.atlassian.com/t5/Confluence-questions/How-to-remove-the-reference-to-attachments-that-have-been/qaq-p/170241?attachment-id=10315){#link_1191691297479d}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/28431/1/JIRA_Links_screenshot.jpg){#display_1191691297479d_0}


Answers:
author: JK Thng
body: Hi @Lisa St George.

To remove the JIRA issues referenced in "JIRA meta data", you need to remove the "issue link" from the JIRA issue itself.

Hope this helps.

JK,  
Confluence PM
How to make a change in a Field in JIRA via updating Confluence, i.e. Tickboxes
Asked by DevOps:

If listing many issues, can the Approval be done via Confluence by an approved person/group member clicking a radio button?

Thanks

David


Answers:
author: David Skreiner
body: AFAIK no, that person would have to open each issue they want to approve (e.g. in a new tab) so they can edit it in JIRA. They can see the change they made only after Confluence has synched its JIRA issues macro.

What Confluence offers is overviews, graphs, lists etc of JIRA issues; these get synched once per hour by default IIRC.

In order to change an issue's status or description text, you can't just click somewhere in Confluence, but will have to open the ticket in JIRA and make the change there (e.g, transition to an Approved status, or check an Approved checkbox).

... at least as far as I know. Maybe you can find something helpful here:

<https://confluence.atlassian.com/doc/jira-issues-macro-139380.html>


Tags: confluence-administration
How do you create a macro to simply add pre-written text to a confluence page when in edit mode?
Asked by Jiten Yagnik:

I need a way to be able to add some pre-written text to a confluence page when editing.

My company often lists certain tasks with different bits of information and they want a way to be able to simply insert a template of text so that they only have to fill in the missing information, rather than copy and paste from previous tasks.

It seems like a really simple issue, but i'm struggling to find a solution. I'm assuming creating a macro is the right answer. Feel free to tell me I'm wrong!

Thanks in advance for any answers


Answers:
author: Stephen Deutsch
body: Do you need something different from the built in template functionality? Confluence allows you to create templates which have pre-defined text in the page, and then you can have people edit this pre-defined text. You can even set variables so people fill it in like a form.

Here is some more information:

<https://confluence.atlassian.com/doc/create-a-page-from-a-template-296093793.html>

If you want just one section to be pre-defined, then that is a different story.


author: Nic Brough -Adaptavist-
body: There's a couple of approaches, but there's a distinction we need to clarify.

When you add this macro, do you expect it to create a set of pre-set text and then remove itself? Or should it remain as a macro on the page which always displays the pre-set text when the page is viewed?

If it's the first, there's not actually a lot you can do - macros are mostly supposed to run when a page is viewed. There are some options when first creating a page, but the best place to look is the add-ons in the marketplace.

If it's the second, then it's easy, and you have options

1. Use the include macro to include the content of a page you keep (read-only) elsewhere
2. Write a macro add-on to display your text (I wouldn't bother with this, given 1 and 3, I mention it for completeness only)
3. Write a "user macro" that displays the text you need


Tags: cloud

confluence-cloud
Confluence with AWS Elastic Load Balancer
Asked by Pete Carpenter:

Hi,

I recently installed Confluence on EC2, and I have an ELB in front of it which which translates port 80 through to the confluence port. The ELB in turn has a DNS CNAME through which we access. The confluence server is configured to only allow traffic to and from the ELB.

Pretty much everything works fine - URLs are rendered as expected, I can create content and links work correctly, except in a couple of places I've spotted:

1) If I go to the Spaces Directory page, all the Spaces links do not work as they are trying to use the underlying confluence server IP rather than the elb and cname.

2) Same with some of the links in Notifications - links to the modified pages are using the underling IP, but links for Stop Watching, Reply and Like are all rendered correctly.

Is there some additional configuration that needs to be done on the confluence server? I've found a few similar posts here on AWS ELB, but none with any definitive answers.

Pete


Answers:
author: Pete Carpenter
body: Managed to find the server base url setting in general config, switched this to the external host and all seems to be working great now.

comments: author: Anshuman Bakshi
body: Hi Pete,

I am also trying to install Confluence on EC2, and we also have an ELB in front of it which translates through port 80 through to the confluence port. the installation works fine on terminal but when it redirects us to web page of confluence installation and after setting up database connection successfully and clicking on next page, it gets wrecked and shows JMX and spring context error.

Please let me know if you could help on installing confluence behind AWS ELB.


Tags: confluence-administration
Can I add radio buttons to a page template form in Confluence?
Asked by Susan Dedman:

We're using Confluence to regularly collect data from our team, by asking them to fill in forms in Confluence from a page template. The form fields allow for input through text, multi-line text, and drop-downs. Is it possible to use radio-buttons somehow, or other options e.g. sliding scale?

Really appreciate any help! We are currently on Confluence Cloud.


Answers:
author: Guilherme V.
body: By default, Confluence doesn't have radio button for multiple choices. Try using this [add-on](https://marketplace.atlassian.com/plugins/net.artemissoftware.confluence.easyforms.EasyForms/server/overview). Open a ticket support for the cloud team to see if they can install it for you.

Cheers,

comments: author: Susan Dedman
body: Guilherme,

Thanks very much for your answer. Since the add-on is only available on Server, how do I open the ticket support to request it for Cloud? Appreciate your help.


Tags: cloud

confluence-cloud
Clickable Link in Jira Issue Macro
Asked by Anthony Cardone:

Hello,

When I use the Confluence 'JIRA Issue Macro', certain fields that were clickable in the original JIRA filter are no longer links, just text.

For example, any URL Custom Field with a link in it, Assignee, Reporter, or any hyperlink typed into a Description field, are all clickable in a JIRA filter, but then using that filter in a JIRA Issue Macro displays it on the confluence page as text.

I'm using Confluence v5.5

Does anyone know how to work around this?


Answers:
author: Anthony Cardone
body: Hi Luiz,

I will have to work with my IT team to do a full confluence shutdown and clear out of the cache.

We didn't update any base URLs... but just to be clear, no links are broken, it's simply that some fields come through as plain text instead of a hyperlink.

For example,

If I create a JIRA filter containing IssueType, Summary, Assignee, Sub-Tasks, and CustomURLField1....

In Jira, all 5 fields would be hyperlinks.

In a confluence 'JIRA Issue Macro', only IssueType and Summary would be hyperlinks, and the rest would be plain text

Thank you!

-Anthony


author: Luiz Maia
body: Hi Anthony,

It's possible that we have a issue with the plugin. I suggest you clear the plugins cache as per this article: <https://confluence.atlassian.com/display/CONFKB/How+to+clear+Confluence+plugins+cache>

Also, just in case, did you update the JIRA or Confluence base URL's? That might cause broken links with external gadgets, that can be fixed following the resolution from this article as well: <https://confluence.atlassian.com/display/CONFKB/How+to+Change+URLs+of+External+Gadgets>

Regards,  
LM

comments: author: Anthony Cardone
body: Hi Luiz,I will have to work with my IT team to do a full confluence shutdown and clear out of the cache.We didn't update any base URLs... but just to be clear, no links are broken, it's simply that some fields come through as plain text instead of a hyperlink.For example,If I create a JIRA filter containing IssueType, Summary, Assignee, Sub-Tasks, and CustomURLField1....In Jira, all 5 fields would be hyperlinks.In a confluence 'JIRA Issue Macro', only IssueType and Summary would be hyperlinks, and the rest would be plain text.While I look into doing the cache clearing with IT, are there any other suggestions I can try?Thank you!-Anthony


Tags: confluence-administration

jira

macro
Can space admin view the contents of the restricted page automatically?
Asked by Komal Mathur:

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

Can a space admin, view contents of all restricted pages automatically?

Confluence 5.7.1


Answers:
author: Tibor Hegyi _META-INF_
body: There is an addon that reveals all the secrets of Confluence permissions and restrictions: <https://marketplace.atlassian.com/plugins/hu.metainf.plugin.confluence.ultimate-permission-manager/server/overview>

It allows you to verify who can or cannot see what (spaces, pages, restricted pages) and understand the "why" as it gives you detailed explanations of direct or indirect permissions effective in the system.


author: Stephen Deutsch
body: No, only a confluence admin can see all restricted pages automatically. However, a space admin can remove restrictions from pages: <https://confluence.atlassian.com/doc/page-restrictions-139414.html> and then see them, but then it will be obvious that someone did something.


Tags: confluence-administration

permission
How to move page tree with attachments from a space to another?
Asked by Amos Chen:


Answers:
author: Nic Brough -Adaptavist-
body: Edit the page, click "location" and change it to the new space. You can move all the child pages with it. (Attachments are irrelevant, they stay with the page they're attached to no matter what)

comments: author: Amos Chen
body: Hi Nic, page can be moved over, however attachments cannot be moved over properly. All attachments links are broken. Cannot open it at all.Thanks,


author: Nic Brough -Adaptavist-
body: Ok, that sounds a bit broken. What does the log file say when you try to do a page move?


author: Amos Chen
body: We actually host in cloud. I cannot check any logs at all. Thanks,


author: Nic Brough -Adaptavist-
body: I'm sorry, I missed that label. This still sounds like there is an issue, I'd contact Cloud Support on <https://support.atlassian.com> to see what they say (because the server I've just checked moves attachments with the pages)


author: Hilli Balzer - PractiProject
body: Copy Page Tree will help you <https://marketplace.atlassian.com/plugins/com.nurago.confluence.plugins.treecopy/cloud/overview>


author: Nic Brough -Adaptavist-
body: Although that might run into the same problem the standard move is having


author: David Skreiner
body: That only works if one buys an expensive plugin, right\`?


author: Nic Brough -Adaptavist-
body: Copy page tree is an add-on. Standard drag and drop is built in.


author: David Lannan
body: Id like to know how "copying content" around a "content management system" is not a default feature?

Has this been resolved? Or are there still a reliance on external plugins for what should be a standard part of the system?

comments: author: Nic Brough -Adaptavist-
body: Because copying things is needless duplication, and generally a bad thing to do. Update the original, you've got a history if you get it wrong. Or include pages from the original if there's a genuine need for a copy.

So, to answer the question, no, there's still a reliance on add-ons for a function that you should not really need often enough to include it in the core.


author: David Skreiner
body: <http://stiltsoft.com/blog/2015/03/top-5-most-requested-features-for-confluence/>

... but they seem to prefer to sell addons to fixing #1 on that list.

comments: author: Nic Brough -Adaptavist-
body: Well, the add-ons that help with most of those aren't Atlassian add-ons.

The existence of a 3rd party add-on that implements features that have been requested is actually something that pushes the feature **down** the list for Atlassian to implement in the core product.


author: Gliffy
body: Is there a public facing issue for this logged? We have some users with the same issue we'd like to point them to. Thanks! :smile:


Tags: cloud

confluence-cloud
Why is my javascript rendering correctly in preview mode but stops working once the page is saved?
Asked by CAMG Training:

My code is as follows:

```
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"&gt;&lt;head&gt;&lt;title&gt;IMG EXPAND&lt;/title&gt;&lt;style type="text/css"&gt;#ToggleTarget {	display: none;}&lt;/style&gt;&lt;script type="text/javascript"&gt;function Toggle() {	var el = document.getElementById("ToggleTarget");	if (el.style.display == "block") {		el.style.display = "none";	}	else {		el.style.display = "block";	}}&lt;/script&gt;&lt;/head&gt;&lt;body&gt;&lt;p&gt;&lt;a href="javascript:Toggle();"&gt;&lt;img src="https://thegrid.solarcity.com/download/attachments/37202190/warehouse.jpg?version=5&amp;modificationDate=1447954817206&amp;api=v2"/&gt;&lt;/a&gt;&lt;/p&gt;&lt;div id="ToggleTarget"&gt;OMG YES&lt;br /&gt;I DID IT I IS SO SMART&lt;/div&gt;&lt;/body&gt;&lt;/html&gt;
```


Answers:
author: GabrielleJ
body: How does it look like? What does the browser logs say? Any errors?


Tags: html

javascript
Is it possible to have "preview" be the default when you click on an attachment in the Attachments macro?
Asked by Greg Kullberg:

In Confluence 5.8, I love how when you click on an attachment, it goes into the preview view where you can view a slide deck at full screen, add comments, upload new versions, etc...

However when you use the Attachments macro, it seems like you can only download the attachment, or use the old tiny window preview. Is there any way to have the attachments macro default to "preview", and then have a separate link for downloading the file?


Answers:
author: James H
body: I have created this as a suggestion on the Atlassian site, please vote for it here!

<https://jira.atlassian.com/projects/CONFSERVER/issues/CONFSERVER-56117>


author: square-design
body: +1 It will be nice for me also to preview by default.


Tags: attachment

preview
Show all spaces on one single page
Asked by Ben Dickson:

Need to display all spaces on one single page, instead of having to click through pages, can this be done?

Does anyone read these things?


Answers:
author: Mario G?nter
body: Hi Ben,

You can display all spaces on a single page by using spacelist macro:

spacelist.png

For further information please refer to the official documentation: <https://confluence.atlassian.com/doc/spaces-list-macro-139375.html>

I hope this helps.   
Cheers,   
Mario  
[](https://community.atlassian.com/t5/Confluence-questions/Show-all-spaces-on-one-single-page/qaq-p/84622?attachment-id=5438){#link_1187ae2a59d4cd}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/14219/1/spacelist.png){#display_1187ae2a59d4cd_0}


Tags: cloud

confluence-cloud
Access to Add-Ons
Asked by Anurag Jain:

I used to have access to manage add-ons in confluence (hosted internally).

I am not able to access add ons once we implemented integration with our Active Directory.

I am part of "confluence-administrators" and can access all other admin functions.

Please discuss if you have seen this before and if there is a easy resolution for it.

Thanks,


Answers:
author: Nic Brough -Adaptavist-
body: Go to admin -\> global permissions and check **exactly** which groups have admin rights.

Bear in mind you might have an internal confluence-administrators group with full rights, and another confluence-administrators group in LDAP with lower rights.

comments: author: Anurag Jain
body: Thanks for reviewing.

Only "confluence-administrators" has admin rights.

LDAP does not have a second group called "confluence-administrators".


author: Nic Brough -Adaptavist-
body: Ok, next thing to do - go to Admin -\> Users -\> user directories and tell us what order the directories are listed in.


author: Anurag Jain
body: I see two listings:1. Active Directory Server2. Confluence Internal Directory


author: Nic Brough -Adaptavist-
body: Ok, now, what happens if you try to reverse the order of these? Note that this should only be done when it's a quiet time, and if it gives you any warning messages, click "no" so that you don't change anything, and tell us what the warning is.


Tags: confluence-administration
Custom Theme not appearing in Site Theme page.
Asked by shivendra patel:

Custom Theme not appearing in Site Theme page. I have create and deployed using upload. I can find there i have enabled it but it dose not appears in site theme page. please help.

I am new to Atlassian confluence development.

image2015-11-19 16:9:28.png

image2015-11-19 16:10:0.png


Answers:
author: Nic Brough -Adaptavist-
body: Check the list of add-ons - does your add-on show in there correctly? And if it does show, does it show as "enabled"? If not enabled, then what happens when you try to enable it?

Does the log file say any bad things when you try to upload or enable it?


Tags: custom-field

theme
Chart Macro taking first row as header
Asked by Pranjal Shukla:

Any way to tell chart macro to not consider first row as header row?

I want stats of spaces with number of Create and Edits in it. For this i am using "Popular Content" Macro, getting it rendered in table style and nesting that in chart macro.

I am getting the chart rendered correctly (view) but the top most result of the content macro (site with maximum number of creates and edits) is not getting plotted. Plotting is getting generated from second till last row.


Answers:
author: Nic Brough -Adaptavist-
body: Not that I can find - as far as I can remember, it needs the first row to be a header so it can label the data correctly.


Tags: confluence-administration
How to make the Excel macro automatically resize to fit in the containing section?
Asked by Daniel PHAN:

*This question is in reference to Atlassian Documentation: [View File Macro](https://confluence.atlassian.com/pages/viewpage.action?pageId=590259382)*

Is there a way to make the Excel macro automatically resize to fit in the containing section?

Typically, when creating a 2-columns section, the Excel macro from the left section overlaps over the right section.

image2015-11-19 10:31:27.png  
[](https://community.atlassian.com/t5/Confluence-questions/How-to-make-the-Excel-macro-automatically-resize-to-fit-in-the/qaq-p/118085?attachment-id=895){#link_1187ae639cb1fb}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/19668/1/image2015-11-19%2010%3A31%3A27.png){#display_1187ae639cb1fb_0}


Answers:
author: Milo Test
body: The Office Excel macro is being depreciated. Have you tried the standard attachment preview to see how it works?


Tags: macro
How to autogenerate the link to an anchor
Asked by Ranjith Ramachandra:

The article <https://confluence.atlassian.com/doc/anchors-139442.html> says that I need to create an anchor and then do some crazy text maipulation to actually have a link.
> Notes about the full URL:
>
> * The page name is repeated in the URL, after the # sign. The second occurrence of the page name is concatenated into a single word, with all spaces removed.
> * There is a single dash (hyphen) between the concatenated page name and the anchor name.
> * The anchor name in the full URL is concatenated into a single word, with all spaces removed.
> * The anchor name is case sensitive.

Is there no easy way? Such as right clicking somewhere and get the link to that.

I am currently looking into the element and finding the ID and using that to make the URL. But this feels like a stupid thing to do.


Answers:
author: Dave O'Brien
body: Even better would be improving the create-link dialog to let you pick a page, then choose to show either:

* all the headings on that page to link to, or
* all the anchors on that page to link to

...then the system would build the URL internally so we don't have to mess with it. :smile:


Tags: cloud

confluence-cloud