youngmon/atlassian-qna huggingface dataset:
How to pass confluence userid in the iframe src attribute?
Asked by Paras:

I am using the HTML macro in the confluence page. With the HTML macro, I am using the iframe tag and would like to pass the userid of the person logged within confluence in the src attribute. How do I do that?  

My code for iframe:

\<iframe id="myFrame1" width="1500" height="600" src="<https://www.test.com/Login=(userid>)"\> \</iframe\>  

"userid" should be the confluence userid. Basically return the function for AJS.params.remoteUser.toUpperCase()  

Thanks in advance.


Answers:
author: Dominic Lagger
body: Hi [@Paras](/t5/user/viewprofilepage/user-id/4666788)

If you are on server, you have to write a [user macro](https://confluence.atlassian.com/doc/writing-user-macros-4485.html).

If you are on cloud, I'm not sure, whether this is possible somehow.

Regards, Dominic

comments: author: Bill Bailey
body: Exactly, If you are on Cloud, out of luck. On server, you have the option of an simple user macro.
Is there a way to group text by theme?
Asked by David Calvo:

I'm absolutely new to Confluence so please excuse me if this question is simplistic.

As I'm taking meeting notes, I'd like to "tag" (I'm not sure if this is the correct term) pieces of information so that I can group or search them later. For example, I may take notes on what various people say and "tag" the note with the project to which it would later apply. It would look like this:

* Ted: Blah Blah (Tag: Project 1)
* Fred: Blah Blah (Tag: Project 2)
* Ned: Blah Blah (Tag: Project 1)

Then later I would like to run some report or filter to pull the notes associated with Project 1.


Answers:
author: Dave Liao
body: [@David Calvo](/t5/user/viewprofilepage/user-id/4668346) - welcome David! I'd read about *labels*:

<https://support.atlassian.com/confluence-cloud/docs/use-labels-to-organize-your-content/>

Add one or more labels to each page, then use macros to see a heatmap of popular labels, or list the labels within a given wiki space.

Hope this helps.

comments: author: Dave Liao
body: p.s. it may not do exactly what you're describing in your original question, but it's a start.


author: David Calvo
body: Thank you. I started with labels as I was initially exploring the functionality but it seems too high-level.

From what I saw, the labels can be applied to a page or attachment. But I would like to apply multiple "labels" to various pieces of information within a single page.


author: Dave Liao
body: [@David Calvo](/t5/user/viewprofilepage/user-id/4668346) - ah, gotcha!

I like the idea of tagging specific globs of page content. Haven't seen that functionality anywhere - Atlassian Marketplace apps I've seen are centered around wiki pages, adding page metadata via fields, etc.

Ever play with [the Task Report macro](https://support.atlassian.com/confluence-cloud/docs/insert-the-task-report-macro/)? It's a closer approximation of what you're describing - add Tasks to a page, assigning a Task to a person, then pull a Task Report (macro) based on criteria you care about.

You wouldn't have the Project dimension - as Label (if you used it) would only scope Tasks pulled based on the page/s where Tasks are found.

Hopefully others on Atlassian Community have ideas for you to explore!


Tags: cloud

confluence-cloud
Upgrading from 7.5.2 to any 7.13.x
Asked by Alec Burton:

Currently, I have a self-hosted server running 7.5.2 and we're looking to upgrade to the latest LTS. We have an expired license August 2021. Is there a way that I can upgrade to a newer version without migrating to the cloud?

Edit: We run out of a docker-container and when I go into the upgrade assistant I see that I'm on the recommended version.


Answers:
author: Daniel Eads
body: Hi [@Alec Burton](/t5/user/viewprofilepage/user-id/4666509) , welcome to the Community!

You should be able to renew maintenance on your expired license (at the same user tier if it's a Starter license) through <http://my.atlassian.com> . The way the perpetual Server licenses work is that you're entitled to any version released while the maintenance was still active. You can check [the downloads archive page](https://www.atlassian.com/software/confluence/download-archives) for exact dates - for example, Confluence 7.13.0 was released on August 15. This version of Confluence contains the fix for [CVE-2021-26084](https://confluence.atlassian.com/doc/confluence-security-advisory-2021-08-25-1077906215.html) , although a [separate advisory for unicode control characters](https://confluence.atlassian.com/security/multiple-products-security-advisory-unrendered-unicode-bidirectional-override-characters-cve-2021-42574-1086419475.html) was released recently, and you'd need to upgrade to 7.13.2 to mitigate that. I would suggest renewing and then upgrading as well!

Cheers,  
Daniel \| Atlassian Community Support

comments: author: Alec Burton
body: Hello [@Daniel Eads](/t5/user/viewprofilepage/user-id/1527694)

When I tried to go through the renewal process I was met with a prompt saying that:

|---|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|   | Renewal is unavailable There are no renewal options available for this license at this time. If you need help, please [Contact us](https://www.atlassian.com/company/contact). I've reached out to support through the Contact us and will wait for a response. Thanks! |


author: Bill Bailey
body: Are able to renew your maintance for your server? I know they stopped selling new licenses, but not sure whether once your mainatance lapse that is is or not.

If you can, then I suggest renewing so you can then upgrade.


Tags: confluence-server

licence

server

upgrade
How to create my own space on confluence
Asked by Anal A Nadgouda:

How to create my own space on confluence home page.


Answers:
author: Kishan Sharma
body: Hi [@Anal A Nadgouda](/t5/user/viewprofilepage/user-id/4666893) Welcome to the Atlassian Community!

To create a team or project space, you need the 'Create Space' global permission.

1. Select **Spaces** in the Confluence navigation and select *View all spaces*
   and select **Create space.**
2. Pick a space type.
3. Select **Next**.
4. Enter the required details and create your space.
5. Fill out any remaining optional fields.

6. Choose the permissions for the space.

7. Select **Create** to finish creating the space.

![(warning)](https://confluence.atlassian.com/s/m8mgch/8402/45c55aec607bd3c0b24eb377ecd790d998a06033/_/images/icons/emoticons/warning.svg) Choose your space key carefully as you can't change this later.

comments: author: Anal A Nadgouda
body: I am not able to see **Create space**anywhere. Looks like I do not have permission to create it. Who should I reach out for permission??


author: Kishan Sharma
body: You will need to reach out to your Site Admins of your site. If you are unaware who they are you can check with your colleagues who are already using the site or have created a space before.


author: Andreas Springer _Actonic_
body: If you don't have an automatically created personal space, you can create it at the top right of your screen, select your profile icon in the navigation bar. Got to '**add personal space** ' and then '**create**'.


Tags: cloud

confluence-cloud
Is it possible to restrict editing on part of a page generated by a template?
Asked by aa2323:

I created a global template for a project plan. I need to insert a few lines of text that could not be edited by any individual that generates a new page using said template. Is there a feature or plugin for Confluence that could enable this?


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Community!

No, you can't restrict editing of part of a page, people can either edit a page or they can not.

What you could do is split it up - put the bit you want to protect on a different page and include it in the main page instead. You can then change the permission to edit on the included page.

Note that this will not stop editors on the main page removing the "include".

comments: author: aa2323
body: Got it, thank you for the suggestion.


Tags: confluence-server

server
confluence deployment not working
Asked by Spe Admin:

What can I do when a confluence when a deployment of a free confluence Instance did not worked? Instance is shown but page is not available.

Any hints?


Answers:
author: Kishan Sharma
body: Hi [@Spe Admin](/t5/user/viewprofilepage/user-id/4666593) Welcome to the Atlassian Community! You can also try raising a ticket to Support team by selecting My Account/Other at <https://support.atlassian.com/contact/> and mentioning about the issue you are facing.

comments: author: Spe Admin
body: I would but unfortunately that's not possible

*Confluence Free comes with Community Support. Upgrade to a paid plan to get one-on-one customer support.*


author: Kishan Sharma
body: Have you selected these options ?

![myaccount-other.png](https://community.atlassian.com/t5/image/serverpage/image-id/173043i2F986143A975FAFA/image-dimensions/155x146?v=v2 "myaccount-other.png")


author: Spe Admin
body: thanks for pushing me in the right direction ... searched for myaccount / other on the wrong places.

ticket is open now :)


author: Kishan Sharma
body: Cool, no problem :)


author: Florian PEREZ
body: Hello!

Sometime you can experiment bug at creation of the space.

If you just created the space a recommend you to wait a few hours. You should receive an email that confirm the creation.

I've experienced this bug yesterday and waiting was the key :)!

Hope this help!

comments: author: Spe Admin
body: Thanks for your answer.

The tIhing is I already waited more than 24h hours before posting here. Will wait another day to see if something changes.


Tags: cloud

confluence-cloud
Reminders
Asked by Debbie Bell:

Is there a way to set reminders on pages, like with due dates or every two months or something along those lines. I know there are notifications for page followers but I wondered if those could be customized or if there has be a change on page in order for the followers to be notified??

Any help would be great!

Thanks.

Debbie


Answers:
author: Kishan Sharma
body: Hi [@Debbie Bell](/t5/user/viewprofilepage/user-id/4666484) Welcome to the Atlassian Community! Currently its not possible to set reminders on page. If you are open for third party apps, you can explore plugin such as [Task Reminder for Confluence](https://marketplace.atlassian.com/apps/1214272/task-reminder-for-confluence?hosting=cloud&tab=overview) from Atlassian Marketplace.

comments: author: Debbie Bell
body: Thank you for the information!


author: Florian PEREZ
body: Hello,

I did this by creating tash related on a page for the notification needed but it wasn't perfect, it was, to be honest pretty bad.

But you got a big chunk of luck! Automation is coming on cloud on 13 December (I think) and you should be able to do this will this plugin!

I can't wait to try all the new possibilities offered by this plugin!

I'm sure you'll find your need in this!

Just a few days to wait!

comments: author: Debbie Bell
body: Good to know! Thanks.


author: Aron Gombas _Midori_
body: You can set a due date (expiration date, expiry date) for a page using the [Better Content Archiving](https://marketplace.atlassian.com/apps/123/better-content-archiving-for-confluence?hosting=cloud&tab=overview) app:

![quick-actions-dialog-set-expiration-cloud.png](https://community.atlassian.com/t5/image/serverpage/image-id/260174iF5AD9B08B3C8F0A3/image-size/large?v=v2&px=999 "quick-actions-dialog-set-expiration-cloud.png")

It also works for a blog post and even for a page tree.

Then it will trigger a notification which can be customized. You can customize its schedule, list of the pages and blog posts included in it, recipients:

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

The all allows implementing expiration tracking, periodic reviews, reporting, etc. on your Confluence content ([documentation](https://marketplace.atlassian.com/apps/123/better-content-archiving-for-confluence?hosting=cloud&tab=overview)).

*(Discl. it is a paid app supported and developed by our team.)*


Tags: cloud

confluence-cloud
Https doesnt work
Asked by vku:

Hi. I use this article <https://confluence.atlassian.com/doc/running-confluence-over-ssl-or-https-161203.html?_ga=2.267571598.1475416895.1533519498-1768351994.1532557169> to configure https access to confluence. It doesnt work.  
Confluence version 7.2.1.

PostgreSql database instaled

Firewall is off

Confluence installed on windwos server

ot looks like default tomcat doesnt start 8443 port.

Config example:

\<Connector port="8443" maxHttpHeaderSize="8192"  
maxThreads="150" minSpareThreads="25"  
protocol="org.apache.coyote.http11.Http11Nio2Protocol"  
enableLookups="false" disableUploadTimeout="true"  
acceptCount="100" scheme="https" secure="true"  
clientAuth="false" sslProtocol="TLSv1.2" sslEnabledProtocols="TLSv1.2" SSLEnabled="true"  
URIEncoding="UTF-8" keystorePass="changeit"  
KeystoreFile="C:\\Users\\user\\.keystore"/\>

what wrong? Can you help?


Answers:
author: Cenk Kili?
body: Hello [@vku](/t5/user/viewprofilepage/user-id/2123186)  
Hope you are doing well.  
My Name is Cenk and I will assist you on the issue.

Pls follow the steps below:

First Open the Start menu, type "**Command Prompt** " and select Run as administrator.  
Once inside, type the command "**netstat -aon** " and hit Enter.  
You will now see five columns: Protocols, Local Address, Foreign Address, State, and PID (Process ID).  
In the Local Address, next to the IP address column you will have a port number.  
There look for **8443** which is the port you have assigned for tomcat https.  
*If you find a line containing **8443** as the port then some other process(PID) is using the same port.*

***That is why you can not start tomcat on that port.***

See the last column of the line(containing 8443) with the name **PID** .  
That is the **PID** using port **8443** .

<br />

***If this is the case*** what you can do is you can :

* Change your port to 8444(*check before with netstat -aon to see that it is not used* )
* Or you can select another port but be aware not to select a priveleged port(selected port \> 1024).

***After changing the Connectorport in the conf try to start tomcat.***

***If this is not the case follow the steps below:***

* *C* heck if the key store file you created is under ***C:\\Users\\user\\.keystore***

***If not :***

* **Check the path** where you executed "%JAVA_HOME%\\bin\\keytool" -genkeypair -keysize 2048 -alias tomcat -keyalg RSA -sigalg SHA256withRSA  
  It should create the keystore there.

Copy the keystore file created by this command to C:\\Users\\user and check if it is name is ***.keystore*** .

If not change the name to .***keystore*** or change the keystoreFile value(keystoreFile="\<MY_CERTIFICATE_LOCATION\>") and set it as your filename.

* Try starting the tomcat again and keep eye on the logs.

Thanks  
Cenk KILIC \| Atlassian Confluence Support EMEA


Tags: confluence-server

server
How do I fix the right margin on the title page of a PDF export?
Asked by Tom Seedorf:

I'm currently trying to get a background image to fill the entire page when I export to PDF. I've tried all sorts of tactics, but there seems to be an impenetrable right margin that I can't escape. I've changed the title page's margins to 0 and also changed the top-right and bottom-right margins 0, but it only impacts every other margin--not the right margin.

![margin.PNG](/t5/image/serverpage/image-id/172900i0A5253387E8B95EC/image-size/large?v=v2&px=999 "margin.PNG")

Is this a bug, or am I overlooking something obvious? I'm no expert with html/css, so that's quite possible.

This is what I currently have for my css, which is as close as I've gotten to getting it to work:

```
@page title
{
margin-left: 0in !important;
margin-right: 0in !important;
margin-top: 0in !important;
margin-bottom: 0in !important;
padding: 0px !important; 

@top-left
{ 
}
@bottom-left 
{ 
}
@top-right
{ 
margin-right:0in; 
}
@bottom-right 
margin-right:0in;

...

div.titlepage
{
background-image: url("/download/attachments/657195009/title-page.png?api=v2");
page-break-after:always;
background-size: 100% 100%;
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center center;
}
```


Answers:
author: Tom Seedorf
body: FINALLY!

This accomplished what I want:

```
<div class="titlepage">
<div class=fsTitle>Text</div>
</div>
```

```
@page title
{
margin-left: 0in !important;
margin-right: 0in !important;
margin-top: 0in !important;
margin-bottom: 0in !important;
padding: 0px !important;
height:100%;

@top-left
{ 
}
@bottom-left 
{ 
}
@top-right
{ 
margin-right:0in; 
}
@bottom-right 
margin-right:0in;
{ 
}
}
```

```

div.titlepage
{
page:title;
margin-left: 0;
margin-right: 0;
text-align:center;
background-image: url("/download/attachments/657195009/title-page.png?api=v2");
page-break-after:always;
background-size: 100% 100%;
background-repeat: no-repeat;
background-attachment: fixed;
background-position: center center;
padding-left:1000px;
```

Some of this CSS is undoubtedly redundant or unnecessary, but the image fits the page, is centered, and no longer runs up against the right margin.

comments: author: Kishan Sharma
body: Great that you got it sorted [@Tom Seedorf](/t5/user/viewprofilepage/user-id/4655401) , you can mark your answer as accepted :)


Tags: cloud

confluence-cloud
Need SQL Query which can pull list of all pages from confluence which are using external gadgets
Asked by Sriram Pallapothu:

Need SQL Query which can pull list of all pages from confluence which are using external gadgets:

we got a requirement to update external gadgets poining URL from old to new, we did by using following suggested procedure

<https://confluence.atlassian.com/confkb/how-to-change-urls-of-external-gadgets-296913316.html>

Now to validate the result we need SQL Query result based on that we access random pages in which gadgets are using and will confirm the customers.


Answers:
author: Dominic Lagger
body: Hi [@Sriram Pallapothu](/t5/user/viewprofilepage/user-id/4476531)

Just search all bodycontent for your URL

```
select * from bodycontent where body like '%google%'
```

There you find the contentID and with that you can open the page.

Regards, Dominic

comments: author: Sriram Pallapothu
body: Hi Dominic.

Thanks for your help but this did not worked for my requirement.

actually I updated the URL by using update query:

    update BODYCONTENTset body = replace(body, 'http://test.com:8080', 'http://newtest.com/jira')where body like '%http://test.com:8080%';

Now I need to view which confluence pages are using these external gadgets and need to check they are working fine as expected.

For example: this is gadget I updated, now i need to view in which confluence pages using "admin-gadget.xml"

|----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| select count(\*) from BODYCONTENT where BODY like "%<http://jira.td.com/jira/rest/gadgets/1.0/g/com.atlassian.jira.gadgets:admin-gadget/gadgets/admin-gadget.xml%>"; |

for validating all the changes please suggest the query to view which confluence pages using that particular gadgets.

Regards,

Sriram


author: Dominic Lagger
body: Hi [@Sriram Pallapothu](/t5/user/viewprofilepage/user-id/4476531)

Sorry, but I don't know what part is missing...

This select statement will get you ALL pages, where this gadget occurs.

```
select * from bodycontent where body like '%GADGET HERE%'
```

In the table of results, you will find a CONTENTID. This contentid you have to use to open the page.

<https://CONFLUENCE-URL/pages/viewpage.action?pageId=CONTENTID>

Regards, Dominic


Tags: confluence-server

server
How to handle daylight savings time when calculating time/date
Asked by Glen Collins:

Hello everyone! I have run across an interesting issue. I created a form which my users use a calendar pull down to select a date in the future. When they select the start date, I calculate the end date for 7 days later and adding an additional 7 hours to the end date so the end time would show 2022-02-07 07:00.

When my users select 2022-03-07 as a start date the end date gets set

2022-03-14 08:00

when it should be 2022-03-14 07:00.

Since our daylight savings time starts 2022-03-13 I'm wondering how I can programmatically work this field calculation for this one specific issue. I know this is also probably going to happen when our DST ends. So is there any way I can fix this little annoyance?

This is how I set the field.....

OnCallEnd=\[entry.BeginDate.timestamp.add(604800000+25200000).formatDate(yyyy-MM-dd HH:mm)\]

the 604800000 is 7 days ahead and the 25200000 is 7 hours ahead. I tried to set the timezone to the formatDate but that didn't help.

Any help in this little annoyance would be appreciated.

Thanks.

Glen


Answers:
author: Alex Medved _ConfiForms_
body: Hi

Honestly, I am quite puzzled by this complexity and probably not getting the whole reasoning behind it, but...

If you know when you need to calculate the end date adding another hours then I suggest to make the calculation conditional, based on that.

So, basically having two functions - one that calculates your end date before the certain date and another one that calculates it after

Alex


author: Bill Bailey
body: Is this via a user macro? In other words, is the calculation rendered each time the page is refreshed?

Does your server time adjust for DST? In other words, can you detect the change by the server time zone marker?

Otherwise, you either have to a) live with the edge cases 2 weeks out of the year, or b) you have to programmitaclly keep track of the dates the times change and do your own adjustment (not pretty, but workable).

comments: author: Glen Collins
body: This is within confiforms and not a user macro. The calculation is done when the date dialog is closed and it then performs the calculations based upon the data I have provided. I don't know if confiforms uses it own method of determining daylight savings or if they rely on confluence to do this. All I know is it starts one week before the actual time change takes place. But I'm just worried about monday as this is the specific day users are allowed to select.

This is a minor annoyance and I've just notified my users to watch out for this twice a year.

Thanks.

Glen


Tags: confiforms

confluence-server

server