youngmon/atlassian-qna huggingface dataset:
Recovering accidentally deleted user macro
Asked by Mircea Marin:

Hi,

I accidentally deleted a user macro - instead of clicking on Edit, I clicked on Delete :(

Is there a way to recover the deleted user macro? I have daily backups of the whole installation of Confluence.

Thank you!


Answers:
author: Mircea Marin
body: Ok, I finally found the solution so here it is.

This requires that you have a backup of the **confluence database** from before deleting the macro. In my case, the database is in postgreSQL so I will use that as an example.

1. Obtain the backup file: **confluence_backup.sql**
2. On a local postgreSQL server create a new **empty database** called **confluence**
3. Import the backup file to the newly created database as follows:
4. Right click on the empty **confluence database** and click**Restore...**
5. Select the backup file
6. Press **Restore**
7. Browse in the tree to **confluence \> Schemas \> public \> Tables \> bandana**
8. Right click on the table **bandana** and select **View Data \> View Filtered Rows**
9. Enter the following query: **bandanakey = 'atlassian.confluence.user.macros'**
10. Click on the **Value** cell (visible text should be \<map\>), select all the text and copy to a text editor.

Now you have multiple options. You could either look for the lost macro in the file, select the whole of it (everything between \<entry\> and \</entry\> inclusive the two tags) and copy it to your active confluence database (you can connect to it just like you did for the local one) or you could copy the whole content and replace it (if you did not change anything else, for example).

After that save the database and restart confluence. The macro will now be there again!


author: David Pressley
body: I guess I don't understand why it wouldn't gracefully prompt you for confirmation like nearly every other Confluence 'delete' action?

comments: author: Davin Studer
body: I have created a free app for user macros that fixes a bunch of missing pieces with user macros. One feature is that is gives you a delete confirmation. Also, if allows you to keep history of user macro edits so that even if you do accidentally delete it you can get it back with the history if you have that feature turned on.

<https://marketplace.atlassian.com/apps/1218853/enhanced-user-macro-editor>


Tags: confluence-administration
Setting Confluence's "Jira issues" macro to auto-refresh
Asked by J?rgen Starek:

I have a request from one of our user groups who need an auto-refresh functionality for the lists of Jira issues that Confluence's "Jira issues" macro displays. Is there any way to configure either the macro or the Confluence page it is embedded in to automatically reload the status of issues after a set time? Or is there even a possibility to have these updates in real time?

Many thanks for all hints!


Answers:
author: Rodrigo Girardi Adami
body: Hello Jurgen,

There is a bug in Confluence for this behavior:

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

I recommend to vote and comment into it to increase the popularity and priority to be fixed.

Cheers,

Rodrigo


author: Josch Bencke
body: Oaehmm .... AFAIK, the search macro is executed each time the page is displayed. When a new ticket matches the list or the status or title of an issue changes, the next user calling the wiki page should see it changed.(Works in my Conf 4.3 Setup, just tested it).

So that might be a caching issue with your client or proxy. Or do you mean a page reload - that would be a page-refresh of the complete wikipage, not just the JIRA macro. For this, you would have to include a META Tag in the page template - maybe there is a plugin or confluence setting out there for this, or you just manually include this into the page template header.

comments: author: J?rgen Starek
body: Thanks for your reply. I was hoping to get by without having to insert a meta refresh-tag, as that would make working with normal pages tedious or sometimes impossible (think of entering comments). -- The request was aimed at a workgroup leader having a page open for a long time and nonetheless getting status updates from the Jira issues macro in near real time. We are using Jira not only for software development, but also for project management, so it's common for lots of Tasks to change their status every hour or so.


author: Josch Bencke
body: hmm - checkout the RSS Feed for this. Sounds like that could solve the problem, e.g. As applet running on his desktop background


Tags: jira

macro
Closure of Confluence tasks by email
Asked by S?bastien Maisonneuve:

Can we close a Confluence task by email, for example by answering to the task notification or clicking on a link?

I don't find any solution to do that. If it's impossible, is there a development planned in the next version for that?

Regards,

S?bastien


Answers:
author: Julia Levcovets
body: Hi Sebastien,

if you are talking about those tasks - [](http://blogs.atlassian.com/2014/04/introducing-confluence-5-5-tasks-work/)<http://blogs.atlassian.com/2014/04/introducing-confluence-5-5-tasks-work/> currently there isn't such a plugin. There is some possibility of making some custom solution, but without guarantees unfortunalty.

Regards
Special fields to a template or page in Confluence - how to?
Asked by Rumceisz:

Hi,

we are just working on creating a template which serves reporting goals for project leads. There is a table in the page with several fields to fill. Some fields should be a date picker called "Planned prtoject start", the next field will be "Duration" where you add the duration of the project in months. Is it possible to get automatically the Project end date in a 3rd field. And is there a macro which get a date picker as in JIRA?

In another field the users need to add a number which shows the quality of a project (0-5 scale). It would awesome if there would be another field which change its background colour according to the scale. E.g. if the project health is 1 then the background colour will be red, if the project health is 5 then colour will be green. It's a conditonal formatting I guess. Is it psosible somehow?

Thanks,  
Rumi


Answers:
author: Earl McCutcheon
body: I believe what you are trying to accomplish can be done using the JIRA Issues Macro ( [](https://confluence.atlassian.com/display/DOC/JIRA+Issues+Macro)<https://confluence.atlassian.com/display/DOC/JIRA+Issues+Macro>). You can set the entire table from the Jira Issue Macro, or select to use a single table from an issue into the new table you are setting up.  

Exe:   
Insert Jira issue macro to your table  
Set JQL Query to locate desired issue / project ( Project = "Demonstration Project" And Key = DEMO-7 )  
Under Display Options  
Select table  
Maximum issues 1  
Columns to display remove all except the Due Date for desired "Project end date"  

As for conditional formatting I have located a few other answers posts addressing this:  
<https://answers.atlassian.com/questions/3562/conditional-formatting-in-confluence>  
<https://answers.atlassian.com/questions/103734/conditional-formatting-for-table-cells-in-wiki-markup-or-other-method>  

Otherwise you will have to look int third party plugins, I have located a plugin that looks like it has what you are looking for in this regard as well as the desired formatting you are looking for from above. Check out Advanced Tables For Conflunece plugin, as well as searching the marketplace for any other plugin that will do the trick for you.


Tags: confluence-administration
Page properties report Macro-Status filter
Asked by Agnieszka Spiteri:

Hi,

I have a page created using Page Properties Report macro.The page is showing different items, ones that are already done with status "Done", the other with status planning etc.

I am looking for a solution of automaticaly moving all items marked with status "Done", to the table which I would create underneath. ISshere a known way of doing this action?

The other type of solution would have been Table Filter, but this doesnt seem to be working with the Page properties report macro.

Thank you in advance for answering this question.

Best regards,

Agnieszka S


Answers:
author: mark_jucebox
body: If I could somehow vote for this feature I would  

Seems a shame you can search on normal page properties but then cant search for a particular status field

Trying to avoid using labels as it just makes more work and is counter to what the platforms are trying to achieve


author: Andrey Khaneev _StiltSoft_
body: Hi Agenieszka,

Please, try the latest 2.2.8 version of Table Filter. It works now with Page Properties macro and almost all other macros.


author: Maarten Cautreels
body: Hi Agenieszka,

Unfortunatly, out of the box this isn't possible and I don't really know any other plugins than the Table Plugin that might be able to do this.

BUT, you could give those pages which have a status 'Done' another label and add a second table that'll only show the items with that label. So basically changing the status of a document to 'Done' adds a little more work cause you'll need to change the label as well.

Another easier solution would be to add sorting on that column (which is something you can configure in the 'Page Properties Report' macro) and sort in reverse. But that'll only work if don't have any statusses that start with the letters 'a', 'b', 'c' or 'd'.

Best of luck,

Maarten


author: Agnieszka Spiteri
body: The below is a screenshot of how the Page properties report looks like. I would like to have the table undernath showing items marked with green status in table underneath.

![](../../upfiles/Releases_status_filter_1.PNG)


Tags: cloud

confluence-cloud
How can I copy images from one page to another?
Asked by Steffen Heller:

Hi,

one of my collegues created a new page by copy \& pasting contents from **two** other pages. Afterwards the problem was that the images in the new page disappeared as soon as he deleted the old pages.

I understand why this happens:

The images are still attached to the original pages and the linking gets broken when these pages are deleted.

But, knowing this, I still can't think of a better way of doing this.

1. I thought that downloading the images from the old pages, save them temporarily and then attach them to the new page would solve the problem, but that was not the case.
2. I know that instead of copy \& pasting **the content** , I could copy the whole page and then rename and remove it to my liking. But this doesn't work for me when I copy **more than one** page.

In the end, what I did was this:

I attached the images to the new page as described in (1.) Then I went through the new page, included all the images by hand, did all the adjustment for image size, etc. once again for every picture, checked that the old and the new image were the same, deleted the old pages, went back to the new page, saw that the images had become placeholders with an error message and then deleted these placeholders.

So, the point should be clear: Is there an easier way of doing this?


Answers:
author: Stefan Kleineikenscheidt _K15t_
body: This issue has been fixed in Confluence 5.9:

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


author: Cedric_DEVAUX
body: Hi All,

I have exactly the same problem.

I copy/page images from another page to new and Confluence doesn't create new attachments but create a link form confluence source page and show the picture.

But I lost pictures when I delete the source page.

I tried with Firefox, Chrome and IE, I have the same issue.

Steffen, do you find a solution?

Thank you for your help.

comments: author: Cedric_DEVAUX
body: No idea?


author: Davin Studer
body: Try using the WebDAV plugin for this. It lets you work with Confluence as if it were a file system which makes operations like this pretty easy and fast.


Tags: copy

image
Chrome crashing when I try to upload an image
Asked by Sue Walsh:

Trying to build a new page in Confluence Knowledge Base, and every time I try to browse to upload an image, Chrome crashes and closes. Is this a known issue? Thanks. I'm using Chrome browser v. 35.0.1916.153 on a Macbook Pro running OS 10.8.5.


Answers:
author: Sue Walsh
body: Thanks Guilherme - I identified this eventually as a Chrome issue \> updated my version of Chrome \> and now it's fixed. So issue resolved.


author: Guilherme Nedel [Atlassian]
body: Hi Sue, can you comment on the application version you have been using? Also, does the issue happens with any other web browser, or it is only related to Chrome?


Tags: cloud

confluence-cloud
Navlinks error in Confluence v5.0.3 is causing the regular Confluence Crashes!!!
Asked by SriniC:

Hi all,

We recently upgraded to v5.0.3 a month ago and the first 15 days, it was fine with no issues. After that, we started seeing the application crashes (when the below error appears in the atlassian-confluence.log file) by just being unresponsive. Unless we restart the Confluence service, the application will not be up. In fact, I see hundreds of the below entries.

Error:  
+++++++++++++++++++++++++  
2014-07-07 13:52:04,818 WARN \[Navlink Plugin Executor:thread-11\] \[consumer.menu.services.RemoteApplicationsImpl\] call Could not get capabilities for adc92de0

-b895-333d-8bc1-8034326de7e8

2014-07-07 13:52:09,689 ERROR \[Navlink Plugin Executor:thread-9\] \[sf.hibernate.util.JDBCExceptionReporter\] logExceptions Cannot get a connection, general err

or  
+++++++++++++++++++++++++

Has any of you experienced this issue? Atlassian says that it is a performance bug in the versions 5.0.x and 5.1.x.

Kindly let me know your response!!!

Thanks in advance,

Srini


Answers:
author: SriniC
body: If this is such a widely known performance bug in v5.0.x and v5.1.x, I wonder why Atlassian has not hitherto addressed this issue..

Pl. let me know if you are/were on v5.0.x and has faced/fixed this notorious Navlink error. We have followed all Atlassian's tips and suggestions, but in vain.

I am curious to see a few responses here.


Tags: navigation
Color text and add popup text
Asked by Jonathan Lake:

Hi, I'm very new to Confluence 5 and user macros, so help would be welcome.

I would like to be able to select text on a page, insert a custom macro which colors the text (preformatted green, or red, or something else), and allows help text to be added.

When the user hovers over the text, a popup would display the help text. Can this be done using a custom user macro?

Many thanks, Jon


Answers:
author: Jonathan Lake
body: So far I have this:  

## @paramtext:title=Selected text\|type=string\|required=true\|desc=Enter/paste selected text here...  

## @paramtip:title=Tip\|type=string\|required=true\|desc=Enter the tip here...  

## @paramcolor:title=Color\|type=string\|required=true\|default=#27AD28\|desc=Enter a color here...  

\<a style="text-decoration:none; border-bottom:1px dotted; border-bottom-color:$paramcolor" title="$paramtip"\>$paramtext\</a\>  

What I'm not able to do is to pass the selected text straight into the macro. Imstead I have to copy and paste, then add the tip. Is there an easier way?


Tags: user-macro
Confluence: disable refresh on JIRA issues table?
Asked by Simone Longoni:

Hi!

Within a Confluence page, I would like to take a snapshot of JIRA issues matching a given filter (at the time of editing) disabling any unintended refresh (automatic or manual, e.g. via "refresh" button) unless in Edit mode of the page.

I am basically creating a Fault Review Board report page in which I would like to list the issues at the time of the meeting, without having the list updated at each view/unintentionally.

Is there a way to disable the Refresh (or any easy workaround to achieve the objective)?

Thanks a lot!!!

Simone


Answers:
author: Guilherme Nedel [Atlassian]
body: Hello Simone, have you considered using the [export feature](https://confluence.atlassian.com/display/JIRA/Working+with+Search+Result+Data) from the Issue Navigator in JIRA? There is a number of compatible formats, from XML to [Excel](https://confluence.atlassian.com/display/JIRA/Exporting+Search+Results+to+Microsoft+Excel) and they can provide more static format for the results when added to a Confluence page.


Tags: jira
Batch Demote/Promote headings?
Asked by JRR:

I have a number of pages where I need to demote all the Heading 1's to Heading 2, and the Heading 2's to 3. Is there a more efficient way to do this than manually changing the paragraph formatting for each one? Thank you!


Answers:
author: Deividi Luvison
body: Hey JRR,

There's a little work around to achieve that:

1. Install [Confluence Source Editor](https://marketplace.atlassian.com/plugins/com.atlassian.confluence.plugins.editor.confluence-source-editor) plugin.
2. Go to the Page you want to do that and click in Edit.
3. Next to the magnefier icon you will see a new button "\<\>", click on it.

That will open the page in the source editor mode, once your page is open you will notice that the header syntax is the following:

\<h1\>Heading 1\</h1\>

\<p\>some text\</p\>

\<h2\>Heading 2\</h2\>

\<p\>some text\</p\>

\<h3\>Heading 3\</h3\>

\<p\>some text\</p\>

All that you will need to do is to change the h1 to h2 and h2 to h3:

\<h2\>Heading 1\</h2\>

\<p\>some text\</p\>

\<h3\>Heading 2\</h3\>

\<p\>some text\</p\>

\<h3\>Heading 3\</h3\>

\<p\>some text\</p\>

Since source editor window have a find and replace all you need to do is to use that option do change all the \<h1\> to \<h2\> and do a replace all and hit save :).  
Hope it helps.  
Thanks and Regards,  
David\|Atlassian Support

comments: author: JRR
body: Thank you David/Deividi. That's good motivation for me to bug my admin to let me use the Source Editor plugin!
Log IP and Username of every failed/successful login in Confluence
Asked by Stephen Hayden:

Is that possible via [](https://confluence.atlassian.com/display/CONFKB/How+to+Enable+User+Access+Logging)<https://confluence.atlassian.com/display/CONFKB/How+to+Enable+User+Access+Logging>or some other method in Confluence?

This is a followup to [](/questions/300124/log-ip-of-login-attempts)<https://answers.atlassian.com/questions/300124/log-ip-of-login-attempts>

I'd like the full username and IP information of every login attempt/success logged.


Answers:
author: Branno
body: Stephen (wow there are three of us here),

Using the instructions at [](https://confluence.atlassian.com/display/CONFKB/How+to+Enable+User+Access+Logging)<https://confluence.atlassian.com/display/CONFKB/How+to+Enable+User+Access+Logging>will get you the IP and Username for every failed and successful login in Confluence, it will just take some parsing to figure out what is what. Below are some examples (do mind the IP address will look off, as I am performing this on a local Confluence instance on my workstation).

A failed attempt would look like:

```
2014-08-06 17:03:13,276 INFO [http-bio-8443-exec-2] [atlassian.confluence.util.AccessLogFilter] doFilter - GET https://localhost:8443/conf/login.action 253559-83584 1854 127.0.0.12014-08-06 22:03:27,780 WARN [http-bio-8443-exec-25] [atlassian.seraph.auth.DefaultAuthenticator] login login : 'sbrannen' tried to login but they do not have USE permission or weren't found. Deleting remember me cookie.
```

In this case we are looking at the first line to see a login attempt was made, and the IP address it was from. The second line will tell you what account name was used to attempt the login.

A successful attempt woud look like:

```
2014-08-06 22:04:08,668 INFO [http-bio-8443-exec-12] [atlassian.confluence.util.AccessLogFilter] doFilter - POST https://localhost:8443/conf/dologin.action 175657-3661 50 127.0.0.12014-08-06 22:04:08,708 INFO [http-bio-8443-exec-12] [atlassian.confluence.util.AccessLogFilter] doFilter sbrannen GET https://localhost:8443/conf/index.action 171714-7318 36 127.0.0.1
```

Again, the first line shows an attempt was made to login but instead this time is followed by the page accessed by this user.

I do want to note, that this is with the basic configuration explained in the above link. Further tinkering could get you more specific results.

Cheers,

Stephen Brannen \| Confluence Support

comments: author: Stephen Hayden
body: Thanks. Was just coming to close this, was surprised to see another answer :). Support said this didn't provide what I asked for and opened a feature request I believe.


author: NotTheRealStephenSifersNOPENOPENOPENOPE
body: Are you hosted or on-premsis?

If on-premsis you can pull this information straight out of the database and report within confluence.


Tags: confluence-administration
Single User Permissions for Secure Content
Asked by Dieter Loskarn:

Are there any plans to integrate single user access to secure blocks? At this time it only seems possible to set the permissions for the blocks to groups.


Answers:
author: Pepe
body: Its in our backlog. There are a few considerations that we are weighing before implementing it


Tags: addon-com.prcpo.confluence.plugins.secure-cont

confluence-administration
Character Encoding in Blueprints
Asked by Tom:

Hello there

I am creating a Blueprint in French and need some french characters for the whole thing.

For example I have set in the pom File

```
&lt;name&gt;Directive de travail&lt;/name&gt;	&lt;description&gt;Cr?er une directive de travail&lt;/description&gt;	&lt;packaging&gt;atlassian-plugin&lt;/packaging&gt;
```

On the running System it looks like this.

![](../../upfiles/07.07.png)

The pom.xml is in

```
&lt;?xml version="1.0" encoding="UTF-8"?&gt;
```

I have the same Problem with my .soy File, which takes the Text from the .properties File:

```
my.blueprint.letsgetstarted.content=Cr?er une nouvelle directive de travailmy.blueprint.form.label.title.vStatusText1=Projetmy.blueprint.form.label.title.vStatusText2=R?vision processusmy.blueprint.form.label.title.vStatusText3=R?vision COM
```

![](../../upfiles/07.07_2.png)

Is there a way to set the encoding right?

Regards T


Answers:
author: Guilherme Nedel [Atlassian]
body: Salut Tom, until Confluence 5.1 Confluence Blueprints would not work in languages other than English, as outlined in [this KB article](https://confluence.atlassian.com/display/CONFKB/Blueprints+Cannot+Be+Configured+to+Use+Non-English+Languages). Since 5.1.3 this has been addressed, we have provided compatibility with French, German, Japanese and Spanish.

Hope this helps, in case you have further queries, you may like to post to the [improvement ticket](https://jira.atlassian.com/browse/CONF-28548) in [jira.atlassian.com](http://jira.atlassian.com).

Hope this helps!


Tags: blueprint

character

encoding

language-fr

soy-templates
Date and time macro
Asked by Uththira pandi:

How to include current date and time by macro in the conflunce page? Any possiblities..?


Answers:
author: rahuldanwade
body: use the dateFormatter's formatGivenString() method to specify a format:

$action.dateFormatter.formatGivenString("dd-MMM-yyyy", $some_date)

You can use other methods .

follow API docs on it:

<https://docs.atlassian.com/atlassian-confluence/latest/com/atlassian/confluence/core/DateFormatter.html>


author: Siddheshwar mhetre
body: Hello Uththira,

Create new user macro form Confluence admin -\> User macros -\> create new macro and put the below on bottom of the Template.

```
$action.dateFormatter.formatGivenString("dd-MMM-yyyy hh:mm:ss", $content.currentDate)
```

Give the macro name. example- current-date-time. Save the macro

Inser macro in page {current-date-time}


Tags: date

macro

time
How to insert a web-item link in this section
Asked by Umair Haroon:

I am trying to add a link via web-item module to to the section highlighted in red in the image below.

Which section is this? (eg system.admin.top.navigation.bar)

![](../../upfiles/2014-07-03_14h53_48.jpg)


Answers:
author: Mirko Skramusky
body: Confirmed herewith ;)


author: Mirko Skramusky
body: Hi!

Sorry Umair, this isn't a web-section you can add more items, this four items are hard coded within the template. Maybe you can add something via JavaScript?

Best regards, Mirko

comments: author: Umair Haroon
body: Hi Mirko.

Yes I could not find the relevant section myself so needed it to be confirmed that this is the case.


author: Mirko Skramusky
body: Confirmed herewith ;)


Tags: app

jira-app-development

web-item

web-section