youngmon/atlassian-qna huggingface dataset:
Insert profile picture for "current user"
Asked by Kamlesh Vishnuram:

In JQL you run a filter which displays the JIRA tickets for the current user.

\[reporter = currentUser() order by created DESC \]

Is it possible to insert the "profile picture" macro but again for current user.


Answers:
author: Davin Studer
body: Are you on server or cloud? If you are server you could create a user macro that dynamically creates a profile picture macro for the currently logged in user.

comments: author: Kamlesh Vishnuram
body: Hi. That's way too advanced for me. ?

I just started using confluence!

Thanks all for your help!!


author: Davin Studer
body: In Confluence Administration -\> User Macros create a new user macro with the below setup. Then you can go back to your page and add a Current User Profile Picture macro to your page to see the current user. In essence what the user macro below is doing is it has the storage format for the built-in user profile picture macro and it dynamically inserts the user key of the currently logged in user (*$action.remoteUser.key* ). You can see the storage format for you page and any macros therein using either the Page Ellipsis Menu -\>View Storage Format or with the [Confluence Source Editor](https://marketplace.atlassian.com/apps/1210722/confluence-source-editor?hosting=server&tab=overview) App (free).

**Macro Name:**   
current-profile-picture

**Macro Title:**   
Current User Profile Picture

**Macro Body Processing:**   
No macro body

**Description:**   
Displays the profile picture of the currently logged in user.

**Template:**

```
## Developed by: Davin Studer## Date created: 11/30/2019## @noparams<ac:structured-macro ac:name="profile-picture" ac:schema-version="1">    <ac:parameter ac:name="User">        <ri:user ri:userkey="$action.remoteUser.key"/>    </ac:parameter></ac:structured-macro>
```


author: Brant Schroeder
body: The filters return user information in link format. You can hover on the user link to view the profile.

comments: author: Kamlesh Vishnuram
body: Hi.

thanks for the reply.

But what I mean is can I use the "profile picture" macro but I want to display this for current user.

Is there some sort of current user variable that we can pass into the macro?


author: Brant Schroeder
body: Sorry I misread your initial question. Unfortunately the profile picture macro does not accept variables. It only allows you to display what was selected and does not have dynamic capabilities.
update page confluence rest api bash
Asked by Adrian Jakubik:

Hello,

i have the following code, which works perfectly in a /etc/init.d/ script:

```
curl -u USER:PASSWORD -X PUT -H 'Content-Type: application/json' -d '{"id":"1234567","type":"page","title":"mytitle","space":{"key":"example"},"body":{"storage":{"value":"<p>Someone just restarted Service on '$hostname': '$NOW'</p>","representation":"storage"}},"version":{"number":'$VERSION'}}' "https://mydomain.com/rest/api/content/1234567"
```

After the script gets executed the confluence page updates the page correctly:

**someone just restarted Service on XYZ: 2018-11-29_09:22:50**

but if i run the script again it gets overwritten. I dont want to update the old content i want to post it as new line for example:

**someone just restarted Service on XYZ: 2018-11-29_09:22:50**

**someone just restarted Service on XYZ: 2018-11-29_09:24:33**

just to gather all restarts

i tried to work with '\\n' but i dont seem to work

<https://docs.atlassian.com/ConfluenceServer/rest/6.12.2/#content-update>

Regards


Answers:
author: Stephen Sifers
body: Hello Adrian and welcome to the Community!

Your API is a perfect example and will update/overwrite the content on the page. The issue you are having is you are telling the REST API to replace ALL content on that page with new content as a new version. With this said, here are some steps to get a resolution to your issue.

1. First make a GET request to the page and store the page contents (body storage value) as a variable.
2. With the new variable, you will want to pass this through to your PUT request so your new values are appended to the first page.
3. Your PUT request will not append the original content from the page along with the new content you have. You have to ensure the old content is passed through.

To simplify the answer, PUT requests will overwrite all content on the page. You will need to run a GET to store the content to pass through to the PUT request.

Here would be a simplified example with variables:

```
#Store this output as your OldContent variable
curl -u USER:PASSWORD ?-X GET "https://mydomain.com/rest/api/content/60424376?title=WhoDoneIt&&limit=1&expand=body.storage

#This will be the content from your the page you want to update.
$OldContent = '<p>Stephen just restarted Service on XYZ: 2018-11-29_09:22:50</p>'

#Your request with passing the $OldContent through
curl -u USER:PASSWORD -X PUT -H 'Content-Type: application/json' -d '{"id":"1234567","type":"page","title":"mytitle","space":{"key":"example"},"body":{"storage":{"value":"'$OldContent' <p>Someone just restarted Service on '$hostname': '$NOW'</p>","representation":"storage"}},"version":{"number":'$VERSION'}}' "https://mydomain.com/rest/api/content/1234567"
```

In short, the REST API does not have an append function and will replace all content on the page until you pass the original content through.

I hope this clarifies how to get your old content onto your new version of page.

Regards,  
Stephen Sifers


Tags: confluence-server

rest-api

server
how to develop python atlassian connect addon
Asked by boddupally venki:

Atlasssian describe how Connect, being web-hook and REST API driven, is completely language and platform agnostic. This means that one should be able to create a Python service externally to handle the web-hooks and make API calls back to do what I need. The problem I face is the complexity of managing the JWT. There are a number of sample applications on the connect website; however these all use frameworks to handle the JWT authentication and are only in available in Javascript, Java, Haskell, etc. There is a python jwt library and this will no doubt make things easier, but a working sample Python app(similar to atlassian-connect-express) would be appreciated by a great many.


Answers:
author: Daniel Eads
body: Hey Boddupally,

I'm assuming you're referring to the [atlassian-jwt-py](https://bitbucket.org/atlassian/atlassian-jwt-py/src/master/) python library to handle JWT tokens.

While it's not as simple as a straight Hello World, there is a publicly accessible [Bitbucket repo for a project to add pull request guidelines](https://bitbucket.org/atlassianlabs/prguidelines/src/master/). It's written in Python and does use Connect, so hopefully is helpful in giving some guidance.

Cheers,  
Daniel

comments: author: swjensen
body: [@Daniel Eads](/t5/user/viewprofilepage/user-id/1527694) @It appears that link is no longer public. By chance do you know if it moved or have another reference to a python example?


Tags: atl-adm

atl-dev

atlassian-marketplace

bitbucket

jira
RegEx not supported by CQL search for the field "title"?
Asked by Thorsten Rabel:

Hello,

I tried in vain to establish a **CQL search** string for a **page title starting with a specific letter**.

The basic CQL Search ...

*type = "Page" and space = "\[space name\]" and ancestor = \[page id\] and title \~ "E\*"*

... lists all sites with a word starting with letter "E" anywhere in the title (i.e. both "**Export** Control Officer" and "Process **Expert**")

I have tried to replace the search string "E\*" by a regular expression (RegEx) **/\^E.\*$/** without sucess both in text and in unicode, both in quotation marks and without, both with exact search "=" and fuzzy search "\~".

**Is RegEx not supported by CQL search for the field "title"?**

Work around would be to use tags which would require an manual step which I would like to avoid as there are many different authors and a page title is mandatory anyway.


Answers:
author: Manuel Kummerl?nder
body: Hi,

if it's still an open question ...  
In the search field you could try

```
title:'/E.*/'
```

Using the search API itself you could try

```
 title ~ '/E.*/'
```

As I know the quotes are important :)


Tags: cql

regex

search

title
Macro for sorting confluence pages by number of comments?
Asked by Mathias Brocks:

**Macro for sorting confluence pages by number of comments.**

My company uses confluence to gather user feedback: Each time a user mentions a know pain point, it is added as a comment to the relevant confluence page. Being able to sort by number of comments with a macro would add great value to our company as it would present the most critical user issues in an overview.


Answers:
author: Susan Ostreicher
body: Somewhat related, there's a 5 year old suggestion to allow sorting by number of comments and number of likes in the page properties report:

<https://jira.atlassian.com/browse/CONFSERVER-32534>


author: Davin Studer
body: Have you tried the "Content Report Table" macro?

comments: author: Mathias Brocks
body: Unfortunately the Content Report Table does not allow sorting by number comments, but thanks for the reply!

It allows for sorting by Title, Created by and Modified in the table header, but not comments for some reason :(


Tags: cloud

confluence-cloud
cann't connect Ldap ,warning "foundn't certs"
Asked by wanjin chang:

simple bind failed: ldaps.kaiyuan.net:636; nested exception is javax.naming.CommunicationException: simple bind failed: ldaps.kaiyuan.net:636 \[Root exception is javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target\]?

i was operation in linux following:

cd $JAVA_HOME

sudo keytool -importcert -keystore ./jre/lib/security/cacerts -file cacert.pem

then, i completing the configuration (SSL 636port),show the above messages.


Answers:
author: Shannon S
body: Hi Wanjin,

This article will help to solve your issue:

* [Unable to Connect to SSL Services PKIX Path Building Failed](https://confluence.atlassian.com/kb/unable-to-connect-to-ssl-services-due-to-pkix-path-building-failed-779355358.html)

Give that a try and let us know if you have any trouble.

Regards,

Shannon

comments: author: wanjin chang
body: Thanks Shannon,

My question was just solved by your support ,thanks for your attention.

Regards,

Wanjin


author: Shannon S
body: Wanjin,

Thank you for letting me know! Happy to help.

Take care,

Shannon
Atlassian Dragon Slayer - Confluence does not start (ERR_CONNECTION_REFUSED)
Asked by Shawn Wallack:

Running Windows 10 as the ADMIN on my personal laptop.

* Oracle JDK 8u181-windows-x64 installed in folder C:\\Java\\jdk1.8.0_181
* PostgreSQL 8.4 installed and pgAdmin III running.
* Jira Server (6.3.15) is running/accessible at localhost:8080
* Confluence Server (5.10.9-x64) is installed, but will not start when I navigate to http://localhost:8090/confluence (or http://localhost:8090).

The error is:

This site can't be reached {#toc-hId-1849607746}
------------------------------------------------

**localhost** refused to connect.

* Search Google for [localhost 8090 confluence](https://www.google.com/search?q=localhost%208090%20confluence)

ERR_CONNECTION_REFUSED

I updated the server.xml file so that the SERVER/ENGINE/HOST/CONTEXT/PATH value is:

Context path="/confluence" docBase="../confluence" debug="0" reloadable="false" useHttpOnly="true"

I cleared Chrome cache.

I tried Incognito mode.

I tried IE.

I tried uninstalling Confluence and reinstalling Confluence.

I tried rebooting.

All roads lead to this error.

Please help!


Answers:
author: Shawn Wallack
body: I found and resolved the problem... I had a silly typo in the server.xml file. I corrected that mistake and was able to log into and configure Confluence successfully.


author: Daniel Eads
body: Hey Shawn,

The context path in the server.xml file is where the application server will be listening. Since it's set to /confluence in the example you've pasted, it's likely that the address you'll need to use is http://localhost:8090/confluence - give that a try with Confluence started and see if it serves up.

Cheers,  
Daniel

comments: author: Shawn Wallack
body: Thanks, Daniel, but that did not work. Neither http://localhost:8090/confluence nor http://localhost:8090/ work. Same error.


Tags: confluence-server

dragonslayer

server
Display content based on how a series of questions are answered
Asked by Mike Deninno:

We would like to implement a "wizard-like" page where someone would answer a series of questions and, based on those answers, we would display specific content or ship them off to a specific URL. A good example of similar functionality can be found in Google Forms and TypeForm.

For example:

Would you like to record?

Would you like to live stream?

Do you need MICs?

Do you need projection?

And then, if they said yes to one or more questions, confluence would display the instructions for each of those use-cases.

In the end, the logic is much more complicated than that, but looking for this type of functionality. Is this possible?


Answers:
author: Daniel Eads
body: Hey Mike,

I looked into this some time ago and there weren't any add-ons in the Marketplace that provided this kind of functionality. What we ended up doing in that particular situation was embedding a [Zingtree](https://zingtree.com/) form into Confluence (just using the HTML macro). The ends of the tree took you to the Confluence page relevant for the scenario that had been walked through.

There are other decision tree software choices out there to take a look at. The big thing is that you'll probably want something that's easy to embed (using the HTML macro) so you can do work around it in Confluence.

Best of luck and I'm sure people will be appreciative of your work to narrow down their needs!

Cheers,  
Daniel

comments: author: Mike Deninno
body: Thanks so much Daniel! We'll look into Zingtree :)
Posting of Decision Logs in a Slack channel
Asked by Sam Hoover:

Departments and Teams are finding Decision Logs useful, and are requesting that we post them in a given Slack channel to raise awareness across the organization. I've installed a Slack for Confluence Server add-on (we actually have Data Center), and it has many checkboxes for automatically posting to a given channel for a new page, page update, Blog post, Blog updates, Comments created or updated, and also Notifications for Questions and Answers for Confluence.

All of this is great, and it doesn't address our current need. Is there a Slack add-on or integration anyone is aware of to address our request?

Thank you,

Sam Hoover


Answers:
author: Diego
body: Hello there Sam, thanks for sharing your question with us!  
Checking the documentation of **Slack for Confluence**, I was not able to find a setting that would allow users to receive an excerpt of the content recently created:

**[Slack for Confluence \| Documentation](https://codefortynine.com/slack-for-confluence/#Documentation)**

**[Slack for Confluence \| Atlassian Marketplace](https://marketplace.atlassian.com/apps/1215055/slack-for-confluence?hosting=server&tab=support)**

However looking into another plugin called **Slack Connector for Confluence Server** , it seems that this specific add-on has the capability to send such excerpt. According to the documentation, this could be set using the **\<contentBody\> key**:

**[Slack connector for Confluence server \| Documentation](https://jsoftconnector.atlassian.net/wiki/spaces/JS/pages/17203225/Confluence+message+format)**

**[Slack connector for Confluence server \| Atlassian Marketplace](https://marketplace.atlassian.com/apps/1215055/slack-for-confluence?hosting=server&tab=support)**

The feature that the second plugin provides might be what your user base need. Let us know if this sheds some light in your objective!


Tags: atl-int

atlassian-marketplace

confluence-server

data-center

enterprise

integration

server

slack
Search and replace a whole page tree - export XML, modify in Word, import XML
Asked by Patrick O_Connell:

Hello,

Technical writer on the job for about a month and a half. I had the interesting experience of my first face-to-face sit-down with my manager, yesterday.

I reiterated a couple of my key frustrations with Confluence, one of them being not being able to do a search-and-replace in more than one page at a time. Across a space might be too global; across a page tree would be a good fit.

But, of course, "Hey, you wanna do THAT? Buy the plug-in!" I'd like the CSS Stylesheet macro, and the Bob Swift CLI. This is an incredible company in a lot of great ways, but they're gun-shy about plug-ins, and I completely understand. Cost. Maintenance. Possible disruption of what works now.

He had an interesting idea: Export the target page tree to XML, do the search-and-replace in Word (or, I think, any plaintext editor could work), then re-import.

Has anyone actually tried this, though? If so, were you successful? Not? Some of both? Trials and tribulations?

Thank you,  
Pat O'Connell  
Montreal


Answers:
author: Shannon S
body: Hi Pat,

I haven't personally done this, but I know it's possible, but unsupported.

* An example of how to do that is available from [How to Copy or Rename a Space](https://confluence.atlassian.com/confkb/how-to-copy-or-rename-a-space-in-confluence-169578.html).

I wouldn't recommend doing it in Word, but a plain text editor would be fine to use.

Of course, make sure to have a backup and do let us know how it goes or if you have any questions. If you want to test it on your own instance separate from your company's you could setup a Confluence instance for testing using an Evaluation license.

Regards,

Shannon


Tags: atlassian-marketplace

confluence-server

server
Next Enterprise Release?
Asked by L. Sheppard:

Is there a timeframe for when the next Enterprise Release is coming? The documentation I can find says that Atlassian will designate a feature release as an Enterprise release, at least every 12 months. And I think the 6.6 release was last Dec/Jan.

I'm asking because it's critical that we upgrade our instance of Confluence because we're experiencing bad performance issues. But, if there's a new Enterprise Release coming we might be able to wait for that. I'd hate to upgrade and a week later have a new Enterprise release come out.

thanks,

-Laura


Answers:
author: barnesy
body: **Confluence 6.13 will be our next Enterprise release line**

Check out the [release notes](https://confluence.atlassian.com/doc/confluence-release-notes-327.html) page to see when it is available, which will be very ;) soon.

We'll give 6.13 the Enterprise release stamp of approval early in the new year, so start planning your upgrade now. Keep an eye on the release notes page for the announcement.

Whether you choose an Enterprise release or a standard release, always remember to grab the most recent bug fix version to make sure Confluence is the best it can be.

comments: author: L. Sheppard
body: OK, thanks much for the info!


author: L. Sheppard
body: Hi, checking in again about when the "stamp of approval" will come? Wondering if that will be in the next few weeks or if it's farther out than that? thanks.


author: Christian B?r
body: Hi [@barnesy](/t5/user/viewprofilepage/user-id/502198) ,  

its February the 28, 2019  

6.14 is out and 6.6 ist still marked as the current enterprise release according to <https://confluence.atlassian.com/enterprise/atlassian-enterprise-releases-948227420.html>  

Any answers or hints?  

Cheers, Christian


author: LarryBrock
body: There is a rumor that a new Confluence Enterprise release is coming soon but "soon" is a relative term and I have no idea what that means. Hopefully one of the Atlassians who hangs around here can give you some guidance.

Cheers,  
\~\~Larry Brock


author: Ada Chen
body: Hi [@L. Sheppard](/t5/user/viewprofilepage/user-id/1139507) , [@Christian B?r](/t5/user/viewprofilepage/user-id/1160639) and [@LarryBrock](/t5/user/viewprofilepage/user-id/463966) - Thanks for your patience!

The release notes have been updated, and Confluence 6.13 is our latest Enterprise Release: <https://confluence.atlassian.com/doc/confluence-6-13-release-notes-959288785.html>

Please refer to this change log for a roll-up of changes since 6.6: <https://confluence.atlassian.com/doc/confluence-6-13-enterprise-release-change-log-959288815.html>


Tags: atlassian-support
Can I re-install Confluence with the same license?
Asked by Aaron McKinstry:

If I uninstall an existing Confluence installation (registered with some license A), can I then reinstall using the same license?

I'm asking because something went wrong in the installation. I have a fix, but it requires re-installing Confluence.


Answers:
author: LarryBrock
body: Hello [@Aaron McKinstry](/t5/user/viewprofilepage/user-id/2183350)!

Yes, you can reuse the license on a re-install. Please post if you have any follow-up questions - happy to help!

\~\~Larry Brock

PS. If this answer is satisfactory, please remember to click the "Accept Answer" button.


Tags: confluence-server

server
Removing a File List from a Page
Asked by carolyn Oakes:

I accidentally created a file list in one of my pages and am now unable to delete it.


Answers:
author: Senthilkumar
body: How to delete one version of file, in a list of file.

I am not able to delete it Separately, i see the option to delete all the files .

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


author: Sreenivasaraju P
body: Please check whether you have delete permission or not.

Deleting file list is same as delete page. Delete button is available under Tools menu of the page/file lsit
How can I find my space admin?
Asked by Rob Martin:

I have a new phone, and my organization has mandatory 2-factor auth. The only info I can find for setting up a new phone with Google Authenticator (or the others) is to turn off 2-factor auth, and re-enable it for a new phone. However at my organization this is not possible, and so it suggests to follow up with your site admin. I'm not sure how to find who that is.


Answers:
author: Mikael Sandberg
body: Hi Rob,

Welcome to the Atlassian Community.

The site admin is someone in your organization that have site admin permissions, most likely the person/group that maintains all your Atlassian tools and gave you access to Confluence.

comments: author: Rob Martin
body: So is the only way to find this through informal communication channels? or is there a way to see this via Confluence directly?


author: Mikael Sandberg
body: Unless your Confluence admin/Site admin have made that information available on a page on your instance, then yes, your only way to find it is through internal communication channels.

The only thing you can find in Confluence by default is who is the space admin by clicking Spaces in the Confluence sidebar, then choose the Space Details icon beside a space.


Tags: authentication

cloud

confluence-administration
When I start Confluence only the HTML is displayed.
Asked by Matthew Hayward:

I just installed Confluence 30 day trial. I successfully installed the application but when I start it I do not get the GUI, I only get text.![Confluence Page.PNG](/t5/image/serverpage/image-id/38837i1194938929BFA862/image-size/large?v=v2&px=999 "Confluence Page.PNG")


Answers:
author: Shannon S
body: Hi Matthew,

Could you let me know your Confluence, database, and Java versions?

Are you able to replicate this problem on several computers and browsers?

Are you behind a proxy or firewall?

What error messages do you see in the Confluence server logs and the Developer Console of your browser?

Thank you,

Shannon


Tags: confluence-server

server