youngmon/atlassian-qna huggingface dataset:
Is it possible to update content page from Confluence plugin
Asked by Florian Maupas:

Hi,

Is it possible to add/update content to a page from the server side of a plugin ?

Our use-case is that we have a plugin into the banner info, and we would like to make its content exportable in PDF/Word. To do this, we thought about adding some macro from the server side of the plugin to content of the page ( and if it is already there, then just skipped this process).

I was not able to confirm if this action is actually feasible.

Would someone know ? If so, would you have a code snippet ?

Thanks in advance,

Florian


Answers:
author: Florian Maupas
body: Well in case anyone face such concern, I ended up using the rest API from the client-side to update the page.

Note: The PDF and Word export are seriously lacking of hook to properly interact with them. We shouldn't have to update the content of a page to configure some export....


Tags: app
Rename "Blog" for just one particular space
Asked by Ryuhei Nose:

Hi,

Is it possible to change the title "Blog" to something else just for one space in particular?

Aware that you can change this globally by modifying ConfluenceActionSupport.properties but just wanted to update the title for one space in particular.

Thanks!


Answers:
author: Manuela Schwendener
body: We would use that, too.

comments: author: scott_vanwagenen
body: Seems like a no brainer. We use the blog feature for publishing project updates and news to customers without having to give them access to any other area in confluence. It's a very nice way to compartmentalize


author: Boris Berenberg - Atlas Authority
body: Not as far as I know. One way would be to use a JS hack, but that's not a great path to start down.
Backup failing with all-delete-orphan
Asked by IT MayaHTT:

Hello,

We are facing an issue when trying to make an Export backup of our Confluence instance.

Running 6.2.3.

It fails after a minute with the following error:

javax.servlet.error.exception: org.springframework.orm.hibernate.HibernateSystemException: A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance: com.atlassian.confluence.core.ContentEntityObject.contentProperties; nested exception is net.sf.hibernate.HibernateException: A collection with cascade="all-delete-orphan" was no longer referenced by the owning entity instance: com.atlassian.confluence.core.ContentEntityObject.contentProperties

This comes along with:

org.hibernate.ObjectNotFoundException: No row with the given identifier exists: \[com.atlassian.confluence.core.ContentEntityObject#8880792\]

Thanks in advance, swimming in the dark here :(

Regards,

Jonathan


Answers:
author: Ibrahim Farhan
body: Hello Jonathan,

I am facing the same problem.

is this problem solved?

Best regards,

Ibrahim

comments: author: IT MayaHTT
body: Hi Ibrahim,

If I remember correctly, I ended up taking a full MySQL database backup, drop it, create a new one and restoring the backup.

Also, I migrated to latest Confuence version which has some useful requirements on MySQL database configuration.

Regards,

Jonathan


author: IT MayaHTT
body: Hi Boris,

Thank you for your reply.

I just tried disabling all plugins and it keeps failing with the same error.

We use a mysql database. If it can help here is the property used in confluence.cfg.xml:

\<property name="hibernate.connection.url"\>jdbc:mysql://localhost/confluence?sessionVariables=storage_engine%3DInnoDB\</property\>

Regards,

Jonathan


author: Boris Berenberg - Atlas Authority
body: Looks like the wrong method is being user per <https://docs.atlassian.com/atlassian-confluence/5.7.6/com/atlassian/confluence/core/ContentEntityObject.html>

I would try disabling plugins to see if maybe something is screwed there. Which DB engine are you using?

comments: author: IT MayaHTT
body: Hi Boris,

Thank you for your reply.

I just tried disabling all plugins and it keeps failing with the same error.

We use a mysql database. If it can help here is the property used in confluence.cfg.xml:

\<property name="hibernate.connection.url"\>jdbc:mysql://localhost/confluence?sessionVariables=storage_engine%3DInnoDB\</property\>

Regards,

Jonathan
JIRA filter no longer works in Confluence
Asked by Mao Nuon:

Embedded JIRA filter in Confluence no longer. I reported this issue over six months!


Answers:
author: Shannon S
body: Mao,

When you say the Jira issues macro is no longer working, can you let me know the exact behavior you're experiencing?

Please also let me know where you reported it previously; I wasn't able to find another Community post from you.

Regards,

Shannon


Tags: jira
Can a JIRA Issue link to a confluence page with an excel file?
Asked by Rena Mack:

I did read the community blog, but could not understand. Here is the use case:

1. Create a JIRA with a link to a Confluence Page

2. Confluence Page has an Excel.

3. People on the JIRA Issue with click on Confluence link to go to Confluence to update Excel.

Plus I am using Firefox Quantum, where I read the Office Plugin (?) is not working.

Thank you....Rena


Answers:
author: Thomas Deiler
body: Dear [@Rena Mack](/t5/user/viewprofilepage/user-id/1180148),

point 1 to 3 is pretty fine - that works as designed by Atlassian. The issue with the Office Plugin (via WebDAV) and your Firefox Q I cannot answer.

At least the users could download the Excel file, edit and upload again. This would create a news version of the document for versioning in the attachments. Not pretty comfortable but it will work.

So long

Thomas

comments: author: Rena Mack
body: Thank and terrific. Can you point me to the documentation that states how?


author: Thomas Deiler
body: Dear [@Rena Mack](/t5/user/viewprofilepage/user-id/1180148),

this is quiet simple. A user downloads the excel file either by clicking on it, while in the attachment view of a page, or while clicking on a link to the attachment within the page (that link must have somebody created before).

Then the user can download the file locally and edit.

When done, the user has to got back to the attachment view of the page and upload (or simply drag and drop) the modified file without changing it's name.

Confluence recognizes this and starts versioning your document. You can expand the attachment entry and now see 'Version 1', 'Version 2 (current)'.

That's all!

So long

Thomas


author: Rena Mack
body: [@Thomas Deiler](/t5/user/viewprofilepage/user-id/484715)thank you. We may be talking past each other.

The question is, how do I put into a JIRA ticket a link to a confluence page or object?


author: Thomas Deiler
body: Dear [@Rena Mack](/t5/user/viewprofilepage/user-id/1180148),

when Jira and Confluence are already linked via an ++Application Link++, this is also easy.

Select one issue and choose "Link Issue" from the issue menu. Now a Confluence tab should be visible. There you can even search for pages and than insert the link.

Where you looking for this?

So long

Thomas


author: Rena Mack
body: [@Thomas Deiler](/t5/user/viewprofilepage/user-id/484715)yes, 99% we are on the same page. I can't get into Confluence at the moment, probably why I cannot see it. I see that Application Link. No links at this time, but I'll work on it. Thank you very much.


author: Thomas Deiler
body: Dear [@Rena Mack](/t5/user/viewprofilepage/user-id/1180148),

could you solve your issue meanwhile? Do you need more help?

So long

Thomas


author: Rena Mack
body: I did check the 'check' thinking that meant resolved. Resolved until I find out an issue.
Creating a "job exchange" using confluence
Asked by Lauren Hanyok:

Does anyone have experience with creating a "job board" or "sub exchange" using confluence? To deal with the ebb and flow of work within teams, we often have to find work in other teams temporarily. We are already using confluence and would love to set up a "work exchange" or "job board" where a team lead can post an upcoming job they need help with, including tags for skills needed, with POC info. All employees should be able to view and search through listings, but the team leads would be the ones with access and authority to post/take down filled postings.

Similarly, another team sometimes needs to ask for substitutes for classes, and we'd like to employ this same idea for them, with the added functionality of receiving a notification when a "sub request" is posted to alert them, then they can accept the sub request, which would automatically remove the listing and alert the poster that their sub request has been accepted.

I'd love to hear your thoughts on how this might be implemented in confluence. I'm currently drafting up how to do this as a stand alone website, but if we can use confluence since we're already paying for it, that would be WAY better.

Thanks!


Answers:
author: Vanessa Diaz
body: I'm looking to do this exact same thing. Any info would be super helpful!
Why do all users except the admin user get page creation email notifications, and how to disable?
Asked by Tanner Layton:

Whenever I create anything new in confluence all my team is being notified by email the pages created and changes. However, I am not receiving them. We all have the same profile settings so I am assuming the difference has to be that they are all general confluence-users and I am an administrator.

1. What is driving this notification?

2. How to change it?

3. Shouldn't the default be opposite? -as in admin is notified of all pages created, not regular users


Answers:
author: Tanner Layton
body: Ok, sorry for being new. I didnt understand that new users were automatically set to watching all spaces. So I need to go and have them unwatch the spaces as they dont need to be notified everytime something is created.   

This is a brand new confluence and I basically have everything default right now. I will also check the app, Notifications for Confluence.

comments: author: Max Foerster - K15t
body: You're welcome Tanner! ;) Everyone was new to Confluence at some point and notifications can be really annoying. But they are not set to watch all spaces when being a new user, that doesn't sound familiar. But glad that we could solve the problem so far. Have a look at the app if you want, I just mentioned it because you can subscribe groups of user to updates with it and sometimes people forget which subscription they created as user of the app.


author: Tanner Layton
body: Might want to look into default watching of spaces in different circumstances. These people literally got the email to make a user and then did nothing else. Then they started getting notifications everytime I created something. They made no changes and I if I managed to make them watch the spaces somehow I am completely unaware of how I could have done it.


author: Max Foerster - K15t
body: Hey Tanner,

so you checked your notification settings and "Notify on my actions" is disabled? So you won't get a notification when you create a page. But are the other users watcher of a space and maybe all content of that space? Any apps in use like Notifications for Confluence?

Best,

Max

comments: author: Tanner Layton
body: Both my team and I have the same default email settings that look like this: ![Screen Shot 2018-01-31 at 1.41.51 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/13719i70F52242D0B40165/image-size/large?v=v2&px=999 "Screen Shot 2018-01-31 at 1.41.51 PM.png")

It's just odd because they all receive email notifications on every new page I create. However, I don't get them when they create pages.


author: Max Foerster - K15t
body: Hey Tanner, again, have you checked what you and the other users are watching? Right now it simply sounds like they are watchers of a space and all of its content and you are not.


Tags: email

notification

watcher
How to detect confluence edit mode in code
Asked by rambabu patina:

I want to detect the confluence page mode whether EDIT or VIEW in my confluence macro plugin code. Help me to find out the way. Thanks.


Answers:
author: Nic Brough -Adaptavist-
body: This sounds like a very broken requirement. I can't think of a single useful reason to do this, and it's useless anyway.

When a macro is in "view", your code provides the users with functions. When a macro is in edit mode, it's actually just a display for capturing the parameters, there's no code running when it's on the page. It will run in the preview, but what's the point in doing that?

comments: author: rambabu patina
body: Thanks Nic for your quick response.

I am trying to develop a macro for confluence. It has one parameter (i.e any non-admin group).

When user selects the group he should be able to join to the selected group.

So this functionality I want to provide through macro insert/preview while editing the page and not on the page view. If I can detect the page edit then I will use the condition in macro execute() method to execute action on page edit only.


author: Michael Eskin
body: Gliffy seems to be able to render previews in edit mode without image markup in their macro body. Any idea how they accomplish this? Their macro rich-text bodies are empty if you examine the page storage format...
How do I directly use a link in a Shared Link page?
Asked by shooshosha:

I've created a few Shared Links with the default template. I would like to link to the site itself from another page. When I link to the Shared Link, it links to the *page* adding another step to click the link once directed to the page.

Is there a way I can link to the site directly when it's defined in the Shared Link page?

It would be nice if there was a syntax or option to create a link so that someone clicks it and goes directly to the site or to the page (when appropriate).


Answers:
author: AnnWorley
body: Hi Kevin,

If you would like to link directly to an external web site on the sidebar you may add an external link as described in [Configure the sidebar links](https://confluence.atlassian.com/doc/configure-the-sidebar-317194694.html#ConfiguretheSidebar-Configurethesidebarlinks).

On a page, just use the \[ keyboard shortcut to insert a link:

![Screen Shot 2018-02-07 at 10.52.19 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/14271i2340488C883AA55F/image-dimensions/234x115?v=v2 "Screen Shot 2018-02-07 at 10.52.19 AM.png")

I hope that works for your case, if not, let us know more and maybe someone on the Community can come up with a solution.

Cheers,

Ann


Tags: link

share
Pasting ONE item into multiple rows/columns
Asked by Sean McManus:

Can one select multiple rows in a column (or vie versa) and paste once into ALL the rows?   

Example. I have a macro (in this case the Handy Status Macro) and I want to put in in all the rows under the column status. Do I really have to paste it into each row?!?!?! really sucks when i have 500+ rows....

Doing this in Confluence 6.5 DataCenter.


Answers:
author: AnnWorley
body: That's a good idea. I tested to see if I could find a workaround, like in Excel when you pull the corner of the cell down and it copies the value. I was not able to find such a capability in Confluence, so I opened a suggestion for our development team: [As an user, would like to update multiple cells simultaneously in a table](https://jira.atlassian.com/browse/CONFSERVER-54886)

The suggestion is public, so you can vote, comment and watch it to make your voice heard and see if/when the development team implements it.

comments: author: Sean McManus
body: Thanks!


author: Sean McManus
body: Oh and tell Morgan "Hi!" for me.


author: AnnWorley
body: If it's the Morgan who works in support in the Austin office, I sure will! :)


author: RJ Confluence Admins
body: That would be Nice . LOL


author: Declan Keane
body: I love Confluence, but I fail to win people over to using the app due to it's sheet limitations compared to XLS.

Atlassian really need to collaborate with Office Devs or at least bring some rich table features to take it to the next level IMHO.


author: Pamela Wyatt
body: Agree. This would save a lot of time


author: garth.mcdonald
body: Agreed, using tables in Confluence eats time.


author: Satyadev_Aluri
body: Yes, please implement this feature as soon as possible. I will use it regularly.


author: Devarasetty, Ravi Kiran
body: Agreed.


author: Thomas Snijder
body: This is not built-in to Confluence, but there is a work-around:

1. Create a new Google Sheet

2. Paste the data, Google Sheets automatically structures it per row.

3. Copy the data from Google Sheets

4. Paste in Confluence, the data will now be structured per row!


Tags: atl-gruland

jira
Macro copy not working in IE.
Asked by Andrew Williams:

We have a Page Properties Macro that adds Metadata fields to documents; the fields add required elements we use to track and control Ownership, Department, Review Dates, etc.

Previously we could copy the PPM from one document to another (we have a backlog of documents that need the macro applied). The copy is no longer working in IE - that is, we can't copy the entire Macro frame and paste it into another document. The copy is working in Chrome, but not in IE (our corporate standard browser).

Is this IE going wonky or Confluence?


Answers:
author: Shannon S
body: Andrew,

Can you tell us your IE version as well as your Confluence version? Does this work in Edge?

Regards,  
Shannon

comments: author: Andrew Williams
body: IE Version 11.0.9600

Update Version 11.0.50

Confluence is Cloud version, I don't know anything more than that.

Edge is not installed on our Win 7 machines. I have a VM test bed Win 10 with Edge and I just did some minor Confluence testing:

- Click on left-hand page list won't open or display anything in the right-hand pane (spinning circle).

- I could open a new document, but the copy-paste doesn't work, as in IE.

Confluence is pretty much dead in this VM instance using Edge. I'd previously tested ServiceNow and some other apps successfully.


author: Shannon S
body: Hi Andrew,

Can you confirm that Compatibility Mode is turned **off** IE?

I just tested in my Confluence Cloud instance, but I wasn't able to replicate the problem and can copy a Page Properties Macro from one page to another.

Does the issue occur with any macro or only the Page Properties one specifically?

Regards,

Shannon


author: Andrew Williams
body: I turned it off, but there was no impact.

Are you sure your copy got the Macro AND contents, or just the contents? Because I can copy the table inside the PPM - but not the actual PPM + Contents.

And it's not just the PPM macro: With IE, I cannot select / copy any macro and paste it elsewhere. (Tried to attach pic but it didn't work?)


author: Shannon S
body: Hi Andrew,

I can confirm that the entire contents of the macro got copied over, and I'm able to copy and paste other macros. However, I'm running IE 11 in Parallels on macOS, so I don't know if it makes a difference.

I have asked around the Cloud team if anyone has reported this, and I wasn't able to find any support tickets on the issue, but it doesn't mean that other users have not run into the issue.

Hopefully by your thread reporting the issue, if other users run into the same problem, we will find out here. Then we will be better able to replicate the issue and report it as a bug if that is the case.

Regards,

Shannon
Finding inactive spaces in Confluence
Asked by Srikanth Kola:

I found the below articles where you can find inactive spaces by last modified date. However a user may still use a spaces (just viewing) with out updating any contend. Any ideas on how to write a query with "last viewed date" ?


Answers:
author: Srikanth Kola
body: > Select \* from \[Confluence\].\[dbo\].\[SPACES\] where \[SPACEKEY\] not in (SELECT V.\[SPACE_KEY\] FROM \[Confluence\].\[dbo\].\[AO_92296B_AORECENTLY_VIEWED\] V, \[Confluence\].\[dbo\].\[SPACES\] S WHERE (V.\[SPACE_KEY\] = S.\[SPACEKEY\] AND S.\[SPACETYPE\] = 'global') GROUP BY V.\[SPACE_KEY\]) AND \[SPACETYPE\] = 'global' order by \[LASTMODDATE\] ASC

comments: author: Mason Crouse
body: Hi Srikanth, probably a stupid question, but where do I run this query?


author: Tran Tien dung
body: The query above is incorrect. See this [link](https://community.atlassian.com/t5/Confluence-questions/Check-the-last-time-a-space-was-modified/qaq-p/907926#:~:text=The%20easiest%20way%20to%20determine,for%20example%20Reporting%20for%20Confluence.) for solution


author: Julia Nunes Pedrosa
body: Hey Srikanth, can you help me? What version of Confluence are you using??


author: AnnWorley
body: I do not think the database stores a record for each time a page is viewed, however, there are other options described on this page: [How to Enable User Access Logging](https://confluence.atlassian.com/confkb/how-to-enable-user-access-logging-182943.html)

Other than access logging the article has options for Google Analytics and the Tomcat Valve Component access log.

I look forward to hearing whether any of these work for your case.

comments: author: Srikanth Kola
body: When you go to Activity option in any space in Confluence you can see Activity of Viewing. Doesn't mean its being stored somewhere ?


author: Nic Brough -Adaptavist-
body: Yes, in a cache, which goes away after a while.


author: AnnWorley
body: The activity stream depends on the content index on the file system: [Content Index Administration](https://confluence.atlassian.com/doc/content-index-administration-148844.html):
> The content index, also called the search index, supports Confluence's search functionality. It is also used for a number of related functions such as building email threads in the mail archive, the space activity feature, and lists of recently-updated content

Also, the activity stream shows changes and not views.


author: Srikanth Kola
body: I user below query to get the results, thanks for you assistance

Select \* from \[Confluence\].\[dbo\].\[SPACES\] where \[SPACEKEY\] not in (SELECT V.\[SPACE_KEY\] FROM \[Confluence\].\[dbo\].\[AO_92296B_AORECENTLY_VIEWED\] V, \[Confluence\].\[dbo\].\[SPACES\] S WHERE (V.\[SPACE_KEY\] = S.\[SPACEKEY\] AND S.\[SPACETYPE\] = 'global') GROUP BY V.\[SPACE_KEY\]) AND \[SPACETYPE\] = 'global' order by \[LASTMODDATE\] ASC