youngmon/atlassian-qna huggingface dataset:
Add users with specific email to group
Asked by Andre:

Hi guys,

I'm searching for a solution that gives me the opportunity to add users with a certain e-mail adress to an additional group.

At the moment every logged in user is added to an internal confluence group. Some users with a specific e-mail "@abc.de" should be added to an additional group.

The only option i found at the moment would be a groovy script which would do that after the user is created. Or is there an easier way to do that?

I checked all groovy scripts for confluence i could and tried to add them to my needs. Actually it would only need a check for all users with the defined email adress.

```
import com.atlassian.confluence.user.UserAccessor
import com.atlassian.sal.api.component.ComponentLocator
import com.atlassian.user.GroupManager
import com.atlassian.user.UserManager

def groupManager = ComponentLocator.getComponent(GroupManager)
def userAccessor = ComponentLocator.getComponent(UserAccessor)

def specialGroup = groupManager.getGroup("special") ?: groupManager.createGroup("special")

**def users = userManager.users**

**def usersToMove = \["anuser", "u100"\]**

usersToMove.each { username ->

def user = userAccessor.getUserByName(username)

if (user) {
log.info "Add user ${user.name} to the group: 'Special Group'"
groupManager.addMembership(specialGroup, user) 
}
```


Answers:
author: Rafael Pinto Sperafico
body: Hi [@Andre](/t5/user/viewprofilepage/user-id/3566456) ,

Groovy script you have suggested seems a valid option based on your needs, if not the only one without modifying data from the database directly.

I would invite you to comment on <https://jira.atlassian.com/browse/CONFSERVER-56205> - **Provide REST API methods to manage users and groups**, as this could bring different ways manipulating users and groups without the need of a 3rd party plugin.

Kind regards,  
Rafael

comments: author: Andre
body: i finalized the groovy script and defined a event listener so that the script starts when a new user is created.


Tags: confluence-server

server
How do i change my Department and Job Designation in my profile in Confluence?
Asked by Anand Kailas:

While during registration for Confluence, i had mistakenly chosen another department and a corresponding job title from amongst the options. Actually i had moved from that role. And i want to choose another department and its corresponding job title. I am not sure how to do it


Answers:
author: Manisha Kharga _Appfire_
body: Hi [@Anand Kailas](/t5/user/viewprofilepage/user-id/3566454) ,

In Confluence server instance, you can update the Department and Position by clicking on **Profile** and then click on **Edit Profile** button. Please refer the attached screenshot.

![community.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/67023i433BFF5CC78A1768/image-size/large?v=v2&px=999 "community.jpg")

In Confluence hosted on Atlassian cloud, traverse to your Profile and click on**Manage your Account**then update the details as required.

Thanks,  
Manisha

comments: author: Anand Kailas
body: Hi [@Manisha Kharga _Appfire_](/t5/user/viewprofilepage/user-id/2695715)

Thanks for the guidance

It is working fine now

Regards,

Anand


author: Manisha Kharga _Appfire_
body: Hi [@Anand Kailas](/t5/user/viewprofilepage/user-id/3566454) ,

If you feel like this answer will be helpful for others, can you please accept or like the answer.

Thanks,  
Manisha
Migration of unmigrated content due to installation of a new plugin
Asked by quipu_eu:

Hi,

I have Confluence 6.14.1 in our Server.

Sometimes I have to restart Confluence (for example because it freezes). When Confluence is restarted, the pages has a new versions with the comment "Migration of unmigrated content due to installation of a new plugin".

This happen often but not every time. It is very frustrating because we have our Company quality system on Confluence and we must pay attention on the versions of the documents.

How can we prevent this problem?


Answers:
author: Diego
body: Hello there, [@quipu_eu](/t5/user/viewprofilepage/user-id/191780)!

The issue that your instance is facing is known and we have a report about it. But no need to worry, we also have a solution for it!

This versioning and migration happen *++every time a plugin Is updated/re-enabled/installed++* and Confluence restarts. Confluence is actually trying to *++migrate content within your pages++* but ultimately applies no changes.

Our real issue is that this can generate many undesired page versions while content remains the same. This can generate some content management problems in the long run.

Here, take a look at our report:
> * ++***[\[CONFSERVER-37710\] Confluence remigrates our content on restart if a plugin is updated](https://jira.atlassian.com/browse/CONFSERVER-37710)***++

Also, if you want a peek of the workaround, here is the excerpt from our report:
> 1. open *++CONF_INSTALL_FOLDER/bin/setenv.sh++* (or *++setenv.bat++* under windows)
> 2. locate *++"CATALINA_OPTS"++* and add the below line to the file:  
>    *++CATALINA_OPTS="-Dconfluence.startup.remigration.disable=true $ {CATALINA_OPTS}++*"
> 3. save the file and *++restart tomcat++*

Let us know if this helps you! Looking forward to your reply.


Tags: confluence-server

server
Cannot have a logo in the header of an export to PDF
Asked by eric_podico:

I Cannot have a logo in the header of an export to PDF

also I read the docs and tried 3 hours long.

I tried the PDF style sheet

[@Top](/t5/user/viewprofilepage/user-id/1903495)-center  
{  
styledimg {  
background-image: url(/download/attachments/692553099/CORPID_LOGO_Attolight_RGB_2-small-442.png);  
background-repeat: no-repeat;  
}

I tries PDF Layout

\<div class="fsTitlePage"\>  
\<img src="/download/attachments/780828775/CORPID_LOGO_Attolight_RGB_2-small-442.png" /\>  
\</div\>


Answers:
author: Shannon S
body: Hello Eric,

Happy to help you with this. I just want to clarify what you are trying to do. In your description, you said that you don't want to include logos in your export, but with your example, it looks like you *are* trying to include the logo in your header. Can you confirm that is the case?

When you [customize the Space Export to PDF](https://confluence.atlassian.com/doc/customize-exports-to-pdf-190480945.html), then those changes are applied to the entire Space. Single page exports do not support adding HTML headers and footers via the PDF Layout page, but you can do a full space export and then only select the page you need:

1. Choose **Export**
2. Select either **HTML** ,**XML** , or **PDF** , then choose **Next**
3. Select the type of export:
   * **Custom Export** -- Select the desired pages only.

See [Advanced PDF Export Customizations](https://confluence.atlassian.com/doc/advanced-pdf-export-customizations-198806890.html) for more information on how to do that.

An example of how this should look in your CSS:

    <div style="margin-top: 10.0mm;">        <img src="https://confluence.atlassian.com/download/attachments/12346/header-image.png" />      </div>

In this example, we've used the full URL to the desired image. It could also be the case with yours that it's not able to find the exact attachment you require. Perhaps you can try that if my above suggestion doesn't help?

Regards,

Shannon


Tags: atl-adm
On a page using task list for check boxes, it should be editable in page edit only
Asked by Karteek:

Our need is to have a check box control on the page and user should able to select the option in page edit only, but when we use task list user can check or uncheck even if the page is in view mode (not in edit)


Answers:
author: Shannon S
body: Hello Karteek,

Thank you for contacting us about this. While the user needs to have edit permissions to check off a task, it's expected behavior that they should be able to check off tasks while in view mode. This is how we intended the task macro to work.

There's a feature request to allow users with only view permissions to ***only*** **check off tasks that are assigned to them**:

* [CONFSERVER-56358](https://jira.atlassian.com/browse/CONFSERVER-56358) *Allow users with view-only permissions to check off tasks that they are assigned*

As a workaround, you can embed the [Page Properties Macro](https://confluence.atlassian.com/doc/page-properties-macro-184550024.html) (not the Page Properties **Report** Macro), set it to **HIDDEN**, and include the tasks there:

![Screenshot 2019-09-26 at 14.15.02.png](https://community.atlassian.com/t5/image/serverpage/image-id/67483i632F54A1DA059590/image-dimensions/432x205?v=v2 "Screenshot 2019-09-26 at 14.15.02.png")

This way, the panel will be hidden in view mode, and only people editing the page can see the tasks and check them off.

I hope that helps, but let me know if you have any questions about this.

Regards,

Shannon

comments: author: S_ Francoeur
body: For those like me who are keenly interested in seeing [CONFSERVER-56358](https://jira.atlassian.com/browse/CONFSERVER-56358) also implemented in Confluence Cloud, please also vote for: [CONFCLOUD-72831](https://jira.atlassian.com/browse/CONFCLOUD-72831)
Page variables, date field display default date as today
Asked by Karteek:

In Confluence, we are using date filed on a page, when we type // it is giving a date picker. Our need is to set the default date of the control is current date.


Answers:
author: Manisha Kharga _Appfire_
body: Hi [@Karteek](/t5/user/viewprofilepage/user-id/2776082) ,

If you press enter key after // then it will display the current date on your confluence page.

By default, the date picker field will always point to the current date.

![community1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/67176iDCF644925DF52B3F/image-size/large?v=v2&px=999 "community1.jpg")

Thanks,  
Manisha


author: Shannon S
body: Hello Karteek,

Nice to hear from you again!

There is a variable called $currentDate, but this is only included with the Meeting Notes Blueprint. There's a feature request below to be able to access those variables in other templates:

* [CONFSERVER-30567](https://jira.atlassian.com/browse/CONFSERVER-30567) *Allow for access to common variables in Blueprints templates*

If you're on Confluence Server, then you can [write a User Macro](https://confluence.atlassian.com/doc/writing-user-macros-4485.html) to do this. There are more details on the thread below:

* [Insert current date into Confluence page](https://community.atlassian.com/t5/Confluence-questions/Insert-current-date-into-Confluence-page/qaq-p/313517)

You can modify this User Macro to your needs, but you'd be able to insert the macro into any template you'd like and it'll automatically show the current date and time.

Additionally, you can just do what [@Manisha Kharga _Appfire_](/t5/user/viewprofilepage/user-id/2695715) suggested, and use the date macro. For this, you might want to add some [Instructional Text](https://confluence.atlassian.com/doc/create-a-template-296093779.html#CreateaTemplate-Instructionaltext) in your template to guide your users to select the current date using the macro.

Let us know if this helps!

Regards,

Shannon
How can I share my draft with only editors in a published page
Asked by Sarah Cheng:

When I edit new things in an already existed page, and want to let other editors check first before publish. How can I share this draft with them?

What I want to do is

1. edit current page

2. let my team approve and check the content first

3. publish the change

Now I can see the draft with my account only, is it possible to do it?

Please help me out. Thank you!

I am using Atlassian Confluence 6.3.3


Answers:
author: Ollie Guan
body: Hello [@Sarah Cheng](/t5/user/viewprofilepage/user-id/3566105) ,

If you have enabled collaborative editing, you can Invite people to edit with you.

<https://confluence.atlassian.com/conf63/collaborative-editing-929728809.html>

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

comments: author: Sarah Cheng
body: Thank you, however I don't have this in my confluence,

maybe because of the different version? My confluence does't look like the picture at all. :(


author: Ollie Guan
body: The picture above is a demo of version 6.3.

You can confirm with the system administrator whether the collaborative editing is enabled.

<https://confluence.atlassian.com/conf63/administering-collaborative-editing-929729955.html>

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


Tags: draft

share
Event handler of the publish button
Asked by andrea:

Hi, I'm trying to execute a window.alert() inside the click event handler of the publish button.   
First, I tried with a $("#rte-button-adhoctasks").click() and AJS.bind("init.rte", function()) but doesn't work with any version. After that, I changed it to Confluence.Editor.addSaveHandler() and it work in some confluence versions (eg. 6.15.9) but still fails in others (eg. 6.10.1).  

Am I missing something?


Answers:
author: Shannon S
body: Hello Andrea,

Welcome to Atlassian Community. Happy to help!

Could you help me to understand what it is you're trying to do? I suspect that you might be attempting to develop an add-on for Confluence.

If so, you might want to check instead with our [Developer Community](https://developer.atlassian.com/resources). That community is more focused on developing for Atlassian products, whereas this community is for helping end-users mostly.

Regards,

Shannon


Tags: atl-dev

confluence-development

confluence-server

server
Berechtigungen f?r neue Mitglieder in der Cloudversion
Asked by Jasmin in der Weide:

Hallo,

wir nutzen die Cloudversion und haben Probleme, die Berechtigungen f?r neue Personen anzulegen.

Wir haben die Bereiche der Einstellungen und Gruppenerstellungen gefunden und alles beschr?nkt eingestellt.

Nun ist es jedoch so, wenn wir eine neue Person einladen und diese den Anmeldevorgang durchf?hrt (Passwort setzen etc.) kann diese Persoen neue Mitglieder einladen, Seiten hinzuf?gen und im Prinzip auf alles zugreifen und dies ver?ndern.

Und das, obwohl sie eigentlich eine eingeschr?nkte Berechtigung ausschlie?lich zum ansehen hat.

Kann dazu jemenad weiterhelfen?

Vielen Dank im Voraus!


Answers:
author: Sloan
body: Hi Jasmin

Willkommen in der Atlassian Community. :)

Das klingt fast so als w?ren neue User automatisch in einer Gruppe mit Admin-Rechten. Schau am besten bei den Gruppen in Confluence nach.

Atlasssian erkl?rt hier was Default Groups sind: <https://confluence.atlassian.com/confcloud/confluence-groups-724765433.html#ConfluenceGroups-DefaultConfluencegroups>

Und hier die volle Doku zum bearbeiten und erstellen von Gruppen: <https://confluence.atlassian.com/cloud/create-and-update-groups-744721627.html>

Schau dir am besten an welche Gruppen Ihr habt und dann welche globalen Rechte diese Gruppen haben: <https://confluence.atlassian.com/confcloud/global-permissions-overview-724765488.html>

wenn du es damit immer noch nicht l?sen kannst, teile doch einen Screenshot der Gruppen mit uns (sofern keine Usernamen etc. zu sehen sind).

Viele Gr?sse  
Nick

comments: author: Jasmin in der Weide
body: Hallo Nick,

vielen Dank f?r Deine schnelle R?ckmeldung!

Es besteht eine Gruppe "Confluence-Users", die von Confluence automatisch vorhanden war. Daf?r haben wir die Rechte so beschr?nkt, dass nur bei "Alles sehen" ein Haken ist![Gruppen Confluence.png](https://community.atlassian.com/t5/image/serverpage/image-id/66889iC9374ECDF6FD7207/image-dimensions/508x296?v=v2 "Gruppen Confluence.png")

Oben kannst Du sehen, welche Gruppen es gibt. Allerdings sind nur in der confluence-user Gruppe Personen. Unten siehst Du die Einstellungen die wir vorgenommen haben.

![Berechtigungen.png](https://community.atlassian.com/t5/image/serverpage/image-id/66890iDF67E4307292EE3F/image-dimensions/551x124?v=v2 "Berechtigungen.png")


author: Sloan
body: Hi Jasmin

So wie ich das sehe stimmen die Einstellungen die ich sehe. Neue User landen in Confluence-Users. Sofern der zweite Screenshot f?r all eure Bereiche gilt, d?rfen diese User dann auch nur Lesen und Attachments anh?ngen.

Am besten checkst du als n?chstes die Global Permissions. Hier ist der weg dorthin der Doku entnommen:
> Go to Settings (or \[Zahnrad\]) \> Global Permissions and tap Edit Permissions.
Is there a way to get a list of child pages that is without labels?
Asked by Sven Bj?rn Lillesl?tten:

Given av parent page I want to group the child pages by labels. But I also want to list those child pages that don't have any label yet.


Answers:
author: Shannon S
body: Hello Sven,

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

For this, you would be able to use the 3rd-party add-on [Page List \> Show Pages Without Label](https://marketplace.atlassian.com/apps/1219410/page-list-show-pages-without-label?hosting=server&tab=overview), or by writing your own [User Macro](https://confluence.atlassian.com/doc/writing-user-macros-4485.html). These options are both only available on Confluence Server.

There's also a CQL search that can do this: [Show Pages Without Labels](https://confluence.atlassian.com/confkb/show-pages-without-label-964981320.html).

I hope that helps, but let me know if you have any questions.

Regards,

Shannon

comments: author: Sven Bj?rn Lillesl?tten
body: Thank you. The CQL-search made my day! (we are using Jira Cloud so the add-on is not an option).

But I had to use the [old experience](https://arkivverket.atlassian.net/wiki/dosearchsite.action?queryString=type%3Apage%20NOT%20labelText%3A%5Ba%20TO%20z%5D&cql=siteSearch%20~%20%22type%3Apage%20NOT%20labelText%3A%5Ba%20TO%20z%5D%22%20and%20space%20%3D%20%22IT%22&search_id=95302ffb-2ea6-4a8b-8daf-328e2a173d90) search to get correct result.

Regards

Sven B.


author: Shannon S
body: Hi Sven,

Can you tell me what was inaccurate with your results if you use the current built-in search? If I search in Confluence right now, I get 34 results on my instance, but none if I use the **dosearchsite** search action.

Regards,

Shannon


author: Suresh Venkat
body: [@Shannon S](/t5/user/viewprofilepage/user-id/510046) : The CQL search that can do this: [Show Pages Without Labels](https://confluence.atlassian.com/confkb/show-pages-without-label-964981320.html)

is not giving out the CQL Search for showing pages without labels. Please check. It is just a confluence Query


Tags: confluence-cloud
Reorder page in confluence is blank
Asked by Karthick Jaganathan:

Reorder page in confluence is blank in one particular space. Other spaces we can able to see.

Gliffy version is 6.8.4


Answers:
author: John Almeida
body: Hi Karthick,

Are you retrieving a blank Gliffy Diagram when reordering pages in Confluence?

If so, can you send detailed steps to recreate this issue to support@gliffy.com so they can help retrace your steps and look into this?

comments: author: Karthick Jaganathan
body: Gliffy version is just for extra information.

Actual error when moving pages is "Error Retrieving Bread crumbs"

Error in Logs :

-- space: 179044353 \| url: /plugins/editor-loader/editor.action \| page: 178334653 \| traceId: 0e76b8b9d6dda15f \| \| referer: http://xxxxxxxx/display/EH \| action: editor  
ognl.OgnlException: breadcrumb \[java.lang.IllegalArgumentException: Run over breadcrumb limit for xxxxxx Home\]

Quick help is much appreciated.


Tags: confluence-server

server
Rich link
Asked by Rushana:

Good day.

How I can change text for rich link?

For example, I would like to remove text "???? ??????" here: <https://gyazo.com/02e51130380c08f732fe03c16dd9bdaa>

thanks


Answers:
author: Nic Brough -Adaptavist-
body: Could you explain what this has to do with Confluence?
Is there a way to modify the port number of http?
Asked by xin qiu:

Hi There,

I install confluence in linux VM according to the following link, the default port number: 8090.

<https://confluence.atlassian.com/doc/installing-confluence-on-linux-143556824.html>

Is there a way to modify the port number 8090 to 8080 after installing confluence successfully?

Best,

Robert


Answers:
author: Vickey Palzor Lepcha
body: Yes - just make changes in the server.xml file and reboot your environment.

But make sure that nothing is running on 8080 already.

comments: author: xin qiu
body: Previous I use 8090. But 8090 is listening via "netstat -a \|grep 8090".

How can I make 8090 start to listen again?


author: Vickey Palzor Lepcha
body: Open file server.xml and change the port number - from 8090 to 8080 OR 8080 to 8090.

After the change - restart Confluence.


author: Sloan
body: Hi there Robert

Actually yes there is! :)

You can alter the port in the server.xml inside the installation directory of confluence. Check out this article: <https://confluence.atlassian.com/doc/change-listen-port-for-confluence-165823.html>

Just a side note, port 8080 is the would be standard port Jira uses. Keep it in mind should you ever install a Jira on the same server.

Cheers  
Niklas

comments: author: xin qiu
body: Previously I use 8090. But 8090 is listening via "netstat -a \|grep 8090".

How can I make 8090 start to listen again?


author: Sloan
body: Follow <https://confluence.atlassian.com/doc/change-listen-port-for-confluence-165823.html?_ga=2.153982840.1976192977.1569228461-1859519111.1568712801>

Please note Confluence requires a restart for the changes to take action.


Tags: server
When exporting a page containing expand macro to pdf, the macro title is not visible.
Asked by collab-admin_lge_com:

We just upgraded our constitution from 6.2.3 to 6.15.8.  
However, if you export a page containing expand macro to a pdf file, as shown in the title, the expand macro title is not visible.  
These were shown before the upgrade.  
Is this an error?  
Or is it changed with the upgrade?  
Please check it.


Answers:
author: Shannon S
body: Hello [@collab-admin_lge_com](/t5/user/viewprofilepage/user-id/645624),

Thank you for contacting us about this! Happy to help.

I've seen this issue in the past, and it was caused by this bug:

* [CONFSERVER-57934](https://jira.atlassian.com/browse/CONFSERVER-57934) *Adding panel,excerpt,warning,note,tip or info macro to the page in edit mode will trigger mixed content action in browser*

If you are running your Confluence instance behind https:// with an SSL, you might be affected by this. As a test, you can access your site with http:// instead of https://, and if the PDF export works, then you are affected.

There's a javascript workaround mentioned in the bug. If you are affected, please try that and see if it corrects your issue.

Regards,

Shannon

comments: author: SMN Tecnologia da Informa??o
body: Hello, after the upgrade to "Confluence 1000.0.0-78f34aadee99" I have the same problem, any suggestions?


author: Shannon S
body: Hello [@SMN Tecnologia da Informa??o](/t5/user/viewprofilepage/user-id/1186179),

I have yet to encounter this issue on the Confluence Cloud platform, which is the version number you're referring to.

I recommend that you [raise a support ticket](https://support.atlassian.com/contact) with our Cloud team, so we can have a look at that for you!

Shannon


Tags: expand

export

macro

pdf