youngmon/atlassian-qna huggingface dataset:
How to use macros in variables in templates?
Asked by Sabrina Leitner (IN):

Hey there,

I created a template for our clients and projects.

The project leads will fill in all the information, e.g. who works on this project, timings etc.  
Therefore I created some variables and placeholdertexts.

The problem is that I can only choose between "text", "multiple text" and "list". There is no way to choose user mention or the like. When choosing "text" I can just fill in actual text. No tagging via @ etc.

**How can I use macros like user mention, date (//) etc. in variables?**

Furthermore the placeholdertexts only show, when opening the template page. When USING it, the placeholdertexts don't show. That doesn't make sense to me. **Any ideas how to display the placeholdertexts when creating a new page through a template?**

And one last question:   
**Can I create a template for a page including a sub-page?**

E.g.:

Client

\> Project A

\> Project B

Thank you so much!  
Sabrina


Answers:
author: Shannon S
body: Hi Sabrina,

In addition to the advice already given to you, I wanted to share with you a feature request that is related to your requirement.

* [CONFCLOUD-30567](https://jira.atlassian.com/browse/CONFCLOUD-30567) *Allow for access to common variables in Blueprints templates*

You can vote on it to show your interest, which will automatically add you to the notification list when there are any updates.

Take care,

Shannon


author: Florian
body: Nope. That's not so easy. You can probably create a blueprint. A blueprint is a more sophisticated kind of template. But as far as I know it requires programming skills and need to be "installed" over the file system.   
Maybe there is a plug-in for that. Look for "space tree creator" or for "blueprint creator". We use the first one. It allows placeholders that need to be filled during space creation. For us it's good enough.


author: Stephan Sutter
body: Hi [@Sabrina Leitner (IN)](/t5/user/viewprofilepage/user-id/3910889)

Maybe our Page Tree Creator App for Confluence Cloud could solve your requirement. It let's you create multi-page templates.

You can find the [Page Tree Creator](https://marketplace.atlassian.com/apps/1214062/page-tree-creator-blueprint-template?hosting=cloud&tab=overview) on the Marketplace.

Regards,  
Stephan (PM at EPS Software Engineering AG, the vendor of the Page Tree Creator)


Tags: cloud

template
Multiple Spaces but want one consolidated Glossary, HELP!
Asked by Tash Solangi:

I have centralized Confluence Space for our organization and multiple Spaces for each of the projects we are running. We want one single Glossary that reaches across each project. Is there a way that the Glossary on the Space is using the same definition database?


Answers:
author: Dominic Lagger
body: Hi [@Tash Solangi](/t5/user/viewprofilepage/user-id/4056389)

So all spaces are on the same confluence instance?

Do you want to create an automated glossary or an manual? If manual, you could easily create a page with all words and link them to the other spaces / pages.

Regards, Dominic


Tags: cloud

confluence-cloud
create a jira macro with variable JIRA id
Asked by Priya N:

I am using JIRA server 615 version . Dont have access to create user macros.

How can i use a a template variable to run the jira query and pull data on confluence .

Please let me know . I ve not be able to find anything most of the topics talk about user macros but i dont hhave access to create nor can i add any plugin


Answers:
author: Florian
body: There is a plug-in called "space tree creator". This plug-in has a wrapper macro that can be placed around the Jira macro. In this wrapper you can use placeholders. Sounds strange but it works well. The built in Jira macro needs to verify the query before you can save it. With a placeholder it cannot verify the query and therefore you cannot save it. The wrapper does not care about the syntax.

comments: author: Priya N
body: Unfortunately I cannot add plugins as my company does not allow me.


Tags: confluence-server

server
Page links take users to an alternate space
Asked by Tom Sharples:

Afternoon,

We use Confluence Cloud to record Customer details on individual spaces. The spaces have standardised Page names in the same order and the team dip in and out of these spaces multiple times per day.

The team have started to report that when clicking on a Page link on one space it takes the user to the same named Page on an alternate Space, a space that the team member viewed earlier in the day.

An example is https://\*\*\*\*\*\*\*/wiki/spaces/NED/pages/140247043/Logons takes you to https://\*\*\*\*\*\*\*/wiki/spaces/AWS/pages/659226752/Logons.

Clearing the browser cache and or logging out and back in seems to resolve it temporarily but its now happening multiple times per week and seems to be a bit of a bug.


Answers:
author: Alex Koxaras _Relational_
body: Hi [@Tom Sharples](/t5/user/viewprofilepage/user-id/2079862)

My best guess would be to contact [atlassian's support](https://support.atlassian.com), since you are on a paid plan. They will be able to provide you with a solution to your problem.


Tags: cloud
Dockerized confluence with JIRA users
Asked by zuyevpro:

Hello!  
We have a dockerized JIRA container (nginx with reverse proxy to docker container)  
We are trying to publish Confluence (the same config with nginx and it's temporary without SSL certificate)  
We use latest version of <https://hub.docker.com/r/atlassian/confluence-server>

I am going with standard steps of Confluence setup, set the settings for MySQL connection (not built-in DB), then I try to connect with JIRA for single point user management.

I get the error "A system error has occurred - our apologies!" then restart a Confluence container and we see the error with details:

Cause  
com.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Spring Application context has not been set  
at com.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:149)

caused by: java.lang.IllegalStateException: Spring Application context has not been set  
at com.atlassian.spring.container.SpringContainerContext.getComponent(SpringContainerContext.java:48)

I have tried to search the same issues but I have no result for it.


Answers:
author: Lars Olav Velle _Polar SSO_
body: Have you checked that the user (id) running confluence has write permission to the mounted home folder?

You can temporarily start confluence with no mounted home directory just to check.

-Lars

comments: author: zuyevpro
body: The permissions are correct for the home folder..


Tags: confluence-server

docker

server
Dynamic Dates
Asked by Richard Mills:

I've got a page that details tasks coming up, broken down by weeks, and whilst I can create a JIRA query for each week that uses STARTofWEKK(1/2w etc) to make each week dynamic, I can't seem to find a way to set the title for that week dynamically. Insert date appears to only work based upon the current date, so l don't think it can do it. Setting the title to "This week" "Next week" "2 Weeks" etc doesn't feel very user friendly.

TIA.


Answers:
author: Ste Wright
body: Hi [@Richard Mills](/t5/user/viewprofilepage/user-id/319434)

What are you trying to title with the week?

Is it the page? Or the filter?

Ste

comments: author: Richard Mills
body: We currently have a series of panels that have the title set manually, "17th - 23rd August" for example. I'd be happy to lift the JIRA outside of these panels and have a title that just said Week commencing "17th August" (for example) if it could roll forward to be 24th August next week like the results from the JIRA query will.


Tags: jira
Expand macro colapses after expanding code block inside
Asked by Natalia Perminova:

Hello, community!

I have an issue with Expand macro and Code block inside:

I have

{expand}  
content inside  
{code\|collapse=true}  
{code}  
{expand}

When I try to view content under Expand macro:

1. Expand the section  
2. Click Expand Code block  
3. Expand macro automatically collapses in a half a second  
4. Expand the section again  
5. Code block is expanded  
6. Collapse Code block  
7. Expand macro automatically collapses in a half a second again

Is it a bug? Have anybody met that issue? Is there any solution for that?

Our wiki is on Server 6.15

Thanks


Answers:
author: Bill Bailey
body: Why the nesting of expand functions? Can't you just have a standard code block inside the expand macro?

My suspicion is that you are seeing a conflict between expand events, that toggling one, causes the other to toggle. It would take some work to debug, so it might be easier to just restructure the content. For example, if you need to have the code separately expandable, then have then all at the same level:

* Expand macro
* Code macro
* Expand macro

comments: author: Natalia Perminova
body: Well, actually the content is not such simple. There are several expandable sections, each of them have several steps to take with code blocks as examples. And they are just a small part of the whole page content. If the code macro is not collapsed initially, the guide looks too long and takes extra efforts to scroll it all down. And the content inside expand macro is actual for different users, they don't need to see the whole content of whole sections.

Probably I need to think of another way to structure my content (tabs maybe). The one with expand and code block macros was the easiest.

Could you tell me what should be done to debug it? Still hope to use it in future. Or maybe as our wiki is on Server, I better contact with our support group?


author: Bill Bailey
body: I assume it is controlled via JavaScript. So maybe if you have the browser console open, you can figure out which script is operating.

The other option is to create your own code macro, basically a user macro that includes your JavaScript and wraps a standard code macro so that the two operations are separate.


author: Natalia Perminova
body: Thanks! I'll try it


Tags: confluence-server

server
Migrating JIRA/Confluence apps.
Asked by software_compliance:

Having moved JIRA and Confluence together from previous location to a new server, JIRA logs in ok but Confluence does not. Error seen in conf logs: "authenticateUser Directory 'JIRA Server' is not functional during authentication of 'dbarter'. Skipped."

some more error trace and then:

" Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to \<old server ip address\>:8080 \[/10.170.50.26\] failed: connect timed out"

Have I missed updating something in JIRA with the old server details? JIRA governs logins for Confluence. I have updated Application Links, base url and userserver in JIRA to refer to new server location.

Any help much appreciated.


Answers:
author: Nic Brough -Adaptavist-
body: The user directory settings are totally separate from the application links in each application.

In your Jira, you've done the right thing and updated the user server, but you do not mention telling Confluence that the user server (user directory) it is using has moved.

As an admin, go to admin -\> user directories, find the Jira user server entry and edit it - you should find it points to the old server, which you can overwrite with the new one.

comments: author: software_compliance
body: Thanks Nic, when I go to User Directories under User Management there are 2 entries: Delegated LDAP Authority which is not editable and JIRA internal directory which is editable but comes up with a screen for Directory Settings with the only option to "save and test" or "cancel". Have I missed something? The JIRA user server under User Management has the correct IP address in it and also "::1" and "127.0.0.1".

Dave


author: software_compliance
body: Hi Nic, We tried again with this migration and bumped up against the same issue. I have since seen a recommendation to edit a Confluence database entry for crowd directory and although I didn't check during the migration attempt it would appear that this could be the key. What do you think?


author: Nic Brough -Adaptavist-
body: You should go to the internal directory and make sure there is an account you can log into that has full system admin rights.

If you log in with that user instead of your account from LDAP, you will find it can now edit the LDAP connection - this happens because Confluence does not let you edit the settings for the directory you are logged in by.


author: software_compliance
body: Thanks again Nic. Yes we had an admin account that isn't used and after resetting the password I can edit the JIRA directory settings from within Confluence. If I just update the server address will it keep the account and password that are also on the screen? Not sure I know what the password is/should be so it would be better to leave that as it is.


author: software_compliance
body: I may have answered my own question as it appears in plain text in the cwd_directory_attribute in attribute application.password. If so then that's brilliant and mission accomplished. Gold stars from me.


Tags: jira

login

migration
how to add videos and document on the confluence page i have created?
Asked by Priyanka Kumari:

I have created Confluence page and wanted to add some documents and videos on that.

Need explanation how to do that also i wanted to add some people to that page please guide me about all the questions.


Answers:
author: Tony Morrison
body: I don't see the widget needed to do this in the "new" editor yet, but if you are using the older editor, there is a widget named "multimedia" that lets you embed any video that has been uploaded to your space.

To use this, attach the video to a page, then locate the widget and that file should be available to select.

There is also a widget called "Widget connector" that allows you to link to any video posted on various public sites via URL (youtube, etc.) This one does appear to be in the new editor.

I hope this helps!

comments: author: Tony Morrison
body: Just got an additional note from Atlassian support. I opened a ticket about the "Multimedia" widget missing from the new editor and they said it had been deprecated but there is a request in for one for the new editor. If you (or anyone) wants to get this functionality in the new viewer, please watch and vode for this!

<https://jira.atlassian.com/browse/CONFCLOUD-65835>


author: Priyanka Kumari
body: Thank you so much for your help.
CLI command to extract table in the form of csv from table filter macro?
Asked by Priya Ramakrishnan:

Hi,

So I am writing a python script which should be able to get the export table as csv option from **tablefilter macro** and do the changes on it.

So in windows dashboard we have the option as shown below (export to CSV)

![Capture2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/107160i820F9FBBF5882D0E/image-size/large?v=v2&px=999 "Capture2.PNG")

The thing is , I am not able to find any CommandLine Interface (CLI) which does this, I tried using exportData, exportPage ...nothing seems to be working for me.

Is there any CLI to do this?


Answers:
author: Katerina Kovriga {Stiltsoft}
body: Hi [@Priya Ramakrishnan](/t5/user/viewprofilepage/user-id/3975916) ,

We've got your case, but, unfortunately, there is no such feature at the moment.

Your request is now in our backlog, and we'll get in touch with you after the implementation.

comments: author: Priya Ramakrishnan
body: Thank you so much for letting me know!!


Tags: confluence-server

server
Custom Css class in confluence
Asked by gopuravi:

I want to apply custom css class to the HTML tags in confluence. I tried adding css class in HTML macro as well as in css Macro. but the style is reflecting only in the preview, when i save and view the page style is not available, any advice

**HTML Macro:**

    <head>  <style>    .myClass {      padding: 18px;      background-color: Grey;    }  </style></head><body>  <div class="myClass">    <p>Answer will be posted here.</p>  </div></body>

**Css Macro**

    .myClass{  padding:  18px;  background-color: Grey;}

Preview [![enter image description here](https://i.stack.imgur.com/QU13c.png)](https://i.stack.imgur.com/QU13c.png)

When i save and publish

[![enter image description here](https://i.stack.imgur.com/A9vfl.png)](https://i.stack.imgur.com/A9vfl.png)


Answers:
author: Bill Bailey
body: Well the Cloud version does not support custom CSS, a downside to that version. What you need to do is to use the browsers inspect function to look at three things:

1. How your macro is actually rendered
2. Are you rules being loaded at all
3. Are there any other rules overriding yours


Tags: cloud
Customize Expand macro
Asked by gopuravi:

I want to customize expand macro, which i mean

\* custom background color for Title

\*custom font for Title

\* custom background color for expanded test

\* custom font for expanded area


Answers:
author: Shannon S
body: Hello [@gopuravi](/t5/user/viewprofilepage/user-id/4055771),

Welcome to Atlassian Community.

To follow-up on what Bill mentioned, it's not possible to customize the Expand Macro further, but you can follow the feature request for this below:

* [CONFCLOUD-66437](https://jira.atlassian.com/browse/CONFCLOUD-66437) *Allow further customization of the "Code" macro in the new editor*

Editing space or site CSS, and creating custom macros are a restricted function of the Confluence Cloud platform, per our [Functional Differences](https://confluence.atlassian.com/confcloud/restricted-functions-in-confluence-cloud-734070955.html) page.

Thank you for your understanding!

Shannon


author: Bill Bailey
body: If you were on the server version, I would just say update the space/sites CSS, or even create a custom macro. Unfortunately, the cloud version is far more restrictive. So you get whatever they give you.


Tags: cloud
Oops - an error has occurred
Asked by guanyu:

### Hello,The following is my password reset error. What should I do?thank you {#toc-hId-1172978168}

### Cause {#toc-hId--634476295}

com.atlassian.crowd.exception.runtime.OperationFailedException: The following URL does not specify a valid Crowd User Management REST service: <http://jira.tianyigps.com/rest/usermanagement/1/user/password?username=ganyu>  
at com.atlassian.crowd.embedded.core.CrowdServiceImpl.updateUserCredential(CrowdServiceImpl.java:431)


Answers:
author: Basar Beykoz
body: Hi Guanyu,

Welcome to Atlassian Community, happy to have you here :)

This error can sometimes occurs because of incorrect URL, or if you have a reverse proxy or some network interference preventing the connection (firewall etc.)

You can refer to the **Resolution** section from the following article for troubleshooting steps:

* [How to troubleshoot The following URL does not specify a valid Crowd User Management REST service](https://confluence.atlassian.com/jirakb/how-to-troubleshoot-the-following-url-does-not-specify-a-valid-crowd-user-management-rest-service-780867184.html)

This article written for JIRA but the steps can also be applied to Confluence and should help you narrow down the issue.

Let us know if you have any questions!

Kind Regards,

Basar


Tags: cloud

confluence-cloud
Can't remove labels, no 'X' to click on
Asked by DMDK:

Hello! I'm evaluating Confluence for my company and I ran into an issue with labels. It seems confluence is adding labels to pages that I don't want. I want to be able to remove these labels. Googling suggests that I should be able to click an 'X' right next to the label to remove it, but there are no Xes. How do I remove labels?

Thanks

David


Answers:
author: Sachin
body: Hello [@DMDK](/t5/user/viewprofilepage/user-id/4046970) ,  

1. You need page edit permission to add/delete labels on your. To confirm this you can you goto space tools --\> Permissions --\> Verify if you have *Page:Add* permission.

2. Once you verify that you can you scroll down to the bottom of your page and confirm that you have edit option for your labels  

![Screenshot_13.png](https://community.atlassian.com/t5/image/serverpage/image-id/107101i0D63D6EDC4E70AB4/image-size/large?v=v2&px=999 "Screenshot_13.png")

![Screenshot_14.png](https://community.atlassian.com/t5/image/serverpage/image-id/107102i32E48B54ACD237D2/image-dimensions/317x128?v=v2 "Screenshot_14.png")

comments: author: DMDK
body: Ah, so the problem is with with the instructions I followed. I'm looking for an edit button, not an X. That is there and I am able to edit labels. thank you.
Access to Content through API
Asked by Julia:

Hello,

I am currently trying to GET content through the Confluence Server API, but can't seem to get any information from the API requests I am making. The account I am using has read and write access and the content exists in Confluence, but I am getting a 404 not found error saying that there isn't content with the specified id.

Any advice?


Answers:
author: Alex K
body: Hi [@Julia](/t5/user/viewprofilepage/user-id/3989167) ,

It sounds like an authentication error, are you sending any auth credentials with your request? If not, the simplest way to test this is by sending the username/password as basic auth. The [REST API examples](https://developer.atlassian.com/server/confluence/confluence-rest-api-examples/) use basic auth if you would like to see how to do this.


Tags: confluence-server

server
Remove Labels that are numeric or integers with REST API
Asked by Sam Chan:

I was trying to use the rest api delete label with query parameter to remove a label that is an integer but I keep getting 500 Internal Server Error. How do I remove a label that is a numeric value?

![postman.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/107095i14042E0B38358523/image-size/large?v=v2&px=999 "postman.JPG")


Answers:
author: Hana Ku?erov?
body: Hi [@Sam Chan](/t5/user/viewprofilepage/user-id/1125744) ,

please try this URL (+ DELETE):

```
https://yourinstance_confluence/rest/api/content/26083521/label/56789
```

I've just tested it and it works for me.

comments: author: Sam Chan
body: I just tried that and got this response along with 500 internal server error again

{ "statusCode": 500, "message": "com.atlassian.confluence.core.service.NotValidException: \[ValidationError \[messageKey=label.not.found, args=\[\]\]\]"}


author: Sam Chan
body: The weird thing is that the URL works when the label is not a numeric number. I made a call with something like this below and it worked...it removed the confluence label

```
DELETE REQUEST https://your_confluence/rest/api/content/26083521/label/confluence??
```

My confluence server is running version 5.9.11


author: Hana Ku?erov?
body: According to the [documentation](https://docs.atlassian.com/atlassian-confluence/REST/5.9.1/#d3e553), there could be problems with "/", but numbers are not mentioned.

Version 5.9.11 is quite old, it seems to me like a bug :-(...


Tags: label

number

remove

rest-api

server
Is it possible to create a confluence page from Slack?
Asked by Jeff Buford:

I was trying to reduce hops back and forth between Slack and Confluence. Is it possible to create a Confluence blog post from slack through either an [@mention](/t5/user/viewprofilepage/user-id/732788) or a /confluence tag or anything like that? Thanks in advance for your help!


Answers:
author: Shannon S
body: Hi Jeff,

As [@Joshua Sneed Contegix](/t5/user/viewprofilepage/user-id/1551670) mentioned, it's not yet possible, but you can follow these related feature requests should that change in the future:

* [API-163](https://jira.atlassian.com/browse/API-163) *Create page/blog from Slack*
* [API-165](https://jira.atlassian.com/browse/API-165) *Add the ability to edit pages through Slack*

Thank you, and take care!

Shannon


author: Joshua Sneed Contegix
body: Hi Jeff,

It doesn't look like [Atlassian's Confluence Cloud for Slack (Official)](https://marketplace.atlassian.com/apps/1219518/confluence-cloud-for-slack-official?hosting=cloud&tab=overview) can create pages, but one of the other [plugins in the Marketplace](https://marketplace.atlassian.com/search?hosting=cloud&product=confluence&query=slack) might be able to. Cheers!


Tags: cloud

slack