youngmon/atlassian-qna huggingface dataset:
How can I use a Confluence current user name as a JQL variable in an on-page JIRA macro?
Asked by Kevin Baldwin:

I am using a JIRA macro on an on-prem Confluence 6.14.2 page.

In the macro, as part of the JIRA issue filter, I want to use the currently logged-on Confluence user as a variable in the JIRA assignee field. Then, I'll restrict editing of the page so that users cannot see any issues that are assigned to others. Users can only see their own issues, at least in Confluence. (!Important)

What is the easiest way to get the current Confluence user name to appear in the filter field of the JIRA macro? (The Confluence platform admin has locked down creation of User Macros, so my solution will have to probably use only on-page javascript, or similar.)

Here is my xhtml:

\<p\>  
\<ac:structured-macro ac:macro-id="39265a4e-f7e7-4c75-b8c2-c956cde9922c" ac:name="jira" ac:schema-version="1"\>  
\<ac:parameter ac:name="server"\>ServerName\</ac:parameter\>  
\<ac:parameter ac:name="columns"\>key,summary,type,created,updated,due,assignee,reporter,priority,status,resolution\</ac:parameter\>  
\<ac:parameter ac:name="maximumIssues"\>20\</ac:parameter\>  
\<ac:parameter ac:name="jqlQuery"\>project = PROJECT AND status != Done AND assignee = \[current Confluence user\] \</ac:parameter\>  
\<ac:parameter ac:name="serverId"\>3094394f-4ff6-3c13-8625-7c1a63b63bf9\</ac:parameter\>  
\</ac:structured-macro\>  
\</p\>

Thanks, --K


Answers:
author: RianS
body: You should be able to use the currentUser() function in the JQL query:

So you would use this for the JQL:

```
project = "PROJECT" AND status != "Done" AND assignee = currentUser()
```

<br />

This should search based on the current logged in user from the context of Confluence.

comments: author: Kevin Baldwin
body: That is the exact variable that I was trying, and for some reason it stopped working this week. I had it working last week, but this week instead of using the currentUser() variable string, the JIRA macro resolved the variable string to my logon id string -- essentially hard-typing it into place for all users of the page.

Now today, inexplicably, it is indeed working again. What is going on with the currentUser() variable that sometimes works and sometimes does not?!!


author: Kevin Baldwin
body: Still no word on why the currentUser() variable sometimes works and sometimes doesn't in the Edit mode of a Confluence page. Thanks, --K


Tags: confluence-server

server
Embedded iframe Figma
Asked by Chris Carbo:

I have embedded an iFrame to a Figma file on a confluence page.

The page loads the figma file correctly for some, but not all.

When the iframe doesn't load the figma file, a grey box with the message "[www.figma.com](http://www.figma.com) refused to connect" appears.

I have tested different permissions and browsers along with adding https to the URL.


Answers:
author: Shannon S
body: Hello Christopher,

Welcome to Atlassian Community. Happy to help you!

From what you're saying, the iFrame is working for some users, but not all. Is that correct?

If Confluence were having an issue with this, then you would see that it doesn't load for any users, but if it loads for some users, then there's some problem preventing those users from connecting to Figma.

That can either be Figma itself, or something on the user's computer, such as an anti-virus.

You can have your users check the error with Developer Tools in their browser. By going to **Developer Tools \> Network** (in Chrome, but other browsers have the similar functionality), they will be able to see the error that is causing the connection issue.

Let me know if you have any trouble.

Regards,

Shannon

comments: author: Chris Carbo
body: I check out the Network issues and found this  

**Refused to display** '<https://www.figma.com/file/bocdbxkuGrzvd2AiWjLWnFKg/Policy-creation?node-id=1949%3A787>' in a frame because it set 'X-Frame-Options' to 'sameorigin'.

![Screen Shot 2019-10-09 at 3.45.56 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/68979iC08C76043550050B/image-size/large?v=v2&px=999 "Screen Shot 2019-10-09 at 3.45.56 PM.png")


author: Shannon S
body: Christopher,

Thank you for sharing that.

This means that Figma has set [clickjacking protection](https://www.hacksplaining.com/prevention/click-jacking) on that page. The rule they have set is preventing that page from being embedded in another page unless they share the same origin (Figma).

It's not clear why it would happen only for certain users or if there's some other requirement for someone to access the page, e.g. do they need to be logged in? Access from a specific session? Therefore, you may want to check with Figma why this is happening.

I hope that helps to clarify things, but let me know if you have any additional questions.

Regards,

Shannon


author: Chris Carbo
body: Interesting. But what confuses me even more is that I can take the same link and embed it into an iframe in Notion and work.

Which why i'm confused and can't figure out if this is a Confluence or Figma issue or both?


author: Shannon S
body: Hi Christopher,

It doesn't look like a Confluence issue; we do have clickjacking enabled so you cannot embed Confluence pages into 3rd party sites, but not the other way around.

If I were you I would check with Figma to see if there's some requirement as to some whitelist or setting that needs to be enabled for someone to embed a website.

Regards,

Shannon


Tags: cloud

confluence-cloud
Is it possible to multiselect for bulk edit?
Asked by Marieve cae:

As an example, there's sometimes multiple words on a page that needs to be bold or monospace. I'd like to be able to select all of these words and click bold one single time.

Thank you.

Marieve


Answers:
author: Shannon S
body: Hello Marieve,

Thank you for contacting us about this. You can use a [Confluence Source Editor add-on](https://marketplace.atlassian.com/search?hosting=server&product=confluence&query=source%20editor) in order to do a bulk search and replace, as my colleague Igor suggested on a similar request:

* [Solved: Can i find a word on confluence page \& bulk format it (like "bold") ?](https://community.atlassian.com/t5/Confluence-questions/Can-i-find-a-word-on-confluence-page-amp-bulk-format-it-like/qaq-p/840357)

Let me know if you have any questions or trouble with that.

Regards,

Shannon


Tags: confluence-server

server
I received an email that our team has reached its 250 GB storage limit, how is that possible?
Asked by Noah Taubman:

As the title says, I received an email that our team has reached its 250 GB storage limit, but our confluence site is basically empty. How did we reach 250gb and is there a place I can see a rundown of where this space is being displaced?


Answers:
author: adams.laborde
body: We received a similar email today. When we checked, we found we were using around 124MB out of our 250GB limit. I'm guessing something caused those emails to be sent out in error. That said, here's an article that shows you how to find that info if you are a site admin:  

<https://confluence.atlassian.com/cloud/storage-for-jira-and-confluence-873871366.html>


author: Hana Ku?erov?
body: Hi Noah,

maybe you can try to export all data from Confluence using Backup manager. Then check the file sizes, especially the attachments folder.


Tags: cloud

confluence-cloud
Microsoft Active Directory User Group Can't add?
Asked by John Tran:

So I configured my Active Directory but now it won't let me add users to the groups. Only telling me that the user cannot be added.


Answers:
author: Shannon S
body: Hello John,

Thank you for contacting us about this. Could you tell me which version of Confluence you're running?

Are you adding the users directly in Confluence, or trying to manage this in AD? Can you show us the error as you see it in the UI?

Have a look at this article, as it might help:

* [Trying to add Confluence users to a group throws "\<directory\> does not allow updates" error in logs](https://confluence.atlassian.com/confkb/trying-to-add-confluence-users-to-a-group-throws-group-does-not-allow-updates-error-in-logs-302812802.html?_ga=2.204730512.1895457068.1570440265-777746672.1570093413&_gac=1.196355934.1570448148.CjwKCAjwxOvsBRAjEiwAuY7L8pyl7MWy5i7kS4oFVMkWUABi8ZseS4noI17mEe12zgx17KPXc5ggYBoCvD4QAvD_BwE)

If that doesn't resolve your issue, I'd like to know what error messages you're encountering in your Confluence Server logs when the error occurs. See [Working with Confluence logs](https://confluence.atlassian.com/doc/working-with-confluence-logs-108364721.html) if you need assistance in finding those logs.

Thank you!

Regards,

Shannon

comments: author: John Tran
body: [@Shannon S](/t5/user/viewprofilepage/user-id/510046)

Hi Shannon,

Thank you for your response. I figured it out. I just checked a box that did not allow Confluence to manage groups.

Respectfully,

John


author: Shannon S
body: Hi John,

Thank you for the update! Happy to hear you were able to resolve your issue.

Take care,

Shannon


Tags: confluence-server

group

ldap

server

user
Attachment - file type restrictions
Asked by Alyse West:

When trying to attach txt files into a Confluence page, the page keeps spinning and spinning and the attachment never appears. When converting the same file to pdf, it worked. Any ideas? Are their file extension restrictions in Confluence?


Answers:
author: Shannon S
body: Hello Alyse,

Thank you for contacting us. There are not any file extension restrictions in Confluence; you should be able to add any attachments to a page as you wish. I've tested this now with my own Confluence Cloud instance, and I had no issue attaching a .txt file.

Are you still experiencing this issue? Does it occur with other .txt files?

If so, you may want to raise a [ticket with the Cloud Support Team](http://support.atlassian.com/contact). They'll be able to have a look at your site's logs and determine the reason for this issue.

Regards,

Shannon


Tags: cloud

confluence-cloud
Confluence Server Mobile App Search within documents
Asked by Sam Ramalingam:

The search results we are seeing in the Confluence Server mobile app on iOS is inconsistent with the desktop browser search. The search functionality on the mobile app appears to only show page title and label matches whereas the desktop browser search is more comprehensive including content within PDFs, Word Docs. Is there anyway we can configure the mobile search to be similar to the desktop search experience?


Answers:
author: Shannon S
body: Hello Sam,

Thank you for contacting us about this. I see that you were able to raise a ticket with our support team as well, and I wanted to share that answer here so it can help other users.

The behavior you're observing is how the Confluence search is configured on mobile by default. See [Confluence Mobile - Searching for content and people](https://confluence.atlassian.com/conf64/confluence-mobile-936510970.html#ConfluenceMobile-Searchingforcontentandpeople) for more information on that.

Due to performance concerns, the full search functionality is not enabled in the mobile versions of your site (including both mobile view and the mobile app). You will need to access your site using the desktop site in order to use the full search functionality, including attachment search.

There is no way to enable the full search on mobile by default. We do have a feature request logged for this below, which you can vote on and watch for updates. By voting on a request, you can help to increase the impact and visibility of the feature request according to our [Implementation of New Features Policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html).

* [CONFSERVER-58547](https://jira.atlassian.com/browse/CONFSERVER-58547) *Improve the search feature of the Confluence Mobile App in iOS and Android to include searching through attachment content.*

I hope that was clear but do let us know if you have any questions.

Regards,

Shannon


Tags: confluence-server

mobile

server
List of all links
Asked by Marieve cae:

Hi,

Many links are external after importing a space.  
They need to be all internal (for pdf export).

Can I generate a list of all links so I can fix the broken one?

Thank you

Marieve


Answers:
author: Diego
body: Hello there, [@Marieve cae](/t5/user/viewprofilepage/user-id/2818969) !

For the purposes of finding those links, I believe that we *++can consider the current ones to be broken++*. Having broken links in our instances demand some kind of validation.

With this in mind, I would like to first point you into the *++direction of an existing feature++* that aims at dealing with link validation.

Here, take a look:
> * ++**[\[Confluence Server\] Confluence - Link Report/Link Validator](https://jira.atlassian.com/browse/CONFSERVER-55958)**++

Now that this is out of the way, we can try the *++workaround for validating links++*. We can find this documentation right here:
> * ++**[\[Confluence Server\] Confluence - How to Validate Links](https://confluence.atlassian.com/doc/confluence-how-to-validate-links-952603062.html)**++

Since the actual procedure is pretty detailed (it is twelve steps long and has pretty descriptive images) I will not include an excerpt from it here. I advise you and anyone else who stumbles upon this thread to *++check the link provided above.++*

Let us hear from you, Marieve! Looking forward to your reply.

comments: author: Marieve cae
body: Hi Diego,   

They are not broken but when I export to PDF or HTML, they still link to confluence.   
I need them to allow navigation within manual only after the export.

Thank you, I will try that.

Marieve


author: Michael Hopwood
body: Hi [@Diego](/t5/user/viewprofilepage/user-id/1188952) I found a broken link in your post above, I think it should be:  

<https://confluence.atlassian.com/confkb/confluence-how-to-validate-links-952603062.html>


Tags: confluence-server

server
How can I analyze data usage to cull content?
Asked by Nicolas Anzalone:

What tools exist to see how we're using our cloud data storage by space/page?

We just hit the limit and I'd like to be able to cull old/irrelevant content by prioritizing pages and spaces that use a lot of storage.


Answers:
author: adams.laborde
body: Verify that you actually hit the limit first. We received an email saying we were at our limit today, but we're actually nowhere near it.   

If you're a site admin, you can use this article to find your actual usage: <https://confluence.atlassian.com/cloud/storage-for-jira-and-confluence-873871366.html>

comments: author: Nicolas Anzalone
body: Thanks! That's exactly what I was looking for!! Appreciate it!


author: Dan Winkler
body: Just chiming in to echo what [@adams.laborde](/t5/user/viewprofilepage/user-id/3397240) said - we received an email just today that said we were at our limit, and we're not even close.


Tags: confluence-cloud
Oct 7, 2019 - service slow and unresponsive at times
Asked by Connie McCutcheon:

Hi, just wondering if anyone else is experiencing slow and unresponsiveness sporadically since about 11:30am EST.

Seems to come and go.

Thanks


Answers:
author: Daniel Eads
body: Hi Connie,

There's an ongoing incident with Confluence Cloud currently. While the service is stabilizing, you may see some intermittent issues as things get back to normal. You can [track the status of this incident on our Statuspage](https://confluence.status.atlassian.com/incidents/w57s88vc2hkt).

Thanks,  
Daniel


Tags: cloud

confluence-cloud
Why does Recently Updated macro show pages twice?
Asked by Igal Levy:

Unfortunately I cannot provide a screenshot as this is internal material. But basically, the macro produces a list that looks like this.

Foo

Bar

Bar

Baz

qux

qux

quux


Answers:
author: Markus Beck
body: I have the same problem.

recently updated macro looks like this when the same page is updated by different people:

![recently updated macro.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/71782i333C7F12E4D36AA1/image-size/large?v=v2&px=999 "recently updated macro.jpg")

This behavior is not helpful if you set the macro to design 'sidebar' and don't show profile pictures.

Is there a way to show each page only once in the list?


author: Parvaneh Zand
body: When you save a page, a new version is created and Recently Updated macro tracks all of them separately (content, attachments, comments, everything!). So when you attach 2 files, It shows the page title twice.

Edit the macro and change Content Types to "page".

or use Activity Stream, and try using CQL and customize it.


Tags: confluence-server

server
How can i disable displaying content in email notifications?
Asked by abir ayadi:

Hi,

As an administrator, how can i disable displaying content in the notifications' emails for all the users?

Thank you


Answers:
author: jira guy
body: Why are you even sending notifications then?

Just disable outgoing email for global or remove project notification scheme for project specific

comments: author: abir ayadi
body: Actually i'm using a workflow for validating publications. i need notifications.

But, The content should'nt be visable until the validation of the reviewer.

The default notifacation sended by confluence shoud'nt display content .


Tags: confluence-server

server
How do I write my own CSS and Javascript in Confluence Cloud
Asked by Anand Rajaraman:

Hi All,

I have all privileges as an Confluence Admin, but still unable to write my own CSS and Javascript. I came across an page <https://confluence.atlassian.com/confcloud/restricted-functions-in-confluence-cloud-734070955.html?_ga=2.10483253.1876186346.1570453632-1432399901.1539257021>, Can someone tell if this is applicable also on writing customized CSS and Javascript.


Answers:
author: Jack Nolddor [Sweet Bananas]
body: That's correct! those features are not available on Confluence cloud.

From the **Functional differences in Confluence Cloud** page:
> On Atlassian Cloud, Confluence uses a custom theme that **can't be modified or updated using custom HTML or CSS**. For more information on custom themes in Confluence Cloud, refer to Working with Themes

Have you further questions relate to this topic?

Regards


Tags: confluence-cloud
How do I have a change in status (red yellow green) reflect on other pages, reports or tables?
Asked by Randal:

I would like a status (red yellow green) from one page to be reflected on another page so that I do not have to keep track of manually updating statuses for multiple projects.  


Answers:
author: Andrey Khaneev _StiltSoft_
body: Hello [@Randal](/t5/user/viewprofilepage/user-id/2495304)

You can store Status macro within Excerpt macro and include it into other pages using Excerpt Include macro.

comments: author: Randal
body: Thanks for the reply Andrey

I will try again but

I tried that without much luck...I inserted the Status macro inside the frame of the excerpt frame/border/ and tried "call" it on another page

Are there limitations to using excerpt in a table...as I said I will try again in the meantime without a table to see if anything changes


author: Andrey Khaneev _StiltSoft_
body: As far as I know, it should work inside a table. Are you going to reuse this Status macro within the same page or on other pages only? Excerpt Include macro can't include content from the same page, but there are alternatives exist.


author: Randal
body: Got it ...in a table too!

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


author: Randal
body: .


Tags: cloud

confluence-cloud
Ongoing serial number
Asked by Lukas_Biedermann:

Hi,

i'm new to confluence and node.js so please excuse my lack of knowledge.

So my question is, is it possible (with a selfmade macro for example) to automatically give every new site an ongoing number in the title / in the content area? We use Confluence as Cloud service.

So it looks like this: [Example](https://prnt.sc/pg0w0d)

Best regards,

Lukas


Answers:
author: Nic Brough -Adaptavist-
body: I could use the page id as a serial number - it's unique and can be used to construct a url to view or edit the page. Or the string in the "short url" link.

On server you can write a user macro that exposes either of these in the page, but on Cloud you can't write user macros. You'll just have to read the "page information" to get them (the page id is in the url, the tiny macro in a field)

comments: author: Lukas_Biedermann
body: Okay but this tutorial is for creating macros / addons for the cloud isn't it?

[Tutorial](https://developer.atlassian.com/cloud/confluence/getting-started/?_ga=2.90114844.68667120.1569310454-962676931.1549533143)

Refering to this tutorial, how can i show the page id instead of "Hello World".


author: Lukas_Biedermann
body: I have tried to access the URL in JS with "document.locaion.href" but this cannot work because the node app creates a whole new HTML document in the Host Document. I really don't know how to solve this.


author: Nic Brough -Adaptavist-
body: Sorry for the delay, bit behind at the moment.

Yes, the doc you have found is for writing apps for Cloud, which should be able to do this. I mentioned "user macros" which Cloud users cannot write for themselves.

I'm afraid I don't know about coding for Cloud like this, I've only ever written for Server Confluence and only a very light touch Jira Cloud.


Tags: cloud

confluence-cloud
Export spaces or pages API for confluence cloud
Asked by devops_account:

Hi, is there any API call for exporting spaces or pages for confluence cloud?

Thank you,

Jason


Answers:
author: Daniel Eads
body: Hey Jason,

There are a couple existing in-product methods for getting exports:

* [Full Cloud site backup](https://confluence.atlassian.com/confcloud/create-a-site-backup-724765526.html)
* [Exporting individual spaces or pages](https://confluence.atlassian.com/confcloud/export-content-to-word-pdf-html-and-xml-724764824.html)

Unfortunately there's no API-friendly method for either of these currently. I believe the reasoning is that most sites won't often be doing export operations (so manual is ok for most).

We've got an [open feature request for adding an API endpoint here](https://jira.atlassian.com/browse/CONFCLOUD-40457). For more information about how Atlassian prioritizes feature requests made on jira.atlassian.com, [check out this Community post](https://community.atlassian.com/t5/Jira-questions/How-does-the-JIRA-team-use-jira-atlassian-com/qaq-p/475688).

There's also experimental scripts that can help with a full site backup: <https://bitbucket.org/atlassianlabs/automatic-cloud-backup/src/master/> Based on the backups generated by these scripts, you could then extract individual items with some additional effort.

Cheers,  
Daniel

comments: author: devops_account
body: Thank you for the confirmation, Daniel. I'm searching for an automation method to export or import. I'm watching this open feature request and will be glad to see this feature will be released someday. Thank you again for your reply.

Best,

Jason


author: Alok Nath IN
body: Looking for same thing Any API to export a page as html or pdf download.


author: inger_klekacz
body: The linked feature request was added in 2016 and has been upvoted many times. When will see this work performed?


author: Zoi Raskou
body: Sorry I don't think I can help with this. I would be interested in how this is implemented though.


author: devops_account
body: Thank you, Zoi. I've also checked these API docs. There is no such API usage for exporting or importing pages. Just wondering if there is a customized method to use the script to export pages or spaces instead of using add-ons.


author: Zoi Raskou
body: Hello, this is the documentation for Confluence API: <https://developer.atlassian.com/cloud/confluence/rest/>.

As far as I can see there isn't an API to export pages or spaces.


Tags: confluence-cloud

export

script