youngmon/atlassian-qna huggingface dataset:
User Macro getGroup
Asked by Rene Hegewald:

I want to list users of a group, but if the group not exists, i get an error

## Users Pictures for Group - Confluence User Macro  
##  
## Produces a pile of user profile pictures for members of a specific group  
##  
## WARNING:  
##  
## Use very sparingly as this \*will\* slow down large Confluence instances.  
## Yes, it will try to print out 100,000 users if you have that many in the group  
##  
## I generally remove this user macro after using once and add only when needed.  
## Or enable it for admins only.  
##  
## @param Group:title=Group Name\|type=string\|required=true\|desc=The group name (yes, really)  

<br />

#set($containerManagerClass = $action.class.forName('com.atlassian.spring.container.ContainerManager'))  
#set($getInstanceMethod = $containerManagerClass.getDeclaredMethod('getInstance',null))  
#set($containerManager = $getInstanceMethod.invoke(null,null))  
#set($containerContext = $containerManager.containerContext)  

#set($userAccessor = $containerManager.containerContext.getComponent('userAccessor'))  
#set($groupManager = $containerManager.containerContext.getComponent("groupManager"))  
#set($group = $groupManager.getGroup($paramGroup))  
#set($users = $userAccessor.getMemberNamesAsList($group) )  
#set($komma="")  
#foreach( $username in $users )  
#if ( $username != "service" )  
$komma\&nbsp;  
#usernameLink($username)  
#end  
#set ($komma=",")  
#end

is there a way to catch this erorr and wrote a message "Unknown group" ?


Answers:
author: Gonchik Tsymzhitov
body: Hi!

Looks like getMemberNamesAsList gets so slow.

Because I have met the same situation in my plugin .

Have you fix it?

Cheers,

Gonchik Tsymzhitov


Tags: atl-dev
AD user configured, can't find, cannot disable else cannot log in.
Asked by Jonathon Leonard:

Hi

A departed team member has configured something in Confluence to use his AD account. We cannot disable his account without confluence denying login.  
E.g. Disbabling his account \>\> restarting the service \>\> waiting for it to boot again \>\> brwosing to the confluence page (tomcat returns a valid page for login so not service account) \>\> attempting to log in \>\> alerted with error when logging on.  
We really need this account disabled as they were a developer.

Please can you assist in locating the AD account so we can change it to a system account?

Thank you

Jonathon


Answers:
author: Guilherme V.
body: Hi Jonathan,

You'd have to login as the Confluence administrator and remove the AD from the UI. You can follow the steps of this link: <https://confluence.atlassian.com/conf64/restore-passwords-to-recover-admin-user-rights-936511358.html>

If I understood correctly, if you disable the user's account, no one else is able to login, is that correct? If yes, the best way would be accessing Confluence with the internal adminstrator. Please, bear in mind that if you remove the AD, all the accounts will be removed.
Subscribe/Get notifications to blog
Asked by Istv?n D?nyi:

I would like to subscribe to the blog of ++specific++ spaces, so ++not for the all spaces++ to which I have access. (Later is provided by checkbox can be set in my profile.)

Is it possible? How?

Thanks a lot for help.


Answers:
author: Thomas Schlegel
body: Hi Istvan,

yes, it's possible, of course.

Open the space with the blog, open the blog:

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

and click on "Watch this blog" in the upper right corner:

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

comments: author: Istv?n D?nyi
body: Well, I am going to test, but I tried the "blog" link previously, but it threw me on the first blog element, and not on the top of the blog pages.

So I did not set watching that time, since I would like to watch all new blog entries, not for only specific one.

However, I will make a try. Thanks!


author: Thomas Schlegel
body: If you click that link, you should see the following in your profile (under "Watches" / Space Watches);

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


author: Istv?n D?nyi
body: Great! The feature that I was looking for. :-)

Many thanks!


author: Thomas Schlegel
body: You're welcome, [@Istv?n D?nyi](/t5/user/viewprofilepage/user-id/233640)

If you think, your question is answered, please accept the answer with the check marker.

Other users with a similar question can find answered questions more easy with such a marker.

Thank you


author: Mike Mullins
body: Is it possible to have an anonymous user subscribe? Not all of our uses licenses have come back yet


author: Thomas Schlegel
body: [@Mike Mullins](/t5/user/viewprofilepage/user-id/2598956)

No, Confluence needs to know the user since it must send an email to her/ him.


author: Mike Mullins
body: Ok, Thank you very much


Tags: blog

subscription
How do I get the shortcut link I put into my footer open in a new window/tab?
Asked by Lucas Dotzler:

I have set up a shortcut to link to our service desk to be the footer of all pages in our confluence site. When that link is clicked, it stays in the same tab rather than opening a new one.

Is there a way to make that shortcut link open in a new tab when clicked?


Answers:
author: kennyngkk
body: Hi Lucas,

Looks like you are new here, please allow me to give you the warmest welcome to our community.

You will need to create a User Macros to ensure that the HTML code is change to a Wiki Markup. This will work not just for the footer. It will work anywhere you place the macro that accepts WikiMarkup :)

How to create and install the User Macro

1. go to `Administration -> User Macros`
2. create a new user macro called `newtablink`
3. The macro has no body.
4. The macro generates HTML markup.
5. Enter the following in the `Template` field:

    <a href="$paramurl" style="text-decoration:none;"target="_blank">$paramalias</a>

How to use

Go to the footer/link that you would like to open in a new page. Place the code below into place where you want to insert the HTML.

Sample:

```
{newtablink:url=http://www.atlassian.com}
```

If you would like to show it at Click here you can use the sample below.

Sample:

{newtablink:url=[http://www.atlassian.com\|Click](http://www.atlassian.com|Click) here}
How do I configure the format of team calendar email notifications.
Asked by lee rosenberg:

Would like to configure the notification to that they are plain text and easier to read.


Answers:
author: AnnWorley
body: Hi Lee,

The Team Calendar notifications work with the Confluence instance's email system. If you are using the Server version of Confluence, a developer can change the format, as described in [Customizing Email Templates](https://confluence.atlassian.com/doc/customizing-email-templates-168001822.html).

If you are using Confluence hosted at a URL that ends with "atlassian.net" then we don't have a way to change the email templates.

We have a feature request open for both Cloud:

[Option to Send Plain Text Emails Instead of HTML](https://jira.atlassian.com/browse/CONFCLOUD-36974)

and Server:

[Option to Send Plain Text Emails Instead of HTML](https://jira.atlassian.com/browse/CONFSERVER-36974)

Please vote or comment on the one that is relevant to your case in order to be added to notifications for the feature.

I am curious whether this is an issue with automatic screen readers used for accessibility purposes, as that was the original use case for the feature request.

Thanks,

Ann

comments: author: lee rosenberg
body: Hi Ann,

Thanks for the response. I found the [Customizing Email Templates](https://confluence.atlassian.com/doc/customizing-email-templates-168001822.html?_ga=2.31678526.1827670085.1521582207-2012261933.1510282081) post and saw that it was not supported and determined it was not a good solution.

Oh well. Thanks anyhow.


Tags: team-calendars-for-confluence
Issue Linking and Application Link
Asked by Vickey Palzor Lepcha:

Should issue linking in JIRA be activated along with app link for Confluence to fetch issues from JIRA ?

Or is application link alone sufficient between jira and confluence for fetching data over to confluence with issue linking deactivated ?


Answers:
author: AnnWorley
body: Hi Vickey,

A two-way application link will let Confluence users add Jira issues to Confluence pages:[Use Jira applications and Confluence together](https://confluence.atlassian.com/display/DOC/Use+Jira+applications+and+Confluence+together).

Issue linking in Jira allows you to create an association between two existing Jira issues on either the same or different Jira instances: [Linking issues](https://confluence.atlassian.com/display/JIRACORESERVER/Linking+issues)

Thanks,

Ann

comments: author: Vickey Palzor Lepcha
body: Actually Ann - on the Issue Linking Documentation page - I read the following line .

Issue linking also allows you to:

* Create an association between a JIRA issue and a Confluence page.

So - is issue linking feature necessary for sharing data between jira and confluence ?


author: Vickey Palzor Lepcha
body: Can i still pull data to confluence from jira if issue linking is deactivated in jira ?


author: AnnWorley
body: I just deactivated issue linking on my Jira instance and was able to add a Jira issues macro to a Confluence page connected to that Jira instance via application link.

I expect it to work for you as well. If it does not work, please let me know the versions of both applications so I can research more.


author: Cristian Rosas [Tecnofor]
body: Hi, basically in issue link options you can also use a Confluence link if you have the app link. In the instance I used for the screenshot I dont have Confluence linked, but you should see it below JIRA Issue and above Web link... probably?

<https://gyazo.com/b7591973de4e966a84d258382863e275>


Tags: application-link

issue-link

jira
Confluence Login Page Changed
Asked by Mike Tarsia:

the login page has changed. When I go to login I get the following error.

* [Skip to content](http://wiki.wbsfla.com:8090/index.action#title-heading)
* [Skip to breadcrumbs](http://wiki.wbsfla.com:8090/index.action#breadcrumbs)
* [Skip to header menu](http://wiki.wbsfla.com:8090/index.action#header-menu-bar)
* [Skip to action menu](http://wiki.wbsfla.com:8090/index.action#navigation)
* [Skip to quick search](http://wiki.wbsfla.com:8090/index.action#quick-search-query)

1. [Administration](http://wiki.wbsfla.com:8090/admin/console.action)
2. [Users](http://wiki.wbsfla.com:8090/admin/users/browseusers.action)

Not Permitted {#toc-hId-1792469721}
-----------------------------------

You are not permitted to perform this operation.


Answers:
author: AnnWorley
body: Hi Mike,

The "Not Permitted" message appears in Confluence when someone logs in who has a user account in Confluence but does not have Can Use [global permission](https://confluence.atlassian.com/doc/global-permissions-overview-138709.html). Usually these permissions are assigned based on group memberships.

Have there been any recent changes that could have impacted your group memberships?

If you are using LDAP to authenticate users in Confluence, and you have been able to subsequently log in, you may be experiencing: [Existing Confluence users get "Not Permitted" message after logging in](https://confluence.atlassian.com/confkb/existing-confluence-users-get-not-permitted-message-after-logging-in-293830803.html)

I look forward to hearing whether you are still seeing the "Not Permitted" error. If you are, please get a Confluence administrator to check whether you are in any groups that have the global permission to use Confluence.

Thanks,

Ann
Is there a way to add a picture to a page that does nothing but be a normal picture? (Not profile)
Asked by Allison Roberts:

I'm meaning a picture with no hyperlinks, a picture that doesn't do anything when you click on it - I found the Anchor macro where I could have the picture anchor to the line a few lines above it but was wondering if there was an easier answer. Thanks


Answers:
author: AnnWorley
body: Hi Allison,

I understand you would like to insert an image on a Confluence page. Please see: [Display Files and Images](https://confluence.atlassian.com/doc/display-files-and-images-245827130.html).

Images are viewed in a light box when you click on them but they don't navigate you away from the page, etc. If that is not what you are looking to do, please let us know more details so we can find the right answer for your use case.

Thanks,

Ann

comments: author: Allison Roberts
body: We want to stop the case where a user clicks on an image and then the screen turns grey with the image in the middle \& user has to click the 'x' to close the grey screen. Perhaps that's the "light box" you are referring to.


author: AnnWorley
body: Yes, that's the "document preview" feature. It can be disabled instance-wide by disabling the plugin that provides it: [Is there a way to turn off the "preview" feature and have the file download automatically when you click on the link or thumbnail?](https://community.atlassian.com/t5/Confluence-questions/Is-there-a-way-to-turn-off-the-quot-preview-quot-feature-and/qaq-p/201649)
> You can disable the Confluence Previews plugin under your System add-ons section. To do so you just need to go under your **Manage add-ons** page, select **All add-ons** on the drop box and then type **Confluence Previews** into the search field. Then disable it and the preview feature will not longer work.

[Selectively Disable Attachment Preview](https://jira.atlassian.com/browse/CONFSERVER-36736) is open to track the suggestion that we provide a more granular way to control the lightbox. If that suggestion fits your use case please comment or vote on the bug to start watching it.


Tags: image
Upgrading Confluence from 5.3.4 to 6.?
Asked by Michael Simeone:

I'm upgrading confluence from 5.3.4 to 6.+. I'm currently running on Win 2007. I have a new win 2016 server 64bit.

Is it possible to install a new version of 5.3.4 on the new server, and point it to a copy of the 5.3.4 DB which is SQL, Bring up confluence on the new server locally? Once up then run the upgrade on the new server from 5.3.4 to 6.+?


Answers:
author: josh
body: Hello Michael,

This should all be possible. You should follow Migrating Confluence Between Servers doc,

<https://confluence.atlassian.com/doc/migrating-confluence-between-servers-184150.html>

Basically it will involve installing a fresh version of confluence and moving your home directory.

Just make sure you shut down the old instance first, and don't start it again. You don't want to instances looking at the database.


author: AnnWorley
body: Hi Michael,

Thanks for reaching out to the forum while you are still in the planning stage. Hopefully that will help avoid surprises during the upgrade. :)

In order to move your Confluence 5.3.4 instance to the new server you would need to copy your Confluence [home directory](https://confluence.atlassian.com/doc/confluence-home-and-other-important-directories-590259707.html#ConfluenceHomeandotherimportantdirectories-homedirectoryConfluencehomedirectory) from the old instance in addition to pointing the new installation at a copy of the Confluence db. Installing a new instance will create a new Confluence [Installation directory](https://confluence.atlassian.com/doc/confluence-home-and-other-important-directories-590259707.html#ConfluenceHomeandotherimportantdirectories-Confluenceinstallationdirectory), with all default configuration, so for example, if you did any memory tuning or are running SSL defined in the server.xml, then those settings would be lost.

Please follow these documents to copy the existing instance and then upgrade:

[Restoring a Test Instance from Production](https://confluence.atlassian.com/display/CONF53/Restoring+a+Test+Instance+from+Production) (doc for Confluence 5.3.x)

* [Migrating Confluence Between Servers](https://confluence.atlassian.com/doc/migrating-confluence-between-servers-184150.html)
* [Upgrading Confluence](https://confluence.atlassian.com/doc/upgrading-confluence-4578.html)

I look forward to hearing how it goes.

Thanks,

Ann
Adding link to Confluence Page Via Rest API
Asked by John Everett:

Hi Everyone,

I would appreciate it if someone would help me determine how to add links to external resources via the API.

ie.   
... storage:{"value":"New content -- \[Atlassian\|<http://atlassian.com>\]"} ...

Will just update/create a page with the bracketed string printed rather than creating an embedded link.

Thanks in advance,  
John


Answers:
author: Eric Lam
body: Hey John,

The actual format of the text to post is Confluence's internal Storage Format. The easiest way to check the correct syntax of a page is save a page in Confluence and then click on the top right "..." and click "View Storage Format". This is the text that would need to be posted via the REST API.

Here's an example!

My Confluence page:

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

And here's the raw JSON I am posting to:

URL:

```
{
 "type":"page",
 "title":"Test page from REST API",
 "body":{ "storage":{"value":
 "<p>Link to&nbsp;<a href=\"https://community.atlassian.com\">Atlassian Community</a></p><p><br /></p><p><ac:link><ri:page ri:content-title=\"Test page\" /></ac:link></p>",
 "representation":"storage"}},
 "space":{"key":"PD"}
}
```

(remember to escape the quotes)

I've provided two linking methods in the above example:

1. The first links to Atlassian Community
2. The second link is to a Confluence page with page title "Test Page"

Cheers,

Eric

comments: author: Pavel Potcheptsov
body: Eric, do you have an idea how to get page's content through API ( i.e. content of "Value") in human readable format, I mean with line breaks as it looks if you open "View Storage Format" or open "Source editor" in Edit mode?

"View Storage Format"


author: kishore S
body: Hello Eric,

I am currently looking for similar requirement of getting clickable links using json restful table. It would be helpful if u can suggest if you found a way for the problem

Cheers,

Kishore


author: Venkatesh Nadamuni
body: Hi Eric,

I have the same question as Kishore. Is there a way to get clickable links into the table as content? I have tried a few iterations, but I keep getting just HTML syntax showing inside the cell

(such as: \<a href=<https://myapp.mydomain.com>\><https://myapp.mydomain.com>\</a\>)

Thanks

Venkatesh


Tags: atl-dev

rest-api
How do I parameterize a field in my jira filter?
Asked by lisaware:

Hello,

I have created a filter in Jira to display results of my team's current sprint. I used that filter to build a report for my PO in confluence. Currently, I am creating a new report at the start of a sprint. Is there a way for me to make the filter for Sprint = the Active or Current sprint?

Thank you


Answers:
author: josh
body: Hi Lisa,

Yes you can use JQL to select issues from open sprints:

<https://confluence.atlassian.com/jirasoftwarecloud/advanced-searching-functions-reference-764478342.html#Advancedsearching-functionsreference-openSprintsopenSprints>()

```
sprint in openSprints()
```


Tags: jira
Confluence super slow - not working
Asked by Guus Oosterbaan:

Today (and past week), I have barely been able to work in Confluence. Either it runs very slow or it simply doesn?t run at all (when trying to save). Worst has been draw.io It typically doesn?t manage to save a drawing.

Very disappointing!

Is there any maintenance or something like that going on ?


Answers:
author: Guus Oosterbaan
body: thanks


author: Nicole Burns
body: Yes, I saw that. I am now following that page, thanks for sharing the link. I'll work with our administrator to raise a ticket


author: Vickey Palzor Lepcha
body: I'd suggest you raise a ticket to Atlassian Nicole - there was an issue with Confluence Cloud services performance and they have marked it as resolved at Mar 20, 17:47 UTC

![confluence.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/17518i9FD642DE84721F53/image-size/large?v=v2&px=999 "confluence.JPG")


author: Nicole Burns
body: Yes, for two of the cloud instance I work on


author: Vickey Palzor Lepcha
body: You are talking about CLOUD right Nicole ?


author: Nicole Burns
body: Confluence slowness not Resolved for me! Pages aren't loading at all, or load without the page options I'd expect like Edit. Keep reloading, then it will show options. What needs to be shared to help troubleshoot this issue and resolve. I can't get any work done


author: Vickey Palzor Lepcha
body: Are you guys back now ? Issue has been resolved it seems.


author: Vickey Palzor Lepcha
body: Follow this page on CLOUD status

<https://status.atlassian.com/>


author: Vickey Palzor Lepcha
body: Is it CLOUD ? I think there have been updates on slowness from Atlassian.


author: Guus Oosterbaan
body: no, not yet


author: Peter Baxter
body: I'm getting the same today - did you get any feedback on this yet?
How to add teammates in confluence?
Asked by murthy routhula:

It is showing no users available if i keep on searching for my team-mates to add them in my teamspace by typing their user ids.


Answers:
author: NotTheRealStephenSifersNOPENOPENOPENOPE
body: Try "@" mentioning them:

<https://confluence.atlassian.com/doc/mentions-251725350.html>
Is it possible to change the backgroundcolor of a section and/or column macro?
Asked by Elena Hassler:

I would like to redefine the background colour of sections or columns on my page. For the panel macro I can do it with the following paramter: \<ac:parameter ac:name="bgColor"\>lightblue\</ac:parameter\> how can I use this or what permissions do I need to do this for section or column?

Thanks

Elena


Answers:
author: sekhar reddy
body: Hi [@Elena Hassler](/t5/user/viewprofilepage/user-id/1199557)

By using panel macros we can add colors to a particular section in a confluence page in cloud environment, I am not sure whether these are available in server/Data center versions.

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


author: kennyngkk
body: Hi Elena,

It looks like you are new here, please allow me to welcome you here into our community. We hope that you feel right at home here

Currently, there is no way to change the section color. However, we have a workaround.

1. Create a Section
2. Insert {backgroup color} macro( It will be autocompleted when you type { )
3. Insert Content
4. Save/update page

comments: author: sekhar reddy
body: Hi [@kennyngkk](/t5/user/viewprofilepage/user-id/337155)

Thank you for your answer, seems the macro has been renamed to Info panel in the cloud environment. But your answer is helped to resolve my issue.