youngmon/atlassian-qna huggingface dataset:
incorrect coding page in the mail notification
Asked by Burlakov Eduard:

Hi,

The user occasionally receives email notifications with incorrect encoding in the notification body.

But more often notifications come in normal encoding.

Server: Confluence 6.15.7  
Email client Outlook 2016

Russian language

Example of email notification :

<https://owncloud.uniscan.biz/index.php/s/cOw3yUfg4XKrUBa>


Answers:
author: Burlakov Eduard
body: Hello,

Thank you for your answer, but it seems to me that you did not correctly understand the situation.

This is not about a problem in the browser, but about a problem in the outlook mail client, more precisely in the notification that we receive. This notification is incorrectly encoded. More often the encoding is correct and the message is displayed correctly. But we want to fix such rare cases that I described above.

I tried to open this notification in another Outlook 2010 mail client and the encoding worked correctly.

I suspect that this is a problem in the mail client of Microsoft Outlook 2016 itself.

fast fix

![](https://social.technet.microsoft.com/Forums/getfile/644512)

comments: author: Diego
body: Hey, thanks for clarifying the issue description, [@Burlakov Eduard](/t5/user/viewprofilepage/user-id/37393) !

Knowing that the issue takes place with a specific application closes some doors while opening others. Also, thanks for sharing the quick fix for the situation!


author: Diego
body: Hello there, [@Burlakov Eduard](/t5/user/viewprofilepage/user-id/37393) ! Thanks for sending a screenshot of the actual issue.

Looking at it, I believe that this behavior is connected to some problems with fonts. There are a few things we could check. Here is a list of such things:
> 1. *Check if this happens in any browser that the user uses*
> 2. *Check if this happens in different machines, reading the same email*
> 3. *Check if no other areas of your Confluence display similar behaviors*
> 4. *Check if the issue also affects notifications sent in English for example*

This problem can be caused when the *++necessary fonts are not present++*. So we are checking if this is affecting only the Russian language or if this behavior spreads to English, for example. We are also checking if this is localized, meaning that this only affects one specific browser or machine.

I checked a Confluence notification and it seems to be rendered locally, not on the server itself. So I am inclined to the possibility of this being a client-side issue.

In the meantime, you can take a look at our documentation that tries to take care of pretty similar situations:
> * ++**[\[Confluence Server\] \[Non-ASCII Characters display as square characters in Confluence\]](https://confluence.atlassian.com/confkb/non-ascii-characters-display-as-square-characters-in-confluence-317948797.html)**++

Let us hear from you, Kurlakov!


Tags: character

confluence-server

notification

server
Can someone help me to resolve this.
Asked by Chiranjeevi:

getUsernameFromAttributes The following record does not have a username: NameAwareAttribute; attributes: {mail=NameAwareAttribute; id: mail; hasValuesAsNames: false; orderMatters: false; values: \[2248299490@txt.att.net\], givenname=NameAwareAttribute; id: givenName; hasValuesAsNames: false; orderMatters: false; values: \[Pager\], objectguid=NameAwareAttribute; id: objectGUID; hasValuesAsNames: false; orderMatters: false; values: \[\[B@52d90775\], displayname=NameAwareAttribute; id: displayName; hasValuesAsNames: false; orderMatters: false; values: \[Pager - 2248299490\], sn=NameAwareAttribute; id: sn; hasValuesAsNames: false; orderMatters: false; values: \[2248299490\], usnchanged=NameAwareAttribute; id: uSNChanged; hasValuesAsNames: false; orderMatters: false; values: \[1726353813\]}


Answers:
author: Aitor Bermejo Cacho
body: Hello [@Chiranjeevi](/t5/user/viewprofilepage/user-id/3565751) ,

I think that this log is so clear....

"Does not have a username " \[...\] "hasValuesAsNames:false"

Please, check that user name and in the case that doesn't have it, give it


Tags: confluence-server

server
How can I label multiple files in a Confluence file list? And how do I easily rename files?
Asked by Keanu Concepcion:

![Annotation 2019-10-21 175322.png](https://community.atlassian.com/t5/image/serverpage/image-id/70122iF618F74D05DE5EDA/image-size/large?v=v2&px=999 "Annotation 2019-10-21 175322.png")In the image you can see that I uploaded a few files. Now they come into the file list unlabeled. How can I both, upload multiple files, and then label them just as easily?

Additionally, how can I easily rename files if I need to? I noticed I have to go into the file properties and rename it there, but that's tedious to do when I should be able to just do it from a zoomed out view like I have here.

Anyways, I'm more concerned about multiple labeling -- thanks!


Answers:
author: Dominic Lagger
body: Hi [@Keanu Concepcion](/t5/user/viewprofilepage/user-id/3607013)

I'm using Confluence for a few years now, and I haven't found any solution for both of your problems! I would highly appreciate, if someone has a good solution for that.

I once asked for something, to change the name of an image directly on drag'n'drop or copy/paste, but no one could really help.

Hope someone has a hint for you.

Regards, Dominic


Tags: attachment

cloud

confluence-cloud
Tried to turn the user stories drafted in Confluence into JIRA User stories but don't show up link
Asked by Sandy:

Have listed all the stories in Confluence space in a table

Then, selected them to "Create Issue"

Chose the option of "Create multiple issues from the table"

=\> It did create the user stories in JIRA but those JIRA stories link does NOT appear by default in the confluence page.

![Expected Result in Confluence Space.jpg](/t5/image/serverpage/image-id/70120i72B031942E8998BE/image-size/large?v=v2&px=999 "Expected Result in Confluence Space.jpg")![Actual result in Confluence Space.jpg](/t5/image/serverpage/image-id/70119i4462589042CF9BB5/image-size/large?v=v2&px=999 "Actual result in Confluence Space.jpg")


Answers:
author: Dave Theodore [Coyote Creek Consulting]
body: I'd open a support ticket on this. You don't have much control over fixing issues with Application Links on Cloud.

comments: author: Sandy
body: Thanks Dave!
How to highlight a page using the page tree macro
Asked by Mohit Gupta:

Currently using a page tree macro for creating a confluence page. Looking for ways to highlight the latest entry in the whole list.


Answers:
author: Shannon S
body: Hello Mohit,

Welcome to Atlassian Community! It's nice to have you join us.

That's a great suggestion, thank you for bringing it up! It's not currently possible in Confluence, but I've created a feature request below for this:

* [CONFCLOUD-68347](https://jira.atlassian.com/browse/CONFCLOUD-68347) *Indicate which pages are newly created in Page Tree*

You can vote on the feature request and you'll automatically receive updates in the future about it.

Take care, and have a pleasant week.

Regards,

Shannon


Tags: confluence-cloud
How to get comment "likes" information from the REST API?
Asked by Will Baizer:

Using the Bitbucket API, is there a way to find the information of how many likes or reactions a comment on a pull request has and which users liked the comment?  

It seems like this is a capability for the server:  
<https://docs.atlassian.com/bitbucket-server/rest/5.6.2/bitbucket-comment-likes-rest.html>

but the most information I can get through the regular API is just the author of the comment and it's content:  
<https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/pullrequests/%7Bpull_request_id%7D/comments/%7Bcomment_id%7D#get>

<br />

Am I possibly missing something, or is this just not a capability? Is there another way of getting the likes information? If there is not, is it in the pipeline?  

Thank you!


Answers:
author: Daniil Penkin
body: Hello [@Will Baizer](/t5/user/viewprofilepage/user-id/3606344),

Unfortunately there's no public REST API for comment likes yet. There's an *internal* endpoint though ([example](https://api.bitbucket.org/internal/repositories/atlassian/atlaskit-mk-2/pullrequests/7398/comments/121426224/likes)) but please be aware that *it might be changed or removed at any time* without prior notice.

Sorry for the inconvenience.

Cheers,  
Daniil


Tags: api

bitbucket

bitbucket-cloud

cloud

comment

confluence-cloud

pull-request

rest-api
Confluence 6.15.9 installer is not running
Asked by Navam Rajput:

I am trying to upgrade the Confluence from 6.15.4 to 6.15.9 , whenever I tried to execute the installer using command in the folder containing the executable installer

sudo ./atlassian-confluence-6.15.9.x-64.bin , it just freeze up , showing nothing since 30 minutes and log files is showing nothing after the confluence is terminated (stop) , which I assume nothing is working after it.


Answers:
author: Kiran Panduga {Appfire}
body: Hi [@Navam Rajput](/t5/user/viewprofilepage/user-id/3524941) ,

Can you look at the available system resources (Memory, CPU usage ) and try to release any cache memory.

can you look if any process with "java" or "confluence" running ? using

ps -ef \|grep -i java

Can you also set the permission for the installer to 755 i.e

chmod 755 atlassian-confluence-6.15.9.x-64.bin

Thanks,

Kiran


Tags: confluence-server

jira

jira-server

questions-for-confluence

server

upgrade
To use a create from template macro can i use a template create by my own?
Asked by venkata bharat vuyyuru:

Hi i want to use "create from template" macro in confluence but i dont want to use existing template i want to use a template created by my me. how to create a user defined template please help..


Answers:
author: Jonathan Smith
body: [@venkata bharat vuyyuru](/t5/user/viewprofilepage/user-id/3606817)

If you are the space admin, you can create a **space template** like so:

1. Go to your desired space
2. Space tools
3. Content tools
4. Click the 'Create New Template' button
5. Create your template (add label if desired)
6. Save
7. Go to a parent page in your space
8. Add the {Create from template} macro
9. Point the button to your newly created template

If you want a **global template**, go to the cog wheel, general configuration, global templates and blueprints and follow the same steps above.

comments: author: Jonathan Smith
body: Note: Pages created by clicking the create from template button will be nested under the parent page.


Tags: confluence-server

server
Hello! I am trying to give viewing permission to a group of clients without their having to be licen
Asked by Maira Brandao:

Hello! I am trying to grant access to a specific group of people without them being licensed in my Confluence account. The problem is that even when the space is open for anonymous access, these users cannot view the content. See below the permission prints:

Users in this group cannot view page content, even when space permission is free for anonymous users:

![Membros.JPG](/t5/image/serverpage/image-id/70102iA05DA999573C2358/image-size/large?v=v2&px=999 "Membros.JPG")

These were the global permissions granted:

![Permiss?es globais.JPG](/t5/image/serverpage/image-id/70103i9F1D9F3FAF8387A0/image-size/large?v=v2&px=999 "Permiss?es globais.JPG")

Page restrictions also gave this group access:

![permiss?es do espa?o.JPG](/t5/image/serverpage/image-id/70104iEAACE97CBC2202CD/image-size/large?v=v2&px=999 "permiss?es do espa?o.JPG")


Answers:
author: Avinash Bhagawati _Appfire_
body: Hi [@Maira Brandao](/t5/user/viewprofilepage/user-id/3606734) ,

Welcome to Atlassian Community !

For anonymous access view you need to remove view page restriction to allow users to view the page and **Anonymous Access**should be enabled in globally and at space level.

Please refer permission level info here. <https://confluence.atlassian.com/doc/assign-space-permissions-139460.html>

Also for current group unable to view the page , can you please make sure that group have necessary view page permissions in confluence.

Please refer below documentation on space permissions overview.

<https://confluence.atlassian.com/doc/space-permissions-overview-139521.html>

Thanks,

Avinash
Unable to reset admin Confluence password using H2 database
Asked by Kristin Lyons:

We have a Confluence instance running the embedded H2 database but need to reset the admin password. I am following these steps: <https://confluence.atlassian.com/conf510/restore-passwords-to-recover-admin-user-rights-829077919.html> but cwd_users is not a valid table.


Answers:
author: Kiran Panduga {Appfire}
body: Hi [@Kristin Lyons](/t5/user/viewprofilepage/user-id/1032864) ,

Before connecting to the H2 database, you need to first shutdown the Confluence instance and then try connecting to the H2 database.

If you do not shutdown the Confluence instance, then you will not be able to view the confluence tables.

then you will be able to view all the reference Confluence tables which includes cwd_users.

For connecting to H2 database, please refer to this KB article.

<https://confluence.atlassian.com/conf510/embedded-h2-database-829078071.html>

Thanks,

Kiran.

comments: author: Kristin Lyons
body: We have shut down Confluence and it is still not finding the cwd_user.

The Driver Class: org.h2.Driver

JDBC URL: jbdc:h2:\~/test

Is that above information correct to connect to the embedded database? That's what fills out by default.

I also tried to connect using DBVisualizer following the instructions here: <https://confluence.atlassian.com/conf510/embedded-h2-database-829078071.html> and am still getting an error that cwd_user cannot be found.


Tags: confluence-server

server
Embedded PDFS no longer work
Asked by Jeffrey Manning:

Good day,

I had updated from 6.13.1 to 7.0.3 and I'm experiencing an issue with embedded pdfs not being rendered.

<https://www.screencast.com/t/JmiwRQlCkKpY>

I've tried disabling plugins to see if that could be the cause, in addition to looking for other plugins that provide the same functionality with no luck so far.


Answers:
author: Shannon S
body: Hi Jeffrey,

Welcome to Atlassian Community! It's nice to have you.

I think you could be running into one of these bugs:

* [CONFSERVER-36927](https://jira.atlassian.com/browse/CONFSERVER-36927) *Some PDF unable to render by the PDF viewfile macro.*
* [CONFSERVER-59038](https://jira.atlassian.com/browse/CONFSERVER-59038) *PDF macro doesn't load PDF content and returns an error.*

Some things to consider:

1. Does this occur with *all* PDFs, or only certain ones?
2. Does this occur only when using the [*viewfile*](https://confluence.atlassian.com/doc/view-file-macro-170494360.html) macro or also with the *file preview*?
3. Check your [Confluence Server Logs](https://confluence.atlassian.com/doc/working-with-confluence-logs-108364721.html) and see what message is returned when you try to load the PDF preview?

Thank you for your help!

Regards,

Shannon

comments: author: Jeffrey Manning
body: Hi Shannon,

Thanks for the reply. To answer your questions:

1. This issue is occurring with all pdfs.

2. This issue is only occurring with the viewfile macro, The attachment can be viewed if I add a thumbnail.

3 I'm getting the following error in my log file when I open posts with PDFs embedded,

<https://www.screencast.com/t/1wRgOvok>


author: Shannon S
body: Hi Jeffrey,

Thank you for your reply. I think you could be affected by one of these known bugs. Are you able to obtain more details regarding that error message? The snippet you sent is helpful but it appears to be lacking the error message that triggers the null pointer exception. If you look further up you should be able to get the rest of the stack trace, including the error message (marked by the word ERROR at the start.)

Regards,

Shannon


author: Jeffrey Manning
body: Hey Shannon,

I've managed to obtain the full error message, I hope this is more helpful.

<https://www.screencast.com/t/llWyR3mh>


author: Shannon S
body: Jeffrey,

Thank you for that. This shows the same error from the bug I sent you earlier which is:

* [CONFSERVER-36927](https://jira.atlassian.com/browse/CONFSERVER-36927) *Some PDF unable to render by the PDF viewfile macro.*

There's no workaround to get the viewfile macro working, so the solution at this time is to not use the ViewFile macro to display your PDF files.

Let me know if you have any questions about that.

Regards,

Shannon


Tags: confluence-server

server
Allowing Users to Check Out/In Equipment
Asked by Najee Ali:

I am a complete newbie to creating things in Confluence/Jira.

I have been assigned a project to track the inventory in our equipment closet with a check in/out system.

I am thinking of a Check Out/In page that is linked to a table with the inventory numbers.

Checking in would add 1 to an item's amount, and checkout out would subtract 1 from an item's amount.

What would be the best way to go about this task?

Thanks for your help in advance!


Answers:
author: Daniel Fietta
body: Hey there,

To me, this looks like a typical asset management use case for Jira. Are you tied to a Confluence page or can you also set this up in Jira and just display the items and inventory amount from the Jira issues on a Confluence page.

Very high-level description of a possible solution: Depending on your requirements, your closet and/or inventory would be assets tracked as Jira issues. They include a custom field where you track the available amount/numbers. Check-in/check-out would be workflow transitions that change the amount.

To make this easier and prettier, you can try out an asset management add-on from the Atlassian Marketplace for free, e.g. one of our apps: [STAGIL Assets](https://marketplace.atlassian.com/apps/1215311/stagil-assets-advanced-links?hosting=server&tab=overview)

Hope this helps,  
Daniel  
[STAGIL](https://www.stagil.com/)

comments: author: Najee Ali
body: Hi Daniel,

Thanks for such a quick answer!

I don't think I have to be tied to a Confluence page.

Is there a tutorial for displaying the items and inventory amounts from the Jira issues on a Confluence page?

Najee


author: Daniel Fietta
body: Hi Najee,

It depends on what exactly you would like to see on your page. You could use the native Confluence "Jira Issues Macro" to display Jira issues on a Confluence page. Here is the documentation for that: <https://confluence.atlassian.com/doc/jira-issues-macro-139380.html>

If this does not suffice, you can search for other Confluence macros that have more configuration options in the Atlassian Marketplace, e.g.: [https://marketplace.atlassian.com/search?product=confluence\&query=jira%20issues](https://marketplace.atlassian.com/search?product=confluence&query=jira%20issues)

Best,  
Daniel


author: Davin Studer
body: We track our assets in Jira. Each asset is its own Jira issue. If people are checking out assets you could have a workflow transition that changes the status to checked-out or checked-in. From there it would be pretty easy to create a JQL query to show how many of asset type X are checked-in / checked-out. You could also set to a transition screen to require you to put in the person it is checked out to when it is transitioned to checked-out.


Tags: confluence-server

server
Validate JQL result on issue creation
Asked by Daniel Alonso:

This is my scenario:

I need to do a JQL and get the number of results (done), if this number is grater than X number do not allow the creation of an issue.

This is my current (example) code:

```
import com.atlassian.jira.bc.issue.search.SearchService
import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.issue.search.SearchException
import com.atlassian.jira.web.bean.PagerFilter

final String jqlSearch = 'project = "Sample Project"' // the jql query you want to search with

def user = ComponentAccessor.jiraAuthenticationContext.loggedInUser
def searchService = ComponentAccessor.getComponentOfType(SearchService)
SearchService.ParseResult parseResult = searchService.parseQuery(user, jqlSearch)
def total_issues = 0
if (parseResult.isValid()) {
try {
def results = searchService.search(user, parseResult.query, PagerFilter.unlimitedFilter)
def issues = results.issues

//log.warn(results)
issues.each {
//log.warn(it.key)
total_issues++
}
return total_issues
} catch (SearchException e) {
e.printStackTrace()
}
} else {
print("Invalid query")
return null
}

if (total_issues >= 23){
return false
}
```

Right now is not working, I put this code on the 'Create' transition.


Answers:
author: Jack Nolddor [Sweet Bananas]
body: Hi daniel,

Why dont use **SearchService.searchCountOverrideSecurity(ApplicationUser searcher, Query query)** method?

Which indeed returns the number of issues that matches the given query.

<br />

You code should looks like something like this (I've just type the code here so probably I missed something)

```

import com.atlassian.jira.component.ComponentAccessor
import com.atlassian.jira.bc.issue.search.SearchService
import com.atlassian.jira.jql.parser.JqlQueryParser
import com.atlassian.jira.web.bean.PagerFilter
import com.opensymphony.workflow.InvalidInputException


def jqlQueryParser = ComponentAccessor.getComponent(JqlQueryParser)
def searchService = ComponentAccessor.getComponent(SearchService)
def user = ComponentAccessor.getJiraAuthenticationContext().getUser()

// edit this query to suit
def query = jqlQueryParser.parseQuery("project = JRA and assignee = currentUser()")

def count = searchService.searchCountOverrideSecurity(user, query)


if(count >= 23 ) {
??? throw new InvalidInputException("Too Many Issues")
}
```

<br />

Regards


Tags: jira

jira-server

scriptrunner
How to inject custom web.xml into the Confluence Docker image
Asked by Jacques Cl?ment:

Hi,

I am running Confluence 7.0.X in Docker using the official image

I want to configure \<session-timeout\> in web.xml with a different value than the default one but I am not sure how to do it.

I know how to inject a custom server.xml by copying a server.xml.j2 file in */opt/atlassian/etc* but the same approach does not seem to work with web.xml.

* If I copy a web.xml.j2 in this directory, the file is ignored;
* If I copy a custom web.xml directly into */opt/atlassian/confluence/confluence/WEB-INF* then I get a whole bunch of different errors and Confluence does not even start properly

The latter approach did work until very recently so I suspect something has changed with the way the container starts.

Any thoughts?


Answers:
author: Istv?n VARGA
body: Hi [@Jacques Cl?ment](/t5/user/viewprofilepage/user-id/3446334) , You solved the problem?


Tags: atl-adm

confluence-server

server

web.xml