youngmon/atlassian-qna huggingface dataset:
Confluence REST API Capabilities for Publishing an External Data Feed on a Confluence Page
Asked by Collin Canright:

I'm working to understand what's possible using the Confluence REST API in a server environment and having difficulty. What I have seen so far looks like it relates to content in Confluence. Not quite understanding REST API capabilities in general, I'm not sure I would be able to do what I want: bring data from an external application and display it on a Confluence page using data extracted from the external application's REST API as the source and a Confluence page as the target to display selected data from the feed.

The result is to be a Confluence page that serves as a dashboard reporting daily updates on jobs run by the external application, much like the dashboards we create to report selected items from Jira. I am also assuming we would use the HTML Macro to publish on the page.

Is this possible? Am I on the right track?


Answers:
author: Robert Knazik
body: I would be interested in an answer to this also. I want to publish data from an external xml file to a confluence page. So far I haven't found anything that shows how to do that.


Tags: api

atl-dev
Need JQL query help using both "includes" and "excludes" in the same query
Asked by Doug Henderson:

I am trying to create a query to find Jira issues in a project that include the Comment text "Ready for UAT" but exclude the Comment text "UAT done".

In other words, if Comments in an issue only include the phrase "Ready for UAT" then display that issue in the results. However if the Comments in an issue include **both** "Ready for UAT" and "UAT done", then exclude that issue from the results.

I've tried various combos of \~ and !\~, AND and NOT, etc. but nothing succeeds so far.

For example,

```
project = ABCD AND Comment ~"Ready for UAT" AND Comment !~ "UAT Done"? 
```

does not succeed. It still shows results that include both phrases.

Any suggestions?


Answers:
author: Boris Berenberg - Atlas Authority
body: The problem is that you have UAT in both. I would try something like

```
project = ABCD AND Comment ~"Ready for" AND Comment !~ "Done"? 
```

comments: author: Doug Henderson
body: I just tried the recommended solution but got the same unsuccessful result. It is still including issues with both strings in the Comments.


Tags: jira
Table of Contents - not showing once I click save.
Asked by Elizabeth Marquardt:

Hello

I am adding a table of contents and following the editing instructions, however, when I click save, my table of contents does not show, nor does it link to any part on the page. Any suggestions? Thanks.


Answers:
author: Boris Berenberg - Atlas Authority
body: Do you have headings on the page? Did you fill out the macro options to match what you're looking for?
Confluence Access for customer
Asked by Mark Schullstrom:

We set up a Confluence Space to share information with a customer. We set them up as users and restricted it so only they can see the information.

Once in and they are in the Confluence Space. If they click on any of the links the end up at an old Jira Service Desk Knowledge Base page that we have and do not use.

We can not figure out the setting to stop this behavior.


Answers:
author: carolyn french
body: Hi Mark, Welcome to community!

Can you give examples of "any of the links"? You should be able to get rid of those links by editing the page or the space shortcuts, but it would help us troubleshoot if you could give more info around this (or even better a screenshot).

Thanks,  
Carolyn
remove white space on left side of page - after panel added
Asked by tglucky:

i've created a custom template, and when the panel is added to a page, it seems like the whole content area is indented. any recommendations for how to eliminate the white space on the left? (below the page title/picture there is a lot of unnecessary white space):

thanks in advance!

![Screen Shot 2018-03-07 at 15.28.32.png](/t5/image/serverpage/image-id/16607iE444AA63B9DF57AB/image-size/large?v=v2&px=999 "Screen Shot 2018-03-07 at 15.28.32.png")


Answers:
author: Helen Griffith
body: More white-space issues before and after macros: <https://jira.atlassian.com/browse/CONFCLOUD-62519>


author: Shannon S
body: Hi Tom,

Can you confirm what version of Confluence you're using and what exactly is in your template? I created a User Template in my Space Tools which just includes a table, and I'm not able to replicate the issue.

Does this occur for many templates that you create or only specific ones? Is there any particular macro in the template that might be causing this?

Regards,

Shannon

comments: author: tglucky
body: version below.

this seems to happen for all templates. I'm using a standard panel, livesearch and page tree macros (see screenshot below).

![Screen Shot 2018-03-09 at 10.30.22.png](https://community.atlassian.com/t5/image/serverpage/image-id/16784iFBFBA640ED6A5F73/image-size/large?v=v2&px=999 "Screen Shot 2018-03-09 at 10.30.22.png")

![Screen Shot 2018-03-09 at 10.28.50.png](https://community.atlassian.com/t5/image/serverpage/image-id/16779i7FA066967CD2E0AC/image-size/large?v=v2&px=999 "Screen Shot 2018-03-09 at 10.28.50.png")


author: thais
body: Hi, Tom,

Unfortunately, this problem seems to be related to the following open bug: [CONFCLOUD-56932 - Formatting Changes when Including Specific Macros in Pages](https://jira.atlassian.com/browse/CONFCLOUD-56932).  

There's no workaround at the moment, but we suggest you add yourself to the bug report above to receive updates on its status. For additional information on Atlassian's bug fix policy, please visit [this guide](http://confluence.atlassian.com/display/Support/Atlassian+Bug+Fixing+Policy).


Tags: confluence-cloud
Read Only Users Permissions
Asked by Tiziano Tanganelli:

I'd like to show one space to an anonymous/guest user but i don't want to let him see the other spaces of my Confluence.

I've set View All for Anonymous users but with this option they can enter in all of my spaces and pages just clicking on atlassian logo and then choosing another space.

How can i solve this problem?


Answers:
author: Nicolas Werle _Decadis AG_
body: Hi [@Tiziano Tanganelli](/t5/user/viewprofilepage/user-id/1194450),

to make sure, that anonymous users have no access to your spaces you have to go to your space permissions and disable the anonymous view permission in that space.

Best,

Nic
How to automatically move pages in confluence??
Asked by ashrafsaleh:

Dears experts,

I would like to be able to automatically move confluence pages within the same instance but to different parent based on the page status or jira status that is linked to the page.

ex: status of a project page is changed to "Finished", then this page should be moved/reordered automatically to a new parent called "Delivered Projects".

Is confluence capable of doint this or can I use macro or special plugin??

Thanks a lot in advanced.


Answers:
author: Judith
body: Hi there,   
I would also like to move the pages to another parent pages, based on the page state. Did anyone come up with a possible solution?


author: Patrick Cartier [Candylio]
body: Confluence does not offer this out of the box.

You could try page states as triggers in Comala workflows: <https://wiki.comalatech.com/display/CW/trigger>


Tags: atl-dev

confluence-app

jira

macro

questions-for-confluence
Can I create an administrator that isn't a user?
Asked by Joost Houwen:

Hi

Setting up our Jira and Confluence environment we had to set up a basic administrator account. We used this account to configure LDAP-authentication.

This account isn't a user, but it counts as one. If we delete it though, we can no longer edit the LDAP settings.

Is there a way so we no longer need this admin account, or adjust the settings so it won't be seen as a user (or can do user things)?

Kind regards,

Joost


Answers:
author: AnnWorley
body: The internal admin is recommended and in fact we have a health check to verify it is active, in case you get locked out of LDAP one way or another. [Health Check: Internal Administrator User](https://confluence.atlassian.com/confkb/health-check-internal-administrator-user-829068290.html)

At the same time, I understand your concerns at having this super user enabled and taking up a license.

One customer I worked with kept the internal admin disabled and then re-enabled it when needed by running a query on the database similar to:

```
update cwd_user set active = 'T' where user_name ='administrator_name_you_set';
```

I look forward to hearing what you decide.

comments: author: Joost Houwen
body: That solution could work for us, thanks! I just need to find a place apart from Confluence to document this method. :P

Thanks again!


Tags: jira
Imported space permissions are not aligned to space permissions
Asked by sn:

hi all,

users of Confluence 5.10 server.

we have recently imported a space from another Confluence (5.2). some users are in both apps but different login credentials.

the problem is even after deleting all existing permissions and adding our standard permissions. Users are unable to move,delete pages from imported space. Only Confluence admins are presented with this ability.

i had both scenario users test this. users who have accounts in both and also users who are only in our enterprise confluence. both faced same issue.

while the same permissions are set to all native spaces-- User can move the pages within these spaces.

we have a space created using the "Software Project" option where the space is auto linked to the JIRA project. we want to move all pages from imported space to this space. but if the users are not inheriting the permissions then that is an issue.

thanks !


Answers:
author: AnnWorley
body: Hi! The pages moved from the imported space should be subject to the permissions in the target space, which I understand was not imported. XML full site imports import users and overwrite existing users. Space imports don't import users at all, so only the users from the Confluence 5.10 instance should be able to access the imported space.

Please test it by copying (not moving for now) a page from the imported space and then checking whether the permissions of the destination space apply as expected.

I look forward to hearing the result.

Cheers,  
Ann

comments: author: sn
body: thanks Ann !

it was because the page had edit restrictions. when i removed the edit restrictions on the page, the users are able to move but i ran into a different issue. I'm getting time-out error and unable to move the bulk pages. i see below error. there are about 220 pages.

any workaround appreciated.

The following error(s) occurred:

* Move failed. There was a problem contacting the server

Thanks !


author: sn
body: never mind! It did move the pages even after the error. That error message should be fixed since it is confusing the user.


Tags: confluence-administration

questions-for-confluence
How to create a page from a template with Python using REST API?
Asked by Natsuko_Kinoshita:

Hello, I'm trying to create a python script that creates a page from existing template in Confluence, but I get 500 Server Error: Internal Server Error.

Could someone point out where I'm doing wrong in my following code?

```
#!/usr/bin/python
# coding: utf-8
import requests

BASE_URL = "https://xxxx.xxxxx.com"
HEADERS = {"content-type": "application/json"}
AUTH = ("myConfluenceUser", "myConfluencePassword")

def create_draft_page(draftId, pageTitle, spaceKey):
    # Use HTTP method POST
    response = requests.post(
        BASE_URL + "/rest/api/content/blueprint/instance/" + draftId,
        auth=AUTH,
        params={"title": pageTitle, "spaceKey": spaceKey},
        headers=HEADERS)
    response.raise_for_status()
    return response

def main():
    print "-------------- start --------------------"
    draftId = "12345678" # An existing draft id for template
    create_draft_page(draftId, "My Page Title", "Space Name")
    print "-------------- end ----------------------"

if __name__ == "__main__":
    main()
```

I am using a following page as my reference.

<https://docs.atlassian.com/atlassian-confluence/REST/5.9.6/#d3e392>

It says the request format as:

### /rest/api/content/blueprint/instance/{draftId} {#toc-hId-1595032476}

with POST method.


Answers:
author: Natsuko_Kinoshita
body: Could anyone can help me?

I tried using curl to do the same thing above, but with no luck...
> curl -X POST -H "Content-Type: application/json" -o myoutput -u user:password http://xxxx:xxxx/rest/api/content/blueprint/instance/12345678

Above will give me the following error.

{"statusCode":500,"message":"java.io.EOFException: No content to map to Object due to end of input"}


Tags: blueprint

python

rest-api
Confluence page permissions
Asked by Avinash Singh:

Hi,

We have a requirement where we want users to be able to search all content is confluence but without read access. Clicking on the search results, results in an access denied page where the user can request access. Is this possible ?

Regards,

Avinash


Answers:
author: Nic Brough -Adaptavist-
body: No. There is no point in being able to search for things a user cannot see. If they can find things (even if they can't see the pages initially), then that's leaking the information that is restricted, so you might as well forget restrictions and open it up to them so the search works because they can see it.

I suspect your requirement is broken.
Confluence Server to Version 6.7 - screen shots to prepare users
Asked by Kevin Seery:

Hi,

We are upgrading to Confluence Server Version 6.7 that has the new look. Dose any one have screen shots that show the new look in more detail than the Atlassian upgrade notes.

Many Thanks

Kevin


Answers:
author: Nicolas Werle _Decadis AG_
body: Hi [@Kevin Seery](/t5/user/viewprofilepage/user-id/733995),

I think, preparing users will not be necessary. There are new colors, new icons, but the handling and administration is still the same.

Best,

Nic![conf1.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/16552i98E49E0DBF1FB3AF/image-size/large?v=v2&px=999 "conf1.PNG")![conf2.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/16553i0645A1B1A4A74BB3/image-size/large?v=v2&px=999 "conf2.PNG")

comments: author: Kevin Seery
body: Hi Nicolas,

Thanks for your feedback on this has help me.

Would be nice to see some of the features in Cloud come to server.....

Thanks

Kevin
how can I adjust the date format of function "//"
Asked by John de Groot:

In a table I have one column that only contains a date created by "//" .

If I want to sort the table rows on the date in that column, it will sort first by day, then month, then year as the format for "//" is dd-MM-yyyy (so 2 april 2018, 3 may 2019, 4 april 2018).

In general settings I changed the format to yyy-mm-dd, but that has no effect on the date created by "//".

how can I adjust the date format of function "//" ?

(OR How can I correctly sort the table rows on dates specified in a dedicated column ?)


Answers:
author: Max Foerster - K15t
body: Hi John,

how the macro renders the date depends on the overall language settings of your instance, language setting in the user profile and your browser (in that order). It's not affected by the the Date Time Format you just changed.

Best, Max


Tags: date

format
How sort rows in a table, based on date
Asked by John de Groot:

In a table I have one column that only contains a date created by "//" .

If I want to sort the table rows on the date in that column, it will sort first by day, then month, then year as the format for "//" is dd-MM-yyyy (so 2 april 2018, 3 may 2019, 4 april 2018).

In general settings I changed the format to yyy-mm-dd, but that has no effect on the date created by "//".

How can I correctly sort the table rows on dates specified in a dedicated column ?

(or how can I adjust the date format of function "//" ?)


Answers:
author: Mirek
body: You are facing this problem - <https://jira.atlassian.com/browse/CONFSERVER-34225> unfortunately when using // it is not yet supported. You can try to add dates as normal text and then it will be sorted as expected.

comments: author: John de Groot
body: Thanks for your response and suggestion (we came up with the same alternative).

... Sometimes we are surprissed by the functionallity and flexibility of Atlassian.

... Sometimes we are dissapointed by the immaturity and inflexibility of Atlassian.


author: Mirek
body: [@John de Groot](/t5/user/viewprofilepage/user-id/570839)- I need to recall myself that this is not supported since I check a little deeper and this feature looks like it is actually implemented in 5.8 Confluence. However since then there is a bug :) - <https://jira.atlassian.com/browse/CONFSERVER-38083> . So, you might be affected by it or do not yet have 5.8 (or higher) and have not this feature available. Anyway suggestion did not change .. it is better to keep using the alternative solution until this will not be fully fixed and working for everyone.
Giving a Jira group access to confluence site
Asked by Andreas Mohrs:

Hello,

I would like to give a Jira group access to a confluence site. I can see the Jira group in confluence but when I get the group access to the confluence site it is not working.

I also gave the group global access rights but the same picture.

When I give a single user of the group access to the site it works fine.

Best regards,

Andreas


Answers:
author: Vasiliy Zverev
body: 1. Do you have the only user directory?
2. Try to synchonise user directories with JIRA.

comments: author: Andreas Mohrs
body: Hello Vasiliy,

thanks for your feedback.

1. Do you have the only user directory? --\> What do you mean with that?
2. Try to synchonise user directories with JIRA --\> Dosen't change the situation.

Just to be sure:

I created a new group in Jira and added some user's

I assigend the group with read/write rights two a new confluence page

Result:

I can't even see the confluence site when I'm logged in as one user of the assigend group.


author: Vasiliy Zverev
body: Is global permissions are granted to this group?


author: Andreas Mohrs
body: I gave the same global permission as the confluence or jira user has.
Disable email notification on Likes for posts I make
Asked by Stig Marthinsen:

How can I disable email notifications on Likes for posts I make ?

I like to get notification on posts I make, if there are any comments... but not on Likes. Same goes for the app..


Answers:
author: Jonathan
body: <https://confluence.atlassian.com/doc/likes-and-popular-content-278695530.html>


author: Patrick Cartier [Candylio]
body: Confluence notifications aren't very granular for each type of action. You can unwatch pages, but that means you won't receive notifications for comments either.

I would do this on your email client side. Filter the 'like' emails but not the 'comment' ones.

For the app I believe it is not possible to choose one but not the other.

comments: author: Stig Marthinsen
body: Hmm this is **very disappointing**...

I can live without the app, and because of this notification noise, the app has been uninstalled.

The fact that I need to create filters in my mail client to get my wanted notifications, well I guess it will make me less active in Confluence then.


author: Patrick Cartier [Candylio]
body: Just looked into the app a bit more, you can adjust your preferences to not include likes but include comments by selecting the custom notification button in "Push Notifications" in your settings cog
Configuring Application Links to Google services
Asked by Alex Medved _ConfiForms_:

Hi wonderful Atlassian community!

I am trying to configure Application Link (from Confluence) to Google services, basically to establish a oAuth connection and access Google spreadsheets APIs in particular.

Has anyone got this configured? Any hints?


Answers:
author: AnnWorley
body: Atlassian's application links are designed to link Atlassian applications together. I found an article on how to connect to Google's sheets API using Python: [Browser Quickstart](https://developers.google.com/sheets/api/quickstart/js)

Please let us know more about what your requirements/use cases are. It may be possible to write an add-on for Confluence that uses the Google API to do what you need. Here is [another resource](https://community.developer.atlassian.com) to try for add-on advice.


Tags: application-link
logged in users unable to search confluence Jira Service Desk Knowledge Base
Asked by John Humphreys:

We have a knowledge base for our service desk that has anonymous content for students to view and restricted content for staff to view.

The staff can login to view the content but can't search. As not permitted.

These staff aren't in the confluence users group but are allowed to login and view the data.

As an anonymous user they can search the knowledge base without any permission issues but can't search the restricted pages.

We use jira as the source user directory and jira uses our Acitve Directory.

The only article I can find related to this issue is:

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

which has been marked as a low bug.

I would appreciate help with this. I don't need all staff to be users of confluence as only want certain staff to create content. But do want them to be able to search content that they have access to.


Answers:
author: Shannon S
body: Hi John,

Where are the users trying to search, directly in Confluence, in a LiveSearch Macro, or on the Customer Portal? The bug you linked is for Confluence Cloud and relates only to LiveSearch macro so I think you may be having a different issue.

What version of Confluence and Jira Service Desk are you using?

If I were to replicate myself:

1. Create a space which has anonymous access configured.
2. Restrict a portion of the pages within that same space to "staff" only.
3. Connect that space to my Service Desk.
4. Login as a customer account, attempt to search and view content directly on Confluence (and not the Customer Portal view)
5. Login as a staff account, and attempt the same.

Can you confirm?

Regards,

Shannon

comments: author: John Humphreys
body: ### Confluence 6.4.0 {#toc-hId-1595060345}

### JIRA v7.5.0 {#toc-hId--957096616}

### JIRA Service Desk Application v3.8.1 {#toc-hId-785713719}

Replicate steps are correct.

Anonymous access can search and view find the unrestricted content.

Customer Account to veiw restrcited content on the knowledge base needs to **not be in the confluence-users** group and yes not in the Customer Portal View.


author: Shannon S
body: John,

Thank you for your patience. Now I understand the issue you were describing.

This is due to the fact that Service Desk Customers have limited functionality in Confluence having not been provided a Confluence license seat.

This is expected behavior, but we do have a feature request here to give them more access:

* [CONFSERVER-45631](https://jira.atlassian.com/browse/CONFSERVER-45631) *Unlicensed Users from Service Desk Have Limited Functions*

They will still be able to search the Confluence space using the [Customer Portal](https://confluence.atlassian.com/servicedeskserver038/configuring-the-customer-portal-935909243.html#Configuringthecustomerportal-setUpRequestTypesSetuprequesttypes) in Service Desk in the *What do you need help with?*box.

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

Regards,

Shannon
Edit in Office - No Visio?
Asked by Landon Miller:

My firm uses Office 2013, and Chrome; if I upgrade to Office 2016, or more specifically Visio 2016, will Confluence allow me to edit my diagram files within Confluence?


Answers:
author: Shannon S
body: Hi Landon,

Visio is not supported in Edit in Office. You can see the full list of supported platforms below:

* [Office Connector Prerequisites](https://confluence.atlassian.com/doc/office-connector-prerequisites-170493096.html)

You can see below for an open feature request to include Visio in Edit in Office. Please vote on it and you can comment as well with your use case and it will be sent to the developers:

* [CONFSERVER-27877](https://jira.atlassian.com/browse/CONFSERVER-27877)

Regards,

Shannon