youngmon/atlassian-qna huggingface dataset:
Disable Confluence authentication through JIRA after XML restore
Asked by Corentin M?hat:

Hello,

after installing confluence 5.6.5 in a new server and restoring a backup from a production server we cannot log in Confluence anymore since the exported backup included an app link to a JIRA installation as "User directory".

* source Confluence 5.6.5 uses JIRA prod to authenticate users.
* target Confluence 5.6.5 on another server does not have access to JIRA anymore.

1/ How can we modify the target Confluence install + import in order to gain access again ?

2/ It would be interesting to have a "post-import" screen allowing to recreate a new admin user.

Best regards,


Answers:
author: Brian Jones
body: One think to check on your JIRA User Server. Check that the confluence application isn't locked down to a specific IP, that could cause this issue.

If it's not then most likely you need to create a new "application" on your JIRA User Server for the new Confluence Server you restored to. I don't use the JIRA User Server but i have seen Crowd behave similarly.

comments: author: Corentin M?hat
body: Hello,

your solution works if the "migrated" confluence can reach the original JIRA used as User Server. This wasn't our case (initially), and we needed to perform a few change in /etc/hosts to allow the connection.


Tags: confluence-administration
Custom 'Create from template' Macro variables like @currentDate
Asked by Bristow:

I'm using the 'Create from template' Macro to create, as you would expect a new page based off a template!

I would like to used a custom variable like '@currentDate' but rather than the whole date I would like to have the current month like '@currentMonth'.

Is there a way I can define a customer variable or format the date?

I've had a good google, and couldn't find an answer for what I am looking for as I suspect the latter I can't do per the link below so that leaves me with a custom variable?

<https://answers.atlassian.com/questions/37526338/in-jira-sofware-is-there-a-way-to-format-a-custom-date-time-variable-as-month-and-year-only>

Any ideas would be greatly appreciated!


Answers:
author: EPS Software Engineering AG
body: Hi,

Our plugin the Page Tree Creator provides the variables you are looking for and is very easy to use. Also for your end users it is simple clicking a button, filling out the form and the page / page tree gets created.

**[Link to the documentation of the variables.](https://focuspro.eps.ch/display/PPTCDOC/+Default+Tags+and+their+usage+Version+3.0.0)**

**[Marketplace link: Page Tree Creator](https://marketplace.atlassian.com/plugins/eps.focuspro.PageTreeCreator/server/overview)**

Regards,  
Stephan


Tags: confluence-administration
Can comments be made in the Editor?
Asked by Michael Harris:

Is it possible to insert editing comments in the Editor that are hidden in Viewing Mode, similar to html/css-comments.

For example

\<!-- Please keep this anchor here --\>


Answers:
author: Davin Studer
body: Since you have the server version you could create a user macro like below and then you could just use the editor like normal to put in the comments. One you create the user macro you will be able to put in a comment macro that will only show in edit mode.

**Macro Name:**   
comment

**Macro Title:**   
Comment

**Macro Body Processing:**   
Rendered

**Template:**

```
## @noparams
```

comments: author: Michael Harris
body: Excellent! Thank you!


author: Irina_Bel_Stiltsoft_
body: Hi [@Michael Harris](/t5/user/viewprofilepage/user-id/622260) ,

It seems like [Talk - Advanced Inline Comments](https://marketplace.atlassian.com/apps/978531/talk-advanced-inline-comments?hosting=datacenter&tab=overview) has a feature to address your case. The app has the capability to set visibility restrictions for the comments on a space level or/and for the specific comment thread. Say, you want to restrict viewing just for yourself and make personal notes on a page. You can also do the same for specific users and groups to discuss something privately with them.

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


author: Shigeo Nakamura
body: aaa

aaa \\\\ aaa \\\\\\ bbb


author: Stephen Deutsch
body: Some options are explained in the answers to this question:

[How do I add a text "hint" in Confluence Edit](https://answers.atlassian.com/questions/36110947)

comments: author: Michael Harris
body: Thanks for the tip. Unfortunately, as far as I can determine, none of those offer an easy on-the-fly solution for editors to make editing comments hidden from normal viewing.


author: Steven F Behnke
body: The placeholder text one works very well and you can enter it pretty easily from the Source Editor. Do you have Confluence Server or Cloud?


author: Michael Harris
body: Server
JIRA Issue/filter makro - bug
Asked by Marek Vejrosta:

Hello,

I use JIRA Issue/filter makro in Confluence page (Confluence 5.8.13.) It works perfectly, except for one case.

If I want to display the "Time Spent", then displayed error(screen). Can you help me?

screen1.png

schreen2.pngs  
[](https://community.atlassian.com/t5/Confluence-questions/JIRA-Issue-filter-makro-bug/qaq-p/96204?attachment-id=6888){#link_11873ad2ffa5bd}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/16160/1/screen1.png){#display_11873ad2ffa5bd_0}  
[](https://community.atlassian.com/t5/Confluence-questions/JIRA-Issue-filter-makro-bug/qaq-p/96204?attachment-id=6889){#link_11873ad2ffa5bd_0}  
[](/tnckb94959/attachments/tnckb94959/confluence-questions/16160/2/schreen2.png){#display_11873ad2ffa5bd_2}


Answers:
author: Paz
body: Tempo uses a different field, and disables the default "Time spent" field in JIRA, which is what the Confluence macro is looking for and why you're getting that error.

Try typing "Tempo" into that field to see if you can find it.

Or, have an administrator look at the field configuration in JIRA to find out that the field name is.


author: Marek Vejrosta
body: I use Tempo Timesheets. Logue job by default.  
Time Spent field in JIRA filters to display correctly. The error is up to the confluence.


author: Paz
body: Are you using JIRA for tracking time? (Lots of users use Tempo Timesheets)

Are you able to show *only* the Time Spent field? What happens when you try that?


Tags: confluence-administration
MSSQL 2014
Asked by Marcel Kats:

*This question is in reference to Atlassian Documentation: [Confluence 5.9.6 Release Notes](https://confluence.atlassian.com/pages/viewpage.action?pageId=814192562)*

Hi,

Is MSSQL2014 supported with this version?

Regards,

<br />

Marcel


Answers:
author: NotTheRealStephenSifersNOPENOPENOPENOPE
body: The answer is yes, SQL 2014 will work with Confluence 5.9.x

<https://confluence.atlassian.com/doc/supported-platforms-207488198.html>

|----------------------|----------------------------------------------------------------------------------------------|
| Microsoft SQL Server | ![tick](/html/@FB21E167CF5FC78FA9216CD8178453B3/images/emoticons/tick.png "tick") 2012, 2014 |


Tags: confluence-administration

database

documentation
I am trying to download the pdf ("http://confluence.rbm.ericsson.se/spaces/flyingpdf/pdfpageexport.action?pageId=2133472") using curl or wget by giving username and password but I am not able to download the pdf. Please suggest how to resolve this issue
Asked by ganesh ch:


Answers:
author: ganesh ch
body: Thanks for the quick response.

I tried by providing the username and password in curl and it is giving the below response

\< X-XSS-Protection: 1; mode=block  
\< X-Content-Type-Options: nosniff  
\< X-Frame-Options: SAMEORIGIN  
\< Content-Security-Policy: frame-ancestors 'self'  
\< Location: <http://confluence.rbm.ericsson.se/download/temp/pdfexport-20160307-0>  
70316-1305-583/EAD-TeamReporting-070316-1305-584.pdf?contentType=application/pdf

I tried above the location URL and it is throwing error...

If you have any example code, could you please post me..

comments: author: Nic Brough -Adaptavist-
body: That suggests that you are not giving it a username and password. How are you specifying this in curl?


author: ganesh ch
body: curl -v -u xxxxx:xxxxx -X GET -H "X-Atlassian-Token: no-check" <http://confluence.rbm.ericsson.se/spaces/flyingpdf/pdfpageexport.action?pageId=2133472>

It is providing the below response

\< X-XSS-Protection: 1; mode=block  
\< X-Content-Type-Options: nosniff  
\< X-Frame-Options: SAMEORIGIN  
\< Content-Security-Policy: frame-ancestors 'self'  
\< Location: <http://confluence.rbm.ericsson.se/download/temp/pdfexport-20160308-080316-0546-592/EAD-TeamReporting-080316-0546-593.pdf?contentType=application/pdf>

Based on the location URL, I have given the curl command as below

curl -v -u xxxx:xxxx -X GET -H "X-Atlassian-Token: no-check" <http://confluence.rbm.ericsson.se/download/temp/pdfexport-20160308-080316-0546-592/EAD-TeamReporting-080316-0546-593.pdf?contentType=application/pdf>

encoded response is printing on console and not able to download the PDF


author: Nic Brough -Adaptavist-
body: Really sorry, misread that completely.  

But I think I can see a problem - I think you're trying to fetch an object that the system is generating on the fly. If you use a browser, the system is going "ah, ok, I need to build that from the data, give me a minute.... ok, here you are". But curl and wget simply grab the object, which isn't there when the request lands.


author: Nic Brough -Adaptavist-
body: That system is protected by a user name and password, you'll either need to provide them (encoded properly in the curl/wget call) or perform a two step process where you log in once, get a session token, and then provide that in the second "get pdf" call
Brocken profile here in answers
Asked by Jose M.:

If I click on my profile here in answers and then i question, I got the result: **No question asked** . But this is not true, see <https://answers.atlassian.com/questions/37058137/how-to-rename-the-automated-backup-file-in-jira>.

By the Atlassian Support it was confirmed last wee, that there is an issue with my profile and it should become fixed in the weekly maintenance window. But it doesn't look to be fixed, now.

Is anyone having this issue also?


Answers:
author: Joe Clark
body: We had a disk space issue last week which caused the Confluence index to stop processing. We fixed that on Friday but now it seems that a consequence of the problem is that the index has become inconsistent - we'll need to rebuild the index to fix it, which I am keeping track of as <https://jira.atlassian.com/browse/CQ-3577>.

The old content still exists in the Database and no data has been lost, we just need to re-index it.

comments: author: Jose M.
body: If I log in, it is not working to see all my questions \& answers. But if I am unlogged, it works.


author: Joe Clark
body: @Jose M. - it should be fixed now! Can you please check? :smile:


author: Jose M.
body: Yes, it does. Thank you.


author: Nic Brough -Adaptavist-
body: Yes, although they now seem to have fixed the "recent questions" being out of date for the day until an overnight indexing run was run, the profiles are still broken.


author: Jose M.
body: At least this question is shown now in my profile, but the history seems to be lost.
if the included html required user login, how to set user and password in this macro?
Asked by scm di pins:

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

if the included html required user login, how to set user and password in this macro?

Thanks.


Answers:
author: scm di pins
body: for example, if you include a github page which requires you login first, otherwise you cannot see any content.


author: Steven F Behnke
body: Can you please give an example of what you mean?


Tags: html-include
Disable SYRACOM Secure Login for internal networks
Asked by A:

About Confuence 5.9:

How can I disable the SYRACOM 2-factor auth for specific networks / subnets?

Is there a whitelist we can update to add our internal networks to enforce 2-factor auth only if access occurs from external networks?

Thanks  
-AM-  


Answers:
author: Norman M?hler
body: Hey, i tried that in serveral ways, but it did not work. I tried the following possibilities:

- 172.16.0.0 /12

- 172.18.\*.\*,172.19.\*.\*,172.20.\*.\*,172.21.\*.\*

- 172.16-32.\*.\*

What did I miss?

comments: author: Niek Neuij
body: Here's an example of what I did:

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

With our public IP addresses blurred out of course.


author: Norman M?hler
body: Thank you Niek,

I have the same configuration (without the public addresses, of course) but still am asked for a PIN when coming from 172.18.21.144 but not from 172.16.22.167.

Do you have an explanation?


author: Niek Neuij
body: The format is

```
172.16.0.0/12
```

Not

```
172.16.0.0 /12
```


author: Norman M?hler
body: Thank you again for the fast reply, but that is exactly how i configured it, I posted it just wrong in my first answer, sorry

![Bildschirmfoto vom 2019-11-11 12-45-40.png](https://community.atlassian.com/t5/image/serverpage/image-id/72389i9989A9A835CE4633/image-size/large?v=v2&px=999 "Bildschirmfoto vom 2019-11-11 12-45-40.png")


author: Norman M?hler
body: Any additional suggestions?


author: Niek Neuij
body: Look at the "User sessions" page in Jira admin panel. Which IP addresses are being used by users?

The first IP address mentioned is the one Syracom uses to identify which IP address belongs to which user.

Here's what our looks like (with the IP addresses of our SSL proxies, external IP addresses, and users blurred out):

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

Because our whitelist filter is

```
172.16.0.0/12,194.?.?.?/22,185.?.?.?/22
```

only the user with the IP address "3.?.?.?" will get to see the Syracom 2FA.


author: Norman M?hler
body: Thank you, this information was very helpful, we could find the source of our problems lying in our network configuration so I ended up with an other IP on the server than my system has in the network.


author: Niek Neuij
body: Yes, you can whitelist subnet(s) in the add-on's options panel, devices in those subnets bypass the add-on.


Tags: confluence-administration
Confluence won't start after move
Asked by Doug Wolfgram:

I moved JIRA and Confluence to a new server. I moved the databases (mysql), the app directories and after installing, also moved the installation directories. JIRA starts and runs fine. Confluence starts with no errors. I can see the process in ps -ax, but when I go to the page, I get a white screen.   

The only thing that comes to mind is that this new machine only has 1 core and 4 GB of RAM. Is that adequate to run both JIRA and Confluence? Are there any other logs I can check to see why I am getting a white screen?

After I try to access the page, I get several instances of this in catalina.out  

05-Mar-2016 19:29:13.668 WARNING \[localhost-startStop-1\] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application \[ROOT\] appears to have started a thread named \[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2\] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread: java.lang.Object.wait(Native Method) com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:534)

Does this mean I am out of memory\>?


Answers:
author: Steven F Behnke
body: System requirements are highly dependant on your configuration and usage. We cannot ever truly say whether 4 GB of memory and 1 CPU core are sufficient because surely you could make it work to some extent. 1 CPU is also extremely unclear. Is this a Pentium 2 single core? Probably not, you likely have a VM. How is this VM configured and hosted? You understand what I mean, there's no details in your post to aid with a system recommendation.

Furthermore since you moved an installation, that means you took the JVM settings from your previous install. So the question I need to ask *you* is, how much memory have been set to these applications within the setenv file?

Finally, you may find more relevant information in the application logs instead of the catalina logs. I wouldn't worry about the error you posted above.

comments: author: Doug Wolfgram
body: Yes, it is a single core, 4GB installation under VMWARE. Not sure I ever set setenv. Is that required for confluence installation? I can't remember. Where are the application logs?


author: Steven F Behnke
body: If the environment settings are default, that means they are about 1GB per application. They have default values of course.

The application logs are placed in the example directory --   
\<HOME\> represents the home or application directory. Not the install directory.

```
&lt;HOME&gt;/logs/atlassian-confluence.log?eg./var/atlassian/application-data/confluence/logs/atlassian-confluence.log
```

It would be great if you could follow the file, THEN start up Confluence. Watch the log closely and consider taking a copy here to Answers or to [support](https://support.atlassian.com).


author: Doug Wolfgram
body: Got it. Silly DB permissions error. All is working now. Thanks!


author: Steven F Behnke
body: Excellent! The Application Log is your best friend IMO! :smile:

Have a **great** day!


Tags: confluence-administration
Disabling/bypass Confluence Mobile plugin (getting re-enabled)
Asked by Normann P_ Nielsen _Netic_:

Confluence Mobile plugin seems to have the irritating behavior to be re-anabled on restart/server reboot.. ![sad](/html/@C495B4504065515364EB1894F812B34C/images/emoticons/sad.png "sad")

How is it possible to:

1. Keep it disabled
2. Disable at Confluence start
3. Bypass via and Apache URL rewrite
4. Any other ideas....

BR,

Normann


Answers:
author: Steven F Behnke
body: This is a current open and known bug. Please vote and watch this issue to track the progress.

<https://jira.atlassian.com/browse/CONF-40175>


Tags: confluence-administration
can i define more than one global template? (And if yes, how?)
Asked by Kai Schirmer:

*This question is in reference to Atlassian Documentation: [Administering Site Templates](https://confluence.atlassian.com/pages/viewpage.action?pageId=138439)*

Ask your question here...


Answers:
author: Nic Brough -Adaptavist-
body: You can create as many global templates as you need - just go to Admin -\> Global Templates and Blueprints and click Add New Global Template

comments: author: Nicolas Casel
body: Thanks @Nic Brough \[Adaptavist\] ,

And how to create a new "Space blueprint"? Because the 'Add global page template' button only offers to create a new "global page template', doesn't it?


author: Nicolas Casel
body: I think I've just found the solution:

<https://developer.atlassian.com/confdev/confluence-plugin-guide/confluence-blueprints/space-blueprints/write-a-simple-confluence-space-blueprint>


Tags: confluence-administration

documentation

template
Creating pages tree from template
Asked by Bartosz Z:

Hi!  
How can I create whole tree of pages at once?

I want to create something like this:

- Office XYZ:  
- Network  
- Page with table of networking hardware etc  
- Workstations  
- Page with list of notebooks and PC's

- Software  
- Page with server software  
- Page with workstations software

- Office QWERTY:  
- Network  
- Page with table of networking hardware etc  
- Workstations  
- Page with list of notebooks and PC's

- Software  
- Page with server software  
- Page with workstations software


Answers:
author: Brian Jones
body: There is a great plugin called Copy Page Tree that we use for this.

<https://marketplace.atlassian.com/plugins/com.nurago.confluence.plugins.treecopy/cloud/overview>

I also lets you prefix or suffix the pages being created so you dont have duplicate names in your space (which i dont think is allowed)

Hope this help!

-Brian

comments: author: Bartosz Z
body: That is one of options :smile:

I'm waiting for answers from people, who use Confluence API with own scripts which create page tree.


author: Chris Christou
body: I've installed **Space Tree Creator (copy space)** and still can't see it on the confluence UI.


author: EPS Software Engineering AG
body: Hi,

With our Add-on Page Tree Creator you can setup template trees and then create them by clicking a button, fiiling out a form and start working on your new created page tree.

Try our [**live examples**](https://focuspro.eps.ch/display/PEPSMarktExample/Marketplace+Examples) (no registration needed!)

[**Marketplace link: Page Tree Creator**](https://marketplace.atlassian.com/plugins/eps.focuspro.PageTreeCreator/server/overview)

Regards,  
Stephan
Can "Page Properties Report" show restricted "Page Properties"?
Asked by James Black:

We are using "Page Properties Report" to show summary information to users. All pages with the "Page Properties" macro have their access restricted. This is because we want users to see the summary information, but not the fine details.

When a user with access views the the "Page Properties Report", all information is shown.

When a user without access views the "Page Properties Report", no content is shown.

Here is our page structure:

* Space Home (Unrestricted) (Contains the "Page Properties Report")
  * Projects Summary (Restricted) (Used to nest project pages)
    * Project 1 (Inherits restrictions) (Contains "Page Properties")
    * Project 2 (Inherits restrictions) (Contains "Page Properties")
    * Project 3 (Inherits restrictions) (Contains "Page Properties")

Is there a way to allow the restricted "Page Properties" information to show in the unrestricted "Page Properties Report"?


Answers:
author: Davin Studer
body: If a page has restriction applied to it, then you will only see it in the page properties report if you have access to the page. There is no way to get around that short of writing your own version of the page properties report macro and changing how it works.

comments: author: James Black
body: Thanks Davin,

Would you know a good place to start with writing a new macro?

Is it possible to modify the existing macro? Or get the existing macro's code as a template?


author: Davin Studer
body: I think you can get the Confluence source at my.atlassian.com under your Confluence license. Not sure if this macro is included in that source or not.


author: Robert Reiner _smartics_
body: I think this could help: <https://bitbucket.org/atlassian/confluence-masterdetail-plugin>