youngmon/atlassian-qna huggingface dataset:
No Hibernate Transaction for job webhooks.history.daily.cleanup.runner
Asked by Haube:

Hello,

we have upgraded from confluence server 7.0.3 to 7.4.0 a while ago and yesterday also to 7.4.1.

Since 7.4.0 i noticed this regular occuring exception. I wasn't able to identify the job so far. So i am asking if this might become a problem in the future or if i can ignore it safely.

Confluence is pretty much in the default settings which came with 7.0.3. and connected against a 19.6.0.0.0 Oracle Database using ojdbc8-19.7.0.0.jar

Maybe there is only the *@Transactional* Annotation Missing on the service in the code itself, but wouldn't more people come up with the problem then? The only thing i haven't done yet after the upgrades was deleting the plugin cache directories could it be related to that?

```
2020-07-14 04:22:00,004 ERROR [Caesium-1-1] [impl.schedule.caesium.JobRunnerWrapper] runJob Scheduled job webhooks.history.daily.cleanup.runner#webhooks.history.daily.cleanup.job failed to run
java.lang.IllegalStateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here
[...]
 at com.atlassian.webhooks.internal.dao.AoInvocationHistoryDao.deleteDailyCountsOlderThan(AoInvocationHistoryDao.java:116)
at com.atlassian.webhooks.internal.dao.AsyncInvocationHistoryDao.deleteDailyCountsOlderThan(AsyncInvocationHistoryDao.java:77)
at com.atlassian.webhooks.internal.history.DefaultInvocationHistoryService$DailyCleanupJobRunner.runJob(DefaultInvocationHistoryService.java:334)
at com.atlassian.confluence.impl.schedule.caesium.JobRunnerWrapper.doRunJob(JobRunnerWrapper.java:117)
[...]
2020-07-14 04:22:00,007 WARN [Caesium-1-1] [impl.schedule.caesium.JobRunnerWrapper] runJob Scheduled job webhooks.history.daily.cleanup.runner#webhooks.history.daily.cleanup.job completed unsuccessfully with response JobRunnerResponse[runOutcome=FAILED,message='IllegalStateException: No Hibernate Session bound to thread, and configuration does not allow creation of non-transactional one here']

```


Answers:
author: Anuj Sharma
body: Hi [@aprince](/t5/user/viewprofilepage/user-id/3597942) , [@Haube](/t5/user/viewprofilepage/user-id/4007990)

The above issue only occurs when the job runs automatically. The error tells us that we do have webhooks.history.daily.cleanup.job in failed (F) status but this is nothing to worry about for you and is actually a false leading indication as per the bug report:

* **[CONFSERVER-60133 -Warning on the logs even when the job Clean Temporary Directory runs successfully](https://jira.atlassian.com/browse/CONFSERVER-60133)**


author: aprince
body: I'm getting this issue as well and haven't found a solution, upgrading to 7.4.4.

Did you manage to find out what was causing this and if it is safe to ignore?

If I find anything I'll post an update here as well.


Tags: confluence-server

server
Confluence migration from one data center to another data center
Asked by prashant_hiremath:

Hi All,

We have a confluence data center where there are 500 spaces, now we are migrating only 50 spaces to another data center. what is the procedure for migrating only 50 spaces to the new data center and what are the glitches we can face while migrating spaces and any issues we may face in migrated spaces. Please give your inputs on these.

Thanks in Advance.


Answers:
author: Nic Brough -Adaptavist-
body: The best way to migrate a space from one Confluence to another is a simple export space, import space cycle.

You don't need the source and target to be close in versions or underlying tech

You can export from server, cloud, or dc and import into any of those three irrespective of source.

You can export from 4.x and have a good chance of it working fine when importing into 7.x, although you should probably expect some of the imported pages to not work quite right. 6.x to 7.x or Cloud won't be an issue.


Tags: confluence-server

server
Activity statistics
Asked by Patrick Vanhoof:

Via the configuration pages of Confluence, more precisely the General Activity page, I can get a top 10 of viewed and edited spaces for a day, week or month.

I was wondering if I could, one or another way, get an overview of the top 600 spaces viewed and edited for the last year.  
Reason: we have a bit more than 500 work spaces, and want to see which are no longer active used.


Answers:
author: Ollie Guan
body: Hi [@Patrick Vanhoof](/t5/user/viewprofilepage/user-id/1131759) ,

The Viewtracker app delivers important user behavior information.

[Viewtracker - Analytics for Confluence](https://marketplace.atlassian.com/apps/28637/viewtracker-analytics-for-confluence?hosting=server&tab=overview)
Manage Notifications is misspelled in confluence 7.4.0
Asked by Ranganath HV:

After upgrading to Confluence 7.4.0 we see a bug in the notification received from Confluence

Once you start watching the space or page, you will start receiving email notifications.

In the email notification at the bottom of email you can see "lanage notifications" instead of "Manage Notification"

This is major bug from confluence.


Answers:
author: Ranganath HV
body: ![LanageNotifications.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/102776i997CDA5F92A09249/image-size/large?v=v2&px=999 "LanageNotifications.PNG")

comments: author: Nic Brough -Adaptavist-
body: I don't think you can describe a minor miskey as a "major bug", it's probably going to be rated more at the "trivial" level

Do please raise it with <https://support.atlassian.com/contact> to get it added to the list (although they may already have spotted it and fixed it in a new version of the language pack)


author: Ranganath HV
body: Hi [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454) - I agree this as minor miskey. But we are using world's most wanted softwares with huge number of users and teams. This will impact our teams performance. Hence, marked it as Level 1.

I can raise a request on the link you provided.

Thank You.


author: Nic Brough -Adaptavist-
body: It's still "trivial" - remember something like this does no harm beyond minor confusion possibly, and slowing down speed-readers. I can't see how it will have much impact.

Critical/bajor/minor/trivial are comparative measures. For a comparison - a major bug is something that damages data or prevents people from working. This clearly is trivial compared with that sort of measure.


Tags: confluence-server

server
How to get count of attachment via rest API?
Asked by YongDeokAhn:

I wonder How to get count of attachment via rest API.


Answers:
author: Pavel Potcheptsov
body: ```
# echo -e "\nNumber of attachment is" && curl -s -n http://localhost:8090/rest/api/content/26477449/child/attachment | python -mjson.tool | tail -3 | head -1 | tr -dc '0-9' && echo

Number of attachment is
4

# echo -e "\nNumber of attachment is" && curl -s -n http://localhost:8090/rest/api/content/11048040/child/attachment | python -mjson.tool | tail -3 | head -1 | tr -dc '0-9' && echo

Number of attachment is
13
```

![Screenshot1.png](https://community.atlassian.com/t5/image/serverpage/image-id/103023iF58C3C2576635C59/image-size/large?v=v2&px=999 "Screenshot1.png")![Screenshot2.png](https://community.atlassian.com/t5/image/serverpage/image-id/103024i060667F30635E007/image-size/large?v=v2&px=999 "Screenshot2.png")

comments: author: Steffen M?ller
body: Hey Pavel, your code only works if there are max 50 attachments (or what you passed as a limit query parameter). The Rest endpoint you used only returns how many attachments *it returned* , not how many attachments *exist*.


author: Pavel Potcheptsov
body: Want me to fix that?

I've to find page with more than 50 files first)


Tags: cloud
Automatically assign groups based on domain?
Asked by Helene Tum:

Is there a way to not have any default groups and assign a new user to a specific group based on their domain? Certain companies are assigned to certain groups, and currently we are manually assigning them once they create their login. I'd like to find a way to automate this.


Answers:
author: Harri Ahokas
body: I also would like to know if there is the solutions for this?


author: Tom Bowden
body: I would also like to know if there is a solution to this please?

Thanks,

Tom


Tags: cloud
Changing the default font in Confluence
Asked by Camille Parker:

Is it possible to change the font without going into Confluence's CSS manually? I have seen this post (<https://community.atlassian.com/t5/Confluence-questions/Changing-default-font-for-confluence/qaq-p/441131>) but it's from 2013, so I was hoping they've added an option within the UI since then.


Answers:
author: Italo Qualisoni [e-Core]
body: [@Camille Parker](/t5/user/viewprofilepage/user-id/3301887) I see now that you are using Confluence Cloud,

Unfortunately custom CSS is a known limitation ( [Functional differences in Confluence Cloud)](https://confluence.atlassian.com/confcloud/restricted-functions-in-confluence-cloud-734070955.html?_ga=2.263495886.394140252.1594646632-2078885087.1592229340) as you can see here in the look and feel![lookfeelScreenshot_1.png](https://community.atlassian.com/t5/image/serverpage/image-id/102750iFC57CF5913789C3F/image-size/large?v=v2&px=999 "lookfeelScreenshot_1.png")

comments: author: Camille Parker
body: Okay thanks for your help! [@Italo Qualisoni \[e-Core\]](/t5/user/viewprofilepage/user-id/538040)


author: EmmaAlsop
body: Can we add our own font in Confluence? How can I do that? I want to update the fonts with the one I like so much, [jurassic park font free](https://upfonts.com/jurassic-park-font/). I need this font because I'm working on a web page about reviews for movies about dinosaurs. Respectively, the most famous film is Jurassic. So I would be grateful for any kind of answer.


author: Camille Parker
body: Hi [@Italo Qualisoni \[e-Core\]](/t5/user/viewprofilepage/user-id/538040)

Thanks! Any insight into why I don't have a Stylesheet option available? I'm more interested in updating the font in the actual docs, not PDF exports.   

![Capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/102746i3AA630D543A744F4/image-size/large?v=v2&px=999 "Capture.PNG")


author: Italo Qualisoni [e-Core]
body: Hi [@Camille Parker](/t5/user/viewprofilepage/user-id/3301887) ,

This is a very old document and I recommend you to start from here

<https://confluence.atlassian.com/doc/styling-confluence-with-css-166528400.html>


Tags: cloud
Error rendering macro 'sql-query'
Asked by Seth Howard:

Updating from 5.7 to 7.X and setup a Dev environment to test. After upgrade to 7.x we are getting this error on some pages that work in Prod:

**Error rendering macro 'sql-query'**

Unable to load database driver: net.sourceforge.jtds.jdbc.Driver. Make sure your configuration is correct.

I have found this error in posts but not an answer.

Any help is appreciated.


Answers:
author: repi
body: [@Seth Howard](/t5/user/viewprofilepage/user-id/3301819)

The net.sourceforge.jtds.jdbc.Driver is no longer supported since confluence version 6.4.

<https://confluence.atlassian.com/confkb/migrate-from-the-jtds-driver-to-the-supported-microsoft-sql-server-driver-in-confluence-6-4-or-later-939505122.html>

comments: author: Italo Qualisoni [e-Core]
body: [@Seth Howard](/t5/user/viewprofilepage/user-id/3301819) , you will need to update the app settings to use the new driver instead of jtds as mentioned by [@repi](/t5/user/viewprofilepage/user-id/302600)


author: Seth Howard
body: Right now it reads :  
\<property name="hibernate.connection.driver_class"\>com.microsoft.sqlserver.jdbc.SQLServerDriver\</property\>

Is that incorrect?

Thank you all for your help.


author: Italo Qualisoni [e-Core]
body: [@Seth Howard](/t5/user/viewprofilepage/user-id/3301819) ,

check this

<https://bobswift.atlassian.net/wiki/spaces/SQL/pages/392594283/No+JDBC+Driver>


author: Seth Howard
body: Does the whole ENU folder go in the /bin directory or just the jre\*.jar files?

Sorry I am asking for the hand holding but I cannot figure out quite what I am doing wrong.

Thanks again!!!!


author: Italo Qualisoni [e-Core]
body: Don't need to sorry :)

You should copy only the jtds-1.2.2.jar file under \<Confluencei nstall-directory\>/lib folder;

You can get this jar file from <https://sourceforge.net/projects/jtds/files/jtds/1.2.1/>

you will need to download [jtds-1.2.1-dist.zip](https://sourceforge.net/projects/jtds/files/jtds/1.2.1/jtds-1.2.1-dist.zip/download "Click to download jtds-1.2.1-dist.zip") , extract it and then copy the jtds-1.2.2.jar into the \<Confluencei nstall-directory\>/lib

And then you will need to restart the application.


author: Yuki Kang
body: We came across the same error after we upgraded Wiki from 7.13.7 to 7.19.16 recently. Is this the same issue related to jdbc driver?
Add user to Confluence Space group upon ConfiForms submission
Asked by Brian Karst:

I have a ConfiForm that creates a development plan for a user in a Jira project. In this case it is a supervisor submitting the form for the developee and although there is no issue with creating and assigning the issue to the user, they then can not see the issue. This is because they are not a developer in the Jira project. I have tried searching for a way for the form to add users to a confluence space group that has development rights upon submission, but I haven't had any luck. Let me know if you need more information Alex =D


Answers:
author: Alex Medved _ConfiForms_
body: Sounds like a Jira project permissions issue.. not something related to ConfiForms....


Tags: cloud

confiforms
Cannot copy and paste a page properties macro (on a Mac)
Asked by Sigrid Schoepel:

I've tried in Chrome and Safari and I can highlight/select a page properties macro, use the copy command, then go to another page and use the paste command but all I get is a pseudo-table. No macro. No real table. (And, no, I can't just add the macro and paste the table, that also does not work.)

I have a bunch of pages to update with a page properties macro and this is going to make it tedious and annoying.

Is this just a Mac thing? Is this a Cloud thing?

(At a previous job I used Atlassian server-based products on a Windows laptop and did not have this problem.)


Answers:
author: Lasse Langhorn
body: Hi [@Sigrid Schoepel](/t5/user/viewprofilepage/user-id/4003007)

I do think this is Cloud related. I have experienced the same thing regarding copy/paste on Confluence cloud.

Have you tried to copy the content of your clipboard to a text editor and then copy that content into the new Confluence page? I know it is an extra step in your workflow...  

Regards

Lasse Langhorn

comments: author: Sigrid Schoepel
body: Did not work. I even tried looking at the storage format (markup) and copying then pasting that. It only can be copied within the same document which is NOT helpful.


Tags: cloud
Automation of supplying a count based on a Page Properties Report...
Asked by Mark Schlaudraff:

On one of our pages we have the Page Properties Report and one of those properties is listed as 'Product Status' I like to automate the number of each one of those status.

So, as example:

Not Started = 2

In Progress = 0

Active = 43

Service Only = 2

Archived = 1

Right now I have to manually count and add the number within a table, I like to automate that.


Answers:
author: Katerina Rudkovskaya [Stiltsoft]
body: Hello [@Mark Schlaudraff](/t5/user/viewprofilepage/user-id/3705310),  

You can try the Pivot Table Macro of our app - [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=cloud&tab=overview) in this case.  

You just need to wrap the PPR macro with Pivot Table and configure it as you need.  

![2020-07-13_19h50_26.png](https://community.atlassian.com/t5/image/serverpage/image-id/102735iA7498176AA4AFEAA/image-size/large?v=v2&px=999 "2020-07-13_19h50_26.png")  

<br />

![2020-07-13_19h53_46.png](https://community.atlassian.com/t5/image/serverpage/image-id/102734i01C56F6870DB03E0/image-size/large?v=v2&px=999 "2020-07-13_19h53_46.png")  

Please note that you can try one month of a [**free trial**](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=cloud&tab=overview): install the app with an evaluation license and "play" with all our macros available.  

Best regards,  
Katerina  
StiltSoft

comments: author: Mark Schlaudraff
body: [@Katerina Rudkovskaya \[Stiltsoft\]](/t5/user/viewprofilepage/user-id/3738229) Thank you this worked GREAT!


Tags: cloud
error while saving the page
Asked by Abhishek:

I am getting error while saving the page.

and while i am the user on this document. its showing me as a duplicate user.

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


Answers:
author: Sachin
body: Hey [@Abhishek](/t5/user/viewprofilepage/user-id/3853022) , It is possible that you are hitting this issue [CONFCLOUD-66717](https://jira.atlassian.com/browse/CONFCLOUD-66717) . Can you confirm if you have any broken links in your page. If yes, try removing them as suggested in the above ticket. Also, you can try to revert back to an old version from your page history and see if it allows you to publish.

comments: author: Abhishek
body: [@Sachin](/t5/user/viewprofilepage/user-id/3827093) i don't know how to check broken link.

i was just creating a document, moreover I had inserted 2 images in that; if that is something leading to broken link. ?


author: Sachin
body: Images shouldn't be the cause here, but it won't hurt if you like to remove them and readd or just restore your page to a previous version ... --\> Page History --\> Restore on your old versions


author: Abhishek
body: [@Sachin](/t5/user/viewprofilepage/user-id/3827093) somehow I managed.

Recent --\> Worked on --\> "draft was saved"


Tags: cloud
How do you get the atlassian data?
Asked by Sylvana Rodriguez:

Hello, I would like to know how you get the data from atlassian? Do you take them directly from the atlassian database or do you start recording your own data?

Thanks in advance

Sylvana Rodriguez


Answers:
author: Nic Brough -Adaptavist-
body: Usage reporting (analytics) is something you have to add to Confluence, off-the-shelf it doesn't track most usage.

For Cloud, have a look at [https://marketplace.atlassian.com/search?hosting=cloud\&product=confluence\&query=analytics](https://marketplace.atlassian.com/search?hosting=cloud&product=confluence&query=analytics)


author: repi
body: [@Sylvana Rodriguez](/t5/user/viewprofilepage/user-id/3397349)

Please explain dates in more detail!  
What data do you mean?

comments: author: Sylvana Rodriguez
body: In our company we upload all the documentation to Confluence cloud and we want to perform statistical analyzes. For example given a page how many and which users access it. I am not seeing that directly from your application.  
What are the users who most access certain content. To give some examples.

Thanks for your time!!


author: repi
body: [@Sylvana Rodriguez](/t5/user/viewprofilepage/user-id/3397349)

In the cloud version you will probably not have direct access to the db, as is possible in the server version.  
There are no user macros and even embedding html code is not possible.  
The only option left is to install apps that provide the functionality you want.  
An experienced confluence cloud user can certainly provide information here or you can search the available apps yourself.


author: Sylvana Rodriguez
body: Thank you very much for your reply.  
Our company would really like to get to the data, from an application like Page View Insights, to develop the statistics that I mentioned to you, for example from Power BI.

Do you think there is any way to do this?

Thanks again!!


author: repi
body: Maybe there is something for you with these apps?![cloud_apps.png](https://community.atlassian.com/t5/image/serverpage/image-id/102723i330C2452827976D2/image-size/large?v=v2&px=999 "cloud_apps.png")


Tags: cloud
CQL BUG - has 'lastmodified' stopped working?
Asked by Anurag Gulati:

lastmodified in CQL is not working!

I know I have edited several pages today, and confluence keeps only returning two images from june.

This used to work.

Has something changed?

```
****Query run******
cqlQuery":"type=page and space in ('SIS') and lastmodified >= \"2020/07/13 14:55\" and created<\"2020/07/13 14:55\""

***User detals*****
This is from a user (me) whose timezone is set to be UTC (user settings on confluence)
The pages I am getting back have lastModified as below:
```

```
*****page returned********
"lastModified":"2020-07-13T14:02:51.263Z"
```

Last modified is clearly \< 14:55Z.

Why is this happening?

When I ran similar code (with dates appropriate for last month) the above CQL worked.

Further:

|-------------------------------------|----------------------------|------------------|------------------|
| Input (last modified)               | Output pages last modified |                  |                  |
| lastmodified \>= "2020-07-13 14:02" | 2020-07-13 13:54           | 2020-07-13 13:57 | 2020-07-13 14:02 |
| lastmodified\>="2020-07-13 14:55"   | 2020-07-13 13:57           | 2020-07-13 14:02 |                  |


Answers:
author: Diego
body: Hello [@Anurag Gulati](/t5/user/viewprofilepage/user-id/3962183) !

I tried to replicate the behavior you explained but was ultimately unable to. I edited an already existing page called "NEW EDITOR" and then performed the following CQL search:
>
> ```
> atlassian.net/wiki/rest/api/content/search?cql=lastModified>="2020-07-24 15:25"%AND%created<2020-07-24 15:25"
> ```

Since I specified both date and time for the lastModified value, only this page came up in the results:
> ![Screen Shot 2020-07-24 at 15.32.35.png](https://community.atlassian.com/t5/image/serverpage/image-id/104239iC332B0731F9DD83E/image-size/large?v=v2&px=999 "Screen Shot 2020-07-24 at 15.32.35.png")

Would it be possible for you to try the following:
> 1. *Create a new page*
> 2. *Publish it*
> 3. *Edit it*
> 4. *Create a CQL that looks only for the newly created page based on created and lastModified*
> 5. *Check if the newly created page shows up*

You can run this directly in your browser by typing the CQL after "*atlassian.net/wiki/rest/api/content/search?*" and using the % character where white spaces should be placed. Much like the example I gave above.

Let us hear from you!

comments: author: Anurag Gulati
body: Hi Diego,

Thanks for this. I can validate this does \*not\* work for my case as I suspect a timezone conversion's happening somewhere.

According to the documentation, I should specify the time in the timezone of the user who is querying not the timezone of the confluence site (cloud/on premise)

Can I ask what's the timezone of the user you are using to query and the timezone of the confluence site?


author: Sachin
body: Hello [@Anurag Gulati](/t5/user/viewprofilepage/user-id/3962183) , I think I have faced this issue last week. I have simply entered a random text in the search and did a basic search first. Then I added Type "Pages" and Last Modified "24hrs" and it started working.


Tags: cloud