youngmon/atlassian-qna huggingface dataset:
JIRA Filter is showing unfeasible results
Asked by Adrian K_:

Hello,

at the moment we have an error in our confluence-environment.

We have many filter in one page and some of them works fine, but three doesn?t work.

In the preview their show me a result but in live their is nothing.

In the attachement you can find a screenshot from preview and a shot from the error.

What can I do to resolve the error?

Thanks for support.

Adrian

![error.JPG](/t5/image/serverpage/image-id/3817iFE0BEAE37935A66B/image-size/large?v=v2&px=999 "error.JPG")![preview.JPG](/t5/image/serverpage/image-id/3819iF08CDFFB3E0099D7/image-size/large?v=v2&px=999 "preview.JPG")


Answers:
author: Thomas Schlegel
body: Hi Adrian,

we had the same problem in our environment. We also had these German special characters in our status and every JQL that included these special characters worked in preview mode, but not after saving the page.

The problem in our environment was a wrong file encoding in Confluence. We had

\<sun.jnu.encoding\>ANSI_X3.4-1968\</sun.jnu.encoding\> \<file.encoding\>ANSI_X3.4-1968\</file.encoding\>

which is totally nonsense. Don't know where that came from...

We changed it to

-Dfile.encoding=UTF-8

-Dsun.jnu.encoding=UTF-8

and then everything was fine.

Hope you find something similar in your environment.

Viele Gr??e aus Hamburg

<br />

Thomas

comments: author: Adrian K_
body: This solution fixed my problem

<https://jira.exoplatform.org/browse/PLF-5646>


author: Thomas Schlegel
body: Great you found it :-)


author: Thomas Schlegel
body: Hi Adrian,

you find all the settings in

http://\<your-confluence-url\>/admin/systeminfo.action

There, look at "**Java-Laufzeitargumente"**


author: Adrian K_
body: Hi Thomas,

where can I find this part:

\<sun.jnu.encoding\>ANSI_X3.4-1968\</sun.jnu.encoding\> \<file.encoding\>ANSI_X3.4-1968\</file.encoding\>

In our atlassian-confluence.log -File is written this message:

fileSystemEncoding = UTF-8.

So I think that we have an other problem.

Cheers! und Gr??e aus Berlin

Adrian
Error whilst logging in
Asked by Glenn Price:

Hey,

not sure if anyone can help me. I has a user who cannot login, it worked on Thursday but since Friday he hasn't be able to login to Confluence. He has the relevant permssions and access to the correct groups. Attempting to update his password also fails or make any changes in confluence to his groups also errors.

![Confluence Login Error.PNG](/t5/image/serverpage/image-id/3815i37E57D19C51B11FD/image-size/large?v=v2&px=999 "Confluence Login Error.PNG")

![Confluence Login Error 2.PNG](/t5/image/serverpage/image-id/3816i703B43284386E46E/image-size/large?v=v2&px=999 "Confluence Login Error 2.PNG")I am stumped what to do :( He seems to be the only one who gets it.


Answers:
author: Nic Brough -Adaptavist-
body: It looks like there is something wrong with their account in your Active Directory.


Tags: error

login
If I reorder pages in confluence, will that affect other team members?
Asked by Dan randy:

I want to reorder confluence pages to my need. But I only want it to be on my account. Not other team members. So my question is, if I do reorder the pages, does anyone get affected?


Answers:
author: Susan Ostreicher
body: Hi Dan,

Yes, the new page order will be visible to other users, like any other page edit would be. What would re-ordering the pages help you do? Maybe there's a different way to get the same benefit.


Tags: jira-software
XSRF check failed on Confluence
Asked by GIOVANNI MARCO DI VINCENZO:

Good Morning Atlassian Team,

I successfully installed and configured Atlassian on a my server and I used it for a month.

I bought a set of ten license and I want to associate it to myserver ID**.**   
I tried to cut and paste the License key furnished on the Atlassian portal but he send me the message: XSRF check failed.  

How can I do to solve?  


Answers:
author: AnnWorley
body: The subject is somewhat involved so I am linking an article rather than explaining from scratch. One easy to check fix: see if your base URL is the same URL as you are using in the browser or else the request won't match the origin. [Please see Cross Site Request Forgery (CSRF) protection changes in Atlassian REST](https://confluence.atlassian.com/kb/cross-site-request-forgery-csrf-protection-changes-in-atlassian-rest-779294918.html)

comments: author: GIOVANNI MARCO DI VINCENZO
body: Thank You!

It was very usefull!
Password for embedded Vimeo triggering shortcut keys
Asked by Shimrit Janes:

Hi there,

Our client is currently using Confluence v5.9 (upgrade is in the pipeline...!) with IE11.

They've been using the Widget Connector macro for some time to embed videos from Vimeo, which have a password that needs to be typed in to view the content.

They've reported that within the last few weeks, the password (Partners) is triggering the Attachment shortcut (the 't'), which hasn't previously been an issue.

Any ideas why this may suddenly be an issue?

Cheers,

Shim


Answers:
author: Shannon S
body: Hello Shimrit,

I've reported this issue in the past as a bug ([CONFSERVER-32392](https://jira.atlassian.com/browse/CONFSERVER-32392)). However, it was closed as the team won't be able to address it in the foreseeable future due to prioritization.

You can try to [change the shortcut keys](https://confluence.atlassian.com/confkb/how-do-i-change-the-keys-for-keyboard-shortcuts-228066005.html?_ga=2.248264195.541372882.1501487748-678533352.1500973771) yourself in the meantime, but be advised it does require you to modify the source files to do so. Additionally, I had found in the past that pasting the password will not trigger the shortcut, so you can also try that.

Let us know if you have any trouble.

Kind Regards,  
Shannon


Tags: vimeo

widget-connector
Jira Link to Confluence hide for users without license
Asked by ferdinand:

Hi there,

I have a question about the Jira and jira confluence link. If a user got a confluence license, he can see the link in Jira and switch to confluence with it.

But if a user do not have rights/a license for confluence the link looks like in the photo above.

Is it possible to hide the link for users with no permissions/license for confluence?

Thank you!

Ferdinand

![jira.png](/t5/image/serverpage/image-id/3798i8412004F17B82089/image-size/large?v=v2&px=999 "jira.png")


Answers:
author: Rachel Wright
body: Hi Ferdinand,

I do not know of any setting that would allow you to hide the link. If a JIRA issue is *dynamically* listed in Confluence, its *existance* is shown. As you've noticed, whether or not a user can see the name of the linked page and the content on the page is tied to authentication.

One "sort of" workaround: on the Confluence page, don't dynamically add the Issue ID or use the JIRA Issues macro. Instead, paste the issue ID in plain text. No link will appear in JIRA.

Hope this helps,

Rachel Wright

comments: author: ferdinand
body: Hi Rachel,

Well the Link from Jira to Confluence is important for us. But I think I found something, what would help me.  
Thank you very much!

Ferdinand


author: ferdinand
body: Well, in this Link  
<https://jira.atlassian.com/browse/JRASERVER-43781?src=confmacro>

it says, that if there is a Jira and a Confluence User, he will geht an Error 500 when he do not have the permission to enter the confluence Link. Thats the Problem above.  
I use Jira and Confluence. Confluence has the same Users like Jira and they all see the Error 500. How can I change it to a "no permission" errror?


Tags: jira
Is it possible to use user groups to set permission to pages and spaces?
Asked by Thomas Kraft:

Hi

Is it somehow possible to create groups (of users) and use it to set permissions to pages and spaces, instead of having to do this per user basis?

//Thomas


Answers:
author: Thomas Schlegel
body: Hi Thomas,

yes, of course. If you have administrator permission, you can create groups here:

http://\<your-confluence-url\>/admin/users/browsegroups.action

and add users to that group.

You can use these groups then to set other permissions.


Tags: page

permission

space

user
Q&A Page creation
Asked by Kyusik Park:

I like to run Q\&A page in our organization.

Which product is more appropriate for Q\&A page between Jira and Confluence.

Thank you.


Answers:
author: Christoph Sch?tz
body: Hey - have you had a look into Confluence questions? <https://www.atlassian.com/software/confluence/questions>

Otherwise definetely Confluence I would say ;)

Cheers

Christoph


Tags: jira-software
REST API: Updating user avatar/profile picture
Asked by Bernhard Rusch:

I'm wondering if it is possible to update a user avatar/profile picture using the REST API.

I'd like to update the user pictures in a batch from a different system - so it would be perfect using the REST API for that (as an admin user).

I haven't found anything in the docs, and the REST API in general seems to be very limited compared to the deprecated SOAP/JSON-RPC APIs.

Thank you very much!


Answers:
author: munyiva ngea
body: Any responses?

comments: author: Bernhard Rusch
body: I'm using the old XML-RPC instead, that works fine ... the REST API seems to have no priority for the product.


author: munyiva ngea
body: Tested it too, the python script seems to work great, just need to convert it to PHP for ease of integration with my existing scripts. Have you done this in PHP?

Thanks for your response.


author: Bernhard Rusch
body: here we go: <https://gist.github.com/brusch/dfc3f2b0be8d226bd68a1bdb74bc4e62>


author: munyiva ngea
body: Thank you


author: Bernhard Rusch
body: You're welcome :)


author: Tarun Sapra
body: Yes, it should be possible, pelase see the below links -

comments: author: Tarun Sapra
body: <https://community.atlassian.com/t5/Answers-Developer-Questions/Cannot-set-avatar-for-issue-type-using-REST-API-with-JWT/qaq-p/568931>

As per official REST API, enpoints are present  


author: Tarun Sapra
body: <https://docs.atlassian.com/jira/REST/server/#api/2/issuetype-storeTemporaryAvatarUsingMultiPart>


author: Tarun Sapra
body: Please ignore the above links, it's for issueType instead of user avatar.


author: Bernhard Rusch
body: Thanks for clearifying - so the question is still open :(


Tags: rest

rest-api

user
Changing default page restrictions
Asked by Yaacov Weingarten:

We would like to change the default page restrictions -

When a new page is created would like it to be restricted to the author to view and edit. When it is ready for review, he would add a group or set of reviewers to have viewing rights.

Only when the contents are finalized - would they change the restrictions to viewable by all.

Is there a way of configuring the Space to have these defintions?


Answers:
author: Christoph Sch?tz
body: Hey Yaacov - in Confluence view restrictions are inherited from the parent page. So one thing you could do is create one page per author with appropriate view permissions and teach your authors to create new pages only under this page and afterwards change the page restrictions as described above. But this would mean some manual effort, is error prone and you still have the problem that page updates are not reviewed. If you are using Confluence Server I recommed you looking into <https://marketplace.atlassian.com/plugins/com.comalatech.workflow/server/overview> which should allow you to better support your requirements.

Cheers

Christoph

comments: author: Giacomo Esposito
body: Hi, I follow your suggestion (I found the same in another answer done by [@Bill Gray](/t5/user/viewprofilepage/user-id/664940) Baley in a similar ticket) and using this configuration all works fine! This is the configuration

{workflow:name=Restrictions}  
{description}  
PRIVATE: only author can view and edit  
{description}  
{state:Private\|colour=#FFAB00}  
{state}  
{trigger:pagecreated}  
{add-restriction:type=view\|user=@creator}  
{trigger}  
{workflow}

additional info in this ticket: <https://community.atlassian.com/t5/Confluence-questions/Is-there-a-way-to-create-new-pages-be-restricted-by-default/qaq-p/314372#U993139>


author: Igor Sereda [ALM Works]
body: Hi Yaacov,

In addition to what Christoph said, you can play with the default permissions in the Space configuration. Maybe have a separate "Staging" space with restricted default access and then moving pages that are ready to another space.

What we're doing ourselves is building pages in personal spaces and moving them to common space when they are reasonably ready.

Kind regards,  
Igor


Tags: restriction
How to update a page with Python using REST API?
Asked by Daniel Ciarlette:

I am trying to set a Confluence page restriction using Python and the Confluence REST API. I am not having any luck on Confluence 6.0.4

My code snippet is

create={ "type":"page",  
"title":"1.1.23",  
# "restrictions":\[{"operation": "read","type":"group", "name": "cam-1.3"}\],  
"read":{"operation":"read","restrictions":{"group":{"results":\[{"type":"group","name":"cam-1.3"}\]}}},  
"ancestors":\[{"id":"25994717"}\],  
"space":{"key":"\~danciarlette-admin"},  
"body":{"storage":{"value":'\<p\>\<ac:structured-macro ac:name="attachments" ac:schema-version="1" ac:macro-id="ec23f1c2-0df6-437d-9ad0-d1e0b1248811"\>\<ac:parameter ac:name="upload"\>true\</ac:parameter\>\</ac:structured-macro\>\</p\>',"representation":"storage"}}  
}

r=requests.post(url, data=json.dumps(create),auth=('admin', 'admin'), headers=({'Content-Type':'application/json'}))

It creates the page but the restrictions are not there.

Any help or pointing me to a resource would be great.

Thanks.


Answers:
author: Mallmann
body: Hi, Daniel.

The restrictions cannot be set while creating a page through the REST API. And currently, there's no official REST API call that will allow you to set restrictions in Confluence pages/spaces.  

However, I was able to find two other topics in our community with alternatives to set it:

1. This topic covers how to add permissions using the CLI plugin: <https://community.atlassian.com/t5/Answers-Developer-Questions/How-to-set-page-Restrictions-to-users-using-Confluence-APIs/qaq-p/529144>
2. And on this topic, another user was able to add restrictions through an experimental REST API call: <https://community.atlassian.com/t5/Answers-Developer-Questions/Set-Page-Restrictions-using-Confluence-REST-API-v5-5/qaq-p/487662>

In short, you'll have to make at least two calls to get your page created with the proper restrictions.

I hope it helps, Daniel! :)

- Mallmann


Tags: development

rest-api

restriction
Confluence sticky header in edit mode
Asked by pokalav:

Hi Team,  

I have several confluence pages that contains long table, and when I'm editing rows at the bottom of the table, the header disappears. Then I can't tell which column is for which. Can we make the header sticky even in edit mode?  

Thanks,


Answers:
author: Andrey Khaneev _StiltSoft_
body: Hi Pokala,

You can use [Table Filter](https://marketplace.atlassian.com/plugins/com.stiltsoft.confluence.plugin.tablefilter.tablefilter/cloud/overview) macro with option [Freeze rows](https://docs.stiltsoft.com/display/TableFilter/Managing+Look+of+the+Table+and+Filtration+Pane#ManagingLookoftheTableandFiltrationPane-FreezingFirstNRows/Columns) set to make long table scrollable.

comments: author: Brian Schussler
body: Does it work in Edit mode? Your page says it works after saving the page, which means you are in View mode.


author: Andrey Khaneev _StiltSoft_
body: Hi Brian,

Yes, it works in edit mode. You can see how it works on the [demo site](https://demo.stiltsoft.com/display/tblfilter/Managing+Look+of+Tables?os_username=guest1&os_password=guest1).


author: Bo Langgaard Lind
body: [@Andrey Khaneev _StiltSoft_](/t5/user/viewprofilepage/user-id/781696) I see it works fine on Stiltsoft's demo page, but, try as I might, I can't get it to work on our Confluence (which is the cloud version.)

Anything I'm missing, or is it simply "freeze rows" that does the trick?

I'm specifically looking for sticky headers, both column and row, in **edit** mode.


author: Andrey Khaneev _StiltSoft_
body: [@Bo Langgaard Lind](/t5/user/viewprofilepage/user-id/2906321)

These feature doesn't work in editor in Cloud version of Confluence, it works in page view mode only. Please, check whether you completed these steps:

1. Wrapped the table with Table Filter macro.
2. Set "Freeze first N rows" option to 1 in the macro settings.


author: Sutter, Michael
body: [@Andrey Khaneev](https://community.atlassian.com/t5/user/viewprofilepage/user-id/781696) When will the Cloud version have feature parity to the Stiltsoft's demo page?


author: Andrey Khaneev _StiltSoft_
body: [@Sutter, Michael](/t5/user/viewprofilepage/user-id/3379656) unfortunately it is not possible to develop this feature in for Cloud instances because of technical limitations. But I'll post here when the feature will be developed.


author: Bhuvnesh.Chandra
body: Is this feature not yet available in cloud version ?


author: Some Guy
body: In the Cloud Version my table header sticks by itself, without plugins.

In the Server Version I have to set the Stiltsoft Table Filter to "Freeze first N rows" and it sticks also in the edit mode.

Note: There can be only one "Heading row".
Confluence: How can I create a template with children?
Asked by Richard Brown:

I have a straightforward heirarchy, which is always the same, for my pages. I expected to be able to make a template so that, with one click, I could create a whole new page and its heirarchy - but this simple idea seems impossible. I feel very stupid. Help?

EDIT: I should have mentioned I am using the cloud version of Confluence. I don't have access to a server.

TIA

Richard


Answers:
author: Steven F Behnke
body: Templates can't do this. Unfortunately the Copy Page Tree ability hasn't been resolved yet, although it has been resolved on Server so I'd assume this is close behind.

<https://jira.atlassian.com/browse/CONFCLOUD-2814>

comments: author: Richard Brown
body: Thanks for the clear though very disappointing reply. I added a comment and vote to the link you sent: confluence looks to be an amazing environment, but without this (I consider very basic and obvious) templating function, cannot work for us. Damn, damn, damn: it would have solved other issues of ours very well, but my pressing need at the moment is for a simple cloud-based document project system. So this is probably a deal-breaker.


author: Steven F Behnke
body: You could develop or hire development of a blueprint: <https://developer.atlassian.com/cloud/confluence/blueprints/>

They're not tremendously difficult.

You could also consider augmenting your product by purchasing an add-on that provides the features you need. <https://marketplace.atlassian.com/plugins/com.nurago.confluence.plugins.treecopy/cloud/overview>

This is possible because Atlassian products have a robust API and extendability.
Getting Documentation pages and blogs content without Admin permission?
Asked by Aayushi Khandelwal:

Is it possible to get content of Atlassian Documentation pages and blogs

1. Space name /ID
2. Page Title
3. Child Pages of One Space
4. Child Pages of One page
5. Keywords similar to title of the page (Fuzzy)

through REST APIs or v2 Search APIs without Admin Rights?

If it is possible then how?


Answers:
author: Fabio Racobaldo _Herzum_
body: Hi [@Aayushi Khandelwal](/t5/user/viewprofilepage/user-id/1143090) ,

you simply need view browse permission of a specific space to retrieve that informations using rest API.

Fabio
@Implementation working with Active Objects in Confluence?
Asked by Tuelle:

Hi,

I found this article <https://dzone.com/articles/activeobjects-easier-java-orm> which describes how to put some business logic in an AO. The example is

```
@Implementation(CompanyImpl.class)public interface Company extends Entity {	// ...}public class CompanyImpl {	private Company company;		public CompanyImpl(Company company) {		this.company = company;	}		public void setName(String name) {		company.setName(name);				name = name.trim();		if (name.length() > 4) {			company.setTickerSymbol(name.substring(0, 4).toUpperCase());		} else {			company.setTickerSymbol(name.toUpperCase());		}	}}
```

in which Company is an Active Object that contains getName(..) and setName(..). Should this also work with Atlassian Active Objects? Is there another way how I can put some business logic in an Atlassian AO?

Thanks!


Answers:
author: Sahal Saad
body: Yes . It should work with AO.

You can refer this <https://community.atlassian.com/t5/Answers-Developer-Questions/Active-Objects-how-to-get-sorted-entities/qaq-p/483380>


Tags: active-objects
Set Label with User Macro
Asked by Melissa C:

Hello!

I created a User Macro that I ask our users to enter a Document Number (DocNum). I want to use that value and set the Label. So that users can use the search by label and easily find the document.

I can't figure out how to set the label.

I've tried "$action.helper.renderConfluenceMacro("{$paramDocNum}") but it didnt work. I received a Unknown Macro error

Any ideas?!


Answers:
author: John Corwith
body: can't say that I've gotten either of these to work...

<https://community.atlassian.com/t5/Answers-Developer-Questions/How-do-I-create-a-user-macro-that-adds-a-label-to-the-page-it-is/qaq-p/511791>

<https://community.atlassian.com/t5/JIRA-questions/How-do-I-add-labels-to-a-page-using-a-user-macro/qaq-p/129512>
Edit Restrictions on Sections of Confluence Page
Asked by Anju:

I want to have a table on my Confluence page to be editable after it's been approved. I don't want anything else on the page to be editable, just view only. How would I achieve this?


Answers:
author: John Corwith
body: Alternatives:

1. You can put the table on a child page with edit privileges and include the child page on parent restricted to view only. Use the *Include Page* or *Excerpt/Excerpt Include* macros. You could add a link on the parent to edit the table on the child.
2. You can put the table on a page of the same name in a different space and use the *Include Page* or *Excerpt/Excerpt Include* macros plus the *Space Jump* macro to create a link to the table page to edit it. One caveat here is that the Space Jump macro is in the Documentation theme which Confluence is deprecating in 6.0. But I should be posting an alternative user macro before then.


author: Shannon S
body: Hello Anju,

This is not currently possible in Confluence, but you can try [this using the information provided on a question](https://community.atlassian.com/t5/Answers-Developer-Questions/How-do-I-create-a-preformatted-and-editable-table-user-macro-in/qaq-p/555189) in our Developer community.

Let us know if you have any questions about this.

Kind Regards,  
Shannon


Tags: questions-for-confluence