youngmon/atlassian-qna huggingface dataset:
How do I prevent html macro javascript running when switching into edit mode?
Asked by Helen Setchell:

I've written some javascript that does a bunch of asynchronous API calls to display third-party content on the current page.

(I also do this as a way of displaying confluence content instead of using the content macros, because too many content macros on one pages slows the page load enough for users to start complaining; asynchronous loads provide a better user experience.)

This works fine, except that if I click the 'Edit' button, I have to wait while all the javascript re-runs (i.e. creates the view mode again\*) before the page even tries to switch to edit mode.

\*I presume this always happens when switching any page into edit mode, but we don't normally notice it?

Is there any way to stop the javascript running on this pre-edit page view load? Something wrapped around my code that says "if edit button has been clicked, abort"?

(I don't have access to create plug-ins etc btw - only front-end javascript)

PS - we have collaborative editing enabled


Answers:
author: Gonchik Tsymzhitov
body: Looks from there event checker will help

<https://developer.atlassian.com/cloud/confluence/jsapi/confluence/>

e.g. it helps to me

comments: author: Helen Setchell
body: Thanks for this link (I'm using Confluence server btw).

I wasn't sure how I would have implemented this for my scenario:

I have a page in Confluence containing an HTML macro. In that page I can either write some javascript or link to an javascript file attached to the page. My js is doing ajax calls.

* When I view the page I see the results of my script.
* If I click Edit, the script runs again before showing me the edit screen.

Update: as far as I can see this is no longer an issue.

Which might be since the upgrade to Confluence 7.3.1 (or an earlier version and I didn't realise this had resolved itsself as I have added buttons to 'run javascript' to most of my stuff now).


Tags: confluence-server

edit

html-macro

javascript

server
Tell me when I'm creating a redundant page
Asked by VDC NYC:

When you start typing a question on StackOverflow or this community site, a drop down appears showing existing posts that may answer your question? This avoids having multiple versions of the same question. I want Confluence to do the same for new pages.

For example, if someone starts a new page with the title "How to concatenate in excel", I want a drop down showing our current excel tips\&tricks page and any other page referencing excel.

Anyone know how to do that?


Answers:
author: Shannon S
body: Hi Pierce,

Thank you for the suggestion!

We had a request for this in the past, but at this time we don't have plans to implement this feature:

* [CONFCLOUD-22272](https://jira.atlassian.com/browse/CONFCLOUD-22272)

> Thank you for raising this issue. While we can see how this feature would be useful, we have no plans to implement it in the foreseeable future. In order to set expectations, we're closing this request now. Thanks again for your idea.

Let me know if you have any questions about this!

Regards,

Shannon  


Tags: cloud

confluence-cloud
How to change welcome video?
Asked by Teodor Tostovoy:

Hello everyone!  
I need to show my own video to new users. How can I change video in welcome.action?


Answers:
author: Igor M.
body: Hello,

Unfortunately, there is no native way to change the welcome message youtube video.

You can still customise what users see when they log-in for the first time, by disabling that welcome page altogether following [How to skip the onboarding page (welcome.action) for new users in Confluence](https://confluence.atlassian.com/confkb/how-to-skip-the-onboarding-page-welcome-action-for-new-users-in-confluence-777016501.html) and then customising their first "Welcome Message" with your own video by following [Editing the Site Welcome Message](https://confluence.atlassian.com/doc/editing-the-site-welcome-message-138561.html), this way new users will just log-in into Confluence and get your custom welcome message as the first page on the right side.

Regards,

Igor

comments: author: Teodor Tostovoy
body: Igor, thanks :) This info is helpful.


author: Grigory Salnikov
body: Hello!

I don't think it's possible, there's no such basic functionality.


Tags: confluence-server

server

video
Customise Jira issue creation from Confluence
Asked by Jason Linthwaite:

I often create Jira issues from tables in Confluence.

Is it possible to customize the macro/dialogue that appears to handle "Create issue" when switching to "Create multiple issues from table". Currently I can only choose Summary and Description. However, I would also like to include e.g. priority.


Answers:
author: Suren Raj
body: Hi, Jason.  

Regarding the possibility of adding more fields when creating a Jira Issue, we currently don't have this function built-in Confluence. There is a feature request for it,

* Ability to map more fields from a Confluence table into a JIRA issue when highlighting and creating issues - <https://jira.atlassian.com/browse/CONFCLOUD-31867>

We don't have a timeline yet to when this feature will be implemented or delivered. As all related updates will be made available there, we would advise you to **watch and vote** for these improvements because, based on [New Features Policy](https://confluence.atlassian.com/cloud/new-features-744721668.html), voting increases the chance of implementing this feature.

Cheers  
Suren Raj


Tags: cloud

confluence-cloud
Oops - an error has occurred after upgrade from 5.9.14 to 6.10.0
Asked by Gerald MURIEL:

After the upgrade to 6.10.0, We noticed several public and archived spaces/pages that shows this error.


Answers:
author: Moses Thomas
body: [@Gerald MURIEL](/t5/user/viewprofilepage/user-id/951032)Could you please provide info in the `<confluence-home>/logs/atlassian-confluence.log ?`

`Best!`

comments: author: Gerald MURIEL
body: Thanks for the prompt reply but the spaces that have this error was restored by replacing the default theme with adaptavist theme.


author: Moses Thomas
body: OK great!


Tags: confluence-server

server
Confluence : date picker format
Asked by richardofrugeley:

re: <https://atlassian.design/server/patterns/date-picker/>

We have recently upgraded from Server 6.6 to 6.10. The date picker used to expect the format dd/mm/yyyy but now is mm/dd/yyyy.

Is it possible to change it back, either per user or for all users?


Answers:
author: Diego
body: Hello Richard!  
The Date Picker format is based on the locale selected by each user. For example, if your user has select US english as language, the date format will be set accordingly.  
In your user settings, you can change this:
> - Login to your user  
> - Click the user picture in the top right corner  
> - Click Profile  
> - Click Settings  
> - Select the desired language under Language section under Settings  
> - The date picker should change to fit the new language

Let us know if this helps you!

comments: author: richardofrugeley
body: The Settings picks up the browser's language setting, which is now English (UK). The date picker is dd/mm/yyyy.


author: Chris O'Gorman
body: Hi, I cannot adjust the date format either. The format prints as 12 Aug 2019. Not very clean when exporting to Word. Any recent developments on this issue? I don't think changing the language will work for us. Thank you

comments: author: Shannon S
body: Hi Chris,

I will share here as well what I wrote to you [on your own thread](https://community.atlassian.com/t5/Confluence-questions/Confluence-Date-Picker-Format/qaq-p/1158906#U1160558) about the subject, in case other users come across this thread in the future.

The date picker is based on language still at this time, but below are some articles on how to change your language in Confluence Cloud.

* [Set the Default Language](https://confluence.atlassian.com/cloud/set-the-default-language-873871361.html)
* [Edit Your User Settings](https://confluence.atlassian.com/confcloud/edit-your-user-settings-724765386.html)

We have a feature request below to be able to configure that outside of the language settings:

* [CONFCLOUD-65042](https://jira.atlassian.com/browse/CONFCLOUD-65042) *Make the date format for the date picker "//" shortcut configurable*(Cloud)
* [CONFSERVER-55188](https://jira.atlassian.com/browse/CONFSERVER-55188) (Same feature above but for Server).

Thank you for your understanding!

Regards,

Shannon


Tags: confluence-server

server
JPEG attachment compression
Asked by Chema Guerra:

Hello,

we've been using confluence for our product documentation for many years already, server originally and now we moved to the cloud version.

The JPEG attachments seem to be highly recompressed once uploaded, to the point of being destructive to the images, and that's not really acceptable for a product which is all about producing high quality images.

I couldn't find any way to control the amount of JPEG compression, and I don't really want to switch everything to PNG as it's already slow enough to load a page full of JPEGs.

Is there something to do about it?

Thanks


Answers:
author: Colin Elliot
body: BUMP.

Same issue here. the image I upload is a high-quality PNG. It gets smashed down to an unreadable mess when I add it to my confluence page. I have tried @2x as well as exporting images that are the exact size as displayed on the page @1x.

How can I retain the original image quality?

ORIGINAL (haha, it got crushed when I uploaded it to here - but not so much as the one below has)

![original.png](https://community.atlassian.com/t5/image/serverpage/image-id/172051i7F7FF993F8CBD579/image-dimensions/358x200?v=v2 "original.png")

Screenshot of the crushed image in my page.

![crushed by compression.png](https://community.atlassian.com/t5/image/serverpage/image-id/172050iA75C93326FE5176B/image-size/large?v=v2&px=999 "crushed by compression.png")


author: Gonchik Tsymzhitov
body: Hi!

One possible way is export all data and change the jpg to png.

Then change in xml the jpg to png.


Tags: cloud

confluence-cloud
What is the name of the built in macro?
Asked by Rafi Asraf:

Hi

I am trying to nest macros in user macro.

So this one works:

```
<ac:macro ac:name="cheese" />
```

and it shows the Cheese macro.

and as you can see, the logic is that I need to write the name of the macro, in order to use an existing macro in my user macro.

So how do I know what is the **name** of macro?

More specific the macro with the title **Page Properties** what is the name for that?

I tries pageproperties, page_properties, details and none of that seems to work.

any idea how I can find out the name (and not the title) of the macro?

ps, the rule for user macro is that macro name is lower case without spaces


Answers:
author: Robert Reiner _smartics_
body: The quickest way for me to find out the name of a macro is to add it to a page and view the storage format of the page (actually I'm using the source editor for this).

In case of the Page Properties Macro it is "details".

```
<ac:structured-macro ac:macro-id="0b964145-16ed-4fca-8557-e9f0ffbe6e19" ac:name="details" ac:schema-version="1">
 <ac:rich-text-body>
 <p>
 <br/>
 </p>
 </ac:rich-text-body>
</ac:structured-macro>
```

comments: author: Rafi Asraf
body: Thanks,

I actually did the same, and looked into the source code, and came up to the name details, but for some reason it did not worked out for me.

I did not used the ac:macro-id attribute though, so I do no know if that was as issue.

Any how, now it is working, so thanks.


author: Robert Reiner _smartics_
body: As far as I know is the macro ID something that is generated at the time the page is rendered. Therefore you should not need to add it in your code. The same is - again as far as I know - the case with the schema version.

When I am adding a macro to one of my blueprint templates then I only use the name attribute and omit macro-id and schema-version.


Tags: nest

user-macro
Schedule job BACK UP CONFLUENCE Failing
Asked by Mohit Dhir:

The confluence scheduled job "Back Up Confluence" is not generating the backup file on even dates. I have monitored the process. The job status has turned from running to scheduled however it has not generated the backup file in the desired path.

This is observed only on the even dates but can find the odd date files in the path.

Could you let me know where I can find the logs for this process so that I can start an investigation towards why it is failing.

Also I can find some files generated by the backup process in the /confluence/temp directory. the file and directory names are like xmlexport-20180816-020000-437 and xmlexport-20180816-020000-437.zip

The logs have this line

2018-08-16 04:29:08,855 ERROR \[Caesium-1-1\] \[confluence.importexport.impl.BackupJob\] runJob Error while running the scheduled backup


Answers:
author: Sattesh M
body: Hello Mohit,  

I believe you've found the log file, as you've shared the line from the log.

```
2018-08-16 04:29:08,855 ERROR [Caesium-1-1] [confluence.importexport.impl.BackupJob] runJob Error while running the scheduled backup
```

The hint as to what could be the issue is usually found after the line above.

Do check the line after the line above, to see if it mentions anything, and also scroll down a little to see if there's any "*caused by"* in the log following the line above.

<br />

Also, it is weird that the backup are failing on even dates alone.  
Do check the**Scheduled Jobs** page, and see if the Back Up Confluence job is edited to run every two days instead of daily.  

Hope that helps.  

Cheers,  
Sattesh


Tags: confluence-server

server
how can i integrate confluence in to JIRA SD
Asked by AKSHAY THAKARE:

Hi,

For the customer understanding, I want to add F\&Q section to the portal, for this how I can integrate confluence to the JIRA sd.

or

is there any option to provide F\&Q section to the portal.


Answers:
author: Sattesh M
body: Hello Akshay,  

You should be able to create a FAQ section in the Confluence Knowledge Base that's connected to JSD.

There's a guide on how to do this in the link below

* [JSD: Set up a knowledge base](https://confluence.atlassian.com/servicedeskcloud/set-up-a-knowledge-base-957150219.html)

Hope that helps!  

Cheers,  
Sattesh


Tags: jira-service-desk
Database: Database connection failed
Asked by Steve ten Have:

I updated confluence on my machine and now it won't start with the Database connection failed error. The contents of the atlassian-confluence.log is full of the following:

2018-08-15 21:25:06,854 WARN \[C3P0PooledConnectionPoolManager\[identityToken-\>1hge13x9xgr65m2f68yko\|ec82954\]-HelperThread-#1\] \[mchange.v2.resourcepool.BasicResourcePool\] log com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask@15495128 -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception:  
org.h2.jdbc.JdbcSQLException: General error: "java.lang.RuntimeException: rowCount expected 139699 got 135939 T187.I847" \[50000-176\]


Answers:
author: AhmadDanial
body: Hi, Steve.

The error that you are experiencing here is similar to a question that was asked recently:

* [Confluence Server doesn't start](https://community.atlassian.com/t5/Confluence-questions/Confluence-Server-doesn-t-start/qaq-p/843394)

May I know if it is possible for you to restore the last working backup that you have again as mentioned in the [Site Backup and Restore](https://confluence.atlassian.com/doc/site-backup-and-restore-163578.html?_ga=2.159071866.1175635223.1534116698-684604432.1516850675)?

While you mentioned that this instance is yet to be migrated to an external database, is it going to happen any time soon? Looking forward to hear from you soon.


author: Steve ten Have
body: **It's also worth noting that this is using the default local DB and has not yet been migrated to an external DB host.**


Tags: confluence-server

server
Jira and Confluence integration
Asked by Neeraj Kumar:

Hello,

I have both Jira cloud and Confluence cloud as a separate account. How can I integrate Confluence in jira?  

Jira show only option for trial sign up for new subscription from jira account.


Answers:
author: Hazwan
body: You can link them via application link page: https://\<instancename\>/plugins/servlet/applinks/listApplicationLinks

So basically, here are the steps:

1. Click JIRA Settings \> Applications in the sidebar
2. Choose Application Links.
3. Enter the URL and choose Create new link.
4. Use the wizard to complete setup of the application link.

Hope this helps! :)

comments: author: Neeraj Kumar
body: Okay. So I see that I have already linked my confluence with jira sometime back.

But why does in Jira new interface on clicking page for a project ask me to sign up for confluence?  
By mistake I signed up and deactivated it and now it is showing attached image.

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


author: Hazwan
body: Ah. The pages feature only applicable for native confluence. By "native confluence" i mean Confluence on the same instance.

It wouldn't work for a separate confluence instance.

But features like JIRA Issue macro would work on the separate Confluence Cloud instance and the link for your Confluence pages would also work in your JIRA.

Just not the pages feature. :(


author: Neeraj Kumar
body: Okay.

I have 2 questions now

1. How does user mgmt done in native confluence. Does it count all users which are present in jira? What if I don't need all my jira users to use confluence.
2. Can I migrate my other confluence instance contents to native confluence instance.


author: Hazwan
body: 1. Nope. It wouldn't count all JIRA users. You can have confluence users that have no JIRA application access. And that can be done by unchecking the JIRA application access. For example, in this case here, my user Shakiru doesn't have a JIRA access but only Confluence![Screenshot_1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/29649iD69DD63CB192E358/image-size/large?v=v2&px=999 "Screenshot_1.jpg")
2. Yes definitely. You can perform space by space import to your JIRA Cloud instance. And here's a guide on how to do just that: [Import a Confluence space](https://confluence.atlassian.com/confcloud/import-a-confluence-space-724765531.html)


author: Neeraj Kumar
body: Thanks. It helped.


author: Hazwan
body: Thanks! Feel free to accept my solution!


Tags: cloud

confluence-cloud

jira-cloud
JIRA Running with NGINX proxy and Confluence on HTTP (mixed-content warning)
Asked by Service-Link Support:

Hi everyone,

We have a JIRA server that we are running proxied through NGINX over HTTPS. A confluence server is running on the same machine and when the JIRA server asks for content from the knowledge base we get the following error.

Mixed Content: The page at 'https://\<our_domain\>/servicedesk/customer/kb/view/1409038?q=811\&q_time=1534377518961\&portalId=1\&applicationId=3e655cfa-aw85-3204-ac6a-066ad88b23a8' was loaded over HTTPS, but requested an insecure resource 'http://localhost:8090/plugins/servlet/remotepageview?pageId=1409038'. This request has been blocked; the content must be served over HTTPS.

I was wondering the best way to solve this. Any help will be greatly appreciated. I hope I explained this correctly; please feel free to write back if anything is not clear on my explanation.

Thank you.


Answers:
author: Craig Castle-Mead
body: Hi,

My guess is that the application link between JIRA and confluence is setup using 127.0.0.1:8090 and not <https://confluence.yourcompany.com/> so instead of hitting nginx over ssl, the request is going straight to the confluence application which is only http.

Change the application link to use the full hostname and it should help.

CCM

comments: author: Service-Link Support
body: Thanks much for your answer; I made Confluence run on HTTPS by creating another proxy rule from Nginx. This works perfectly. :)


author: Andy Nguyen
body: Hey Sudharaka,

I'd like to add on some points to Craig's comment, which is already correct.

Basically this is a known issue where JIRA/JSD is on HTTPS but Confluence is on HTTP. When you browse a Knowledge Base article from JSD Portal, which is over HTTPS, it requests the actual content from a Confluence page, which is over HTTP.

Due to this, the browser detects **insecure content** and throws the warning. In other words, JSD expects secure content over HTTPS, but receives insecure content over HTTP.

You may get more information here:

1. [Unable to View Knowledge Base due to Browser Security for Mixed Content](https://confluence.atlassian.com/jirakb/unable-to-view-knowledge-base-due-to-browser-security-for-mixed-content-856839010.html)
2. [Knowledge Base Shows Empty Content - JIRA Service Desk Self-Help](https://confluence.atlassian.com/jirakb/knowledge-base-shows-empty-content-jira-service-desk-self-help-777026931.html)

The best solution, as suggested by Craig, is to also run Confluence over HTTPS, so that JSD will be receiving secure content.

I hope this helps.

Best,

Andy

comments: author: Service-Link Support
body: I made Confluence run on HTTPS by creating another proxy rule from Nginx. This works perfectly.. Thanks for your answer.


Tags: confluence-server

server