youngmon/atlassian-qna huggingface dataset:
Confluence - 500 error when I try and update labels via requests module/python
Asked by Michael McIntyre:

Hey all,

I am trying to update labels via the requests module in python. When I make a get request for the label, I get the desired data, but when I try a post request, I get a 500 error, with the error message

```
"message":"javax.ws.rs.WebApplicationException: null"}
```

I'm not entirely sure why this is the case, but it should work. Anyone have any ideas on troubleshooting? My code is below:

```
def get_labels(id):
    full_url = f"{BASE_URL}/{id}/label"

    r = requests.get(full_url,
    auth=(un, pw))

    return r.json()


def format_label(labels):
    final = []

    for label in labels:
        clean_dict = {
           "prefix": "global",
           "name": label
         }

         final.append(clean_dict)

     return json.dumps(final)


def _update_label(id, labels):
    data = format_label(labels)
    full_url = f"{BASE_URL}/{id}/label"

    r = requests.post(
                full_url,
                auth=(un, pw),
                data=data,
                headers=({"Content-Type": "appliction/json"})
              )
    print(r.text)


def main():
    _update_label(id, labels)

main()?
```


Answers:
author: Daniel Eads
body: Hey Michael,

Looks like there might be a typo in your content type header. In the paste, you've got

```
appliction/json
```

and instead will want

```
application/json
```

(the second 'a' in application was omitted)

Have a go at that and let me know if you still have problems! Your code looks good to me, but the web server likely returned the 500 error because it didn't understand what to do with that content type.

Cheers,  
Daniel

comments: author: Michael McIntyre
body: Well, that was certainly the problem. I'm embarrassed I got caught by a typo, but thanks so much for the help in identifying it. Things work swimmingly now, and maybe at the very least someone can borrow the code to use later. Thanks again!


author: Daniel Eads
body: Awesome, glad it's working! And there's no need to feel embarrassed, I like to think of these as 'software bugs patched by the smallest possible pull request'. People frequently ask for the type of script you've written so your code will definitely help others in the future!


Tags: atl-adm

developer
Open API (Swagger) Macro (Swagger spac) output is not available in exported PDF
Asked by Jay Shankar Pathak:

Hi,

I am using Open API (Swagger) macro to document the REST APIs in swagger format and when we generate the PDF using "export PDF", output of Open API macro is not available.

Any help to solve this will be appreciated.

Regards,

Jay


Answers:
author: Tobias Anstett _K15t_
body: Hi Jay,

this issue is most likely related to the way the macro outputs the data. In general all PDF exporters available for Confluence have the problem to render dynamic html - html generated using JavaScript in the frontend of the user - as exports are generated in the backend by the server which is not able to render them.

Thus macro providers are supposed to implement a so called export view of their macros which generates static content which can be exported.

Thus the only solution is to open a support ticket at the corresponding vendor. However "I just did a search on marketplace" all the apps look like they just render the swagger UI view so they have not really implemented the UI on their own so far.

Best, Tobias

comments: author: Andreas Medlhammer
body: 4 years later and still no solution?

Any ideas of workarounds?

Thanks!


Tags: confluence-server

server

swagger
Can't edit or add new pages
Asked by Raul Tovar:

I can't edit or create new pages. No details were given in the error. Any help would be greatly appreciated since Atlassian doesn't offer support to paying customers on a starter license. We're dead in the water right now.


Answers:
author: Raul Tovar
body: \*\*SOLVED\*\* Restarted the Synchrony service.


Tags: confluence-server

server
Best Team Calendar Option
Asked by MELISSA Ryan:

We're looking at different calendaring options in Confluence that can connect with Outlook. What does the group believe is the best calendaring option today?

Requirements:

\> Ability to schedule team events like grooming, sprint planning, etc.

\> Ability to highlight sprint start and end dates.

\> Ability to see team outages like vacay, training, out sick, etc.

\> Ability to schedule team meetings and see availability of individual team members.


Answers:
author: Lizzie_Rogers
body: [Team Calendars](https://www.atlassian.com/software/confluence/team-calendars) for sure! Now with the [CalDAV support](https://www.atlassian.com/blog/confluence/introducing-caldav-support-team-calendars-confluence-server), you can sync with other calendars such as Outlook.


Tags: confluence-server

ms-outlook

server

team-calendars-for-confluence
confluence & encryption feature to secure contents
Asked by Rebecca Puypalat:

Hello,

Is there any add on from the market place able to encrypt sensitive data for a limited number of persons

With the sub questions below :

* Is that encryption a end 2 end encryption to avoid for the DBA to access to the secure content
* From a quick look on the market place I saw encryption feature working with password management (security \& encryption for confluence, secure encryption, S/Notify Email Encryption for Confluence...)?
  * Is the Notify Email encryption for confluence able to also encrypt the content in confluence out of the email notification?
  * Is there any encryption mechanism using PKI certificates?

BR  
Rebecca


Answers:
author: Monique Khairuliana
body: Hi [@Rebu](/t5/user/viewprofilepage/user-id/2820013) ,

I think that part of your questions are answered here:

<https://community.atlassian.com/t5/Confluence-questions/Password-protection-Encryption-for-areas-pages-in-Confluence/qaq-p/947930>

Hope this helps!


author: Metin Savignano
body: Hi

Not sure what you are actually asking for. Can you elaborate on your requirements a bit? Do you want to encrypt attachments in Confluence? Or do you want to encrypt the message contents of emails sent from Confluence? Or anything else?

S/Notify Email Encryption does exactly what its name says: it encrypts the emails sent out from Confluence. When it encrypts the email, of course anything contained in the email (like inline images) would be encrypted as well. External images would be loaded from remote with the same protection as when you access Confluence directly - which is usually through SSL encryption, maybe also a VPN tunnel.

Metin

comments: author: Rebecca Puypalat
body: Hi,

Yes we would like to encrypt page content and attachements.

In addition we would like that data being stored encrypted in DB. For email notification I'm not sure but good idea I will ask.

BR

Rebecca


author: Metin Savignano
body: There are a few add-ons that encrypt attachments, but I don't think they encrypt page contents. However, I haven't tested them, as I haven't seen a requirement for this yet. Contents and attachments are stored on the server and can thus be protected by server-side means. For in-transit protection between server and client, SSL can be used. However, we do use email encryption to protect contents in email notifications which is otherwise unprotected.

As you did not say anything about your (business) requirements, I won't be able to say more.


Tags: confluence-server

server
How do I edit while *retaining* the comments text as visible?
Asked by gordon bradley:

I feel like I must be missing something?

A co-worker makes comments on your page. You go to resolve them. But as soon as you hit 'Edit', the comments are no longer visible?

Is the best workaround to resolve them all, then open another tab: one for editing and one for reading resolved comments and editing accordingly? That cannot possibly be the most elegant solution.

**TLDR: How do I edit while \*retaining\* the comments text as visible?**


Answers:
author: Jennifer Hemmens
body: Following - I'd love it if there was a solution to this, but I don't think there is.

I usually just have both the published page and the editor open in separate screens as you described in the workaround...


author: Andreas Springer _Actonic_
body: Hi Gordon,

there is no native solution for this right now. This is why we developed our app

?[Show Inline Comments in Editor](https://marketplace.atlassian.com/apps/1217328)".

Please check it out and let us know if there is anything you would like to see improved.

Thank you!

comments: author: g d bradley
body: Andreas--

As much as I appreciate your jaunty offer to sell me something, Confluence simply decides to leave out VAST HUGE swaths of functionality and then tries to offset this huge embarrassing gap of negligence by encouraging mercantile plugin makers.

As a software maker, Atlassian needs to know this cavalier approach is not sustainable or forgivable. Would you buy your car if it only had four wheels and a chassis, and you had to buy everything else from plugin makers?

ATLASSIAN I HOPE YOU ARE LISTENING


author: Andreas Springer _Actonic_
body: Gordon,

thanks for answering.

I think we can agree that a native solution would be ideal. But since this is not the case, we are doing our best to offer a solution for users who need this functionality. It is of course your choice if you want to jump on it or not.

Best,  
Andreas


Tags: confluence-server

server
Is it possible to have one email for all changed pages?
Asked by Rosario De Domenico:

With confluence 6.5 and higher, the systems sends 1 email with all changes in a given page to all watchers (for non minor edits) and administrators can define how often Batched notifications are sent (default is every 10 minutes). But the users still gets a separate email for each page that they are watching.

Is there a way to get a single email with a list of all pages (that I am watching) and that are changed?


Answers:
author: Diego
body: Hello there Rosario!  

Currently in Confluence there is something similar to this. For this to work, you need to Subscribe to daily updates.  
Doing this will send a daily update with the following:
> - Pages and blog posts that are added, edited or deleted.  
> - Comments on a page or blog post that are added, edited or deleted.  
> - Updates by users who have changed their personal profile.

Subscribing to the daily updates will keep you up to date with every space that you can access. This will send an email with up to 30 updates per day.   

You can edit your email notifications preferences here:
> 1- Choose your profile picture at top right of the screen, then choose Settings  
> 2- Click Email in the left-hand panel  
> 3- Click Edit

You can check further information about the email notifications here:

**[Email Notifications](https://confluence.atlassian.com/doc/email-notifications-145162.html)**

Let us know if this helps!

comments: author: Rosario De Domenico
body: Well, this does not solve the use case because each user would have to change the personal settings so to get the daily update which is 1 email more not less...

In addition, there could be more than 30 update per page; what happens to the others?

Last but not least, if I understand the answer properly, the daily update contains all changes and not only the changes in the content that I am watching.

What I would like to have is that, in an environment with dozens of spaces and hundreds of pages where each user has access to each space, an user that is watching (for ex.) 50 pages in 3 different spaces gets 1 or maximum 3 e-mails (one per space) at an interval decided by the administrator (or by the user themselves) with **all** the changes in **all and only** these 5 pages (regardless if minor edits or not) since the last update.

Is this somehow possible?


author: Diego
body: Hi Rosario, thanks for replying!  
Currently there is no native feature to allow notifications to be sent in this fashion.   
With this in mind, I have raised this Feature Request:  

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

We can vote and watch this request now. Voting for it increases the visibility and watching will keep you up to date with it!  

Yes, the daily update sends news about all spaces that the user can view. I also took a look into the marketplace but was not able to find a tool that fits this requirement.   

Share your thoughts about this with us!


Tags: confluence-server

email

notification

server
Companion App Issues Editing MS Excel Docs
Asked by Brett Williams:

I was wondering if anyone else was having issues with editing MS Excel docs with the Companion App? A specific example that we have been running into is editing Excel docs with locked fields. It throws an "Excel cannot open the file 'Example.xlsx' because the file format or file extension is not valid.....".


Answers:
author: Shannon S
body: Hi Brett,

I'd like to test this out myself and see if I can replicate it. Could you tell me your Confluence and Microsoft Office versions?

Can you confirm that you are still able to edit Excel documents without locked fields? This sort of error can be seen if you're using an SSO with Confluence as well.

Regards,

Shannon

comments: author: Brett Williams
body: Hi Shannon,

We are currently on Confluence version 6.11.2 and Microsoft Office 365 ProPlus version 1811. Now that I attempt to edit other Excel docs I'm finding that I'm getting this error across the board. We have had some cases of other users getting this error from time to time but not consistently with all Excel attachments. I checked with a few other users and it now seems that we are all getting this error across the board, any thoughts on what could be happening? Thank you!


author: Shreya Rawal
body: Hi Shannon and Brett, we're also running into the same issue. We are using SSO for authentication. Do you have any solution for instances with SSO?


author: Shannon S
body: [@Brett Williams](/t5/user/viewprofilepage/user-id/402836),

Thank you for confirming. If locked fields don't cause the issue, and you are using SSO, then I believe you ran into this bug:

* [CONFSERVER-56444](https://jira.atlassian.com/browse/CONFSERVER-56444) *Edit in App does not work when Confluence is integrated with Crowd SSO*

[@Shreya Rawal](/t5/user/viewprofilepage/user-id/1079696) this may be the same bug you're running into.

The issue has since been resolved in Confluence versions 6.13.0 and 6.12.2.

Can you make sure your Confluence instances are running at least those versions and let us know if you still have the issue?

If you are NOT using SSO, please let me know, as it might be a different issue.

Shannon


author: Shreya Rawal
body: Thanks, Shannon. We're running 6.12. We were able to get it to work with our SSO layer.


author: LOVE CHOPRA
body: [@Sally Smith](/t5/user/viewprofilepage/user-id/602895), Can you advise how you fixed this issue? I am also facing the same.


author: michael-r-holmes
body: We are seeing an issue that matches this description since upgrading to 6.13.3. We have been unable to confirm if SSO is the issue as we cannot get the companion app to run.


author: blwill
body: Unfortunately I won't be any help as once we upgraded Confluence to v6.12.2 the issue was resolved for us. Currently we're on v6.15 and no issues noted.


Tags: companion-app

confluence-server

ms-excel

server
How to ensure interoperability between projects?
Asked by Michel SE:

Our organization includes several streams in charge of delivery and maintenance of several solutions constituting our IS Lanscape.

Teams need to work separately but need to be able to share and exchange issues like bugs and change requests for example. Root cause analysis of a bug initially sent to Application1 may conclude that bug is in reality in Application 2.

How should be create Projects in Jira to allow such possibility of collaboration?

Do we need to create a kind of Master Project with a specific configuration (or scheme) and have all our projects using this configuration? Would this Master Project be the unique place to maintain the configuration where any change (addition of a new field in an object) would be automatically propagateds to all projects?


Answers:
author: Ryan Fish
body: [@Michel SE](/t5/user/viewprofilepage/user-id/2218612)

There are lots of options for you, here is some stuff to think about:

* Each board is only a view of whatever its specific JQL query returns.
  * If each team has its own board, then they can view their specific teams work.
    * But, they may have some transparency issues because they can get in the habit of only looking at their team board.
  * A master board with subordinate team boards may require defining the workflow as issues move from master to subordinate and (assuming) back to master.  
    * board configuration, column configuration, and status assignments make this work fairly well once the workflow is defined
  * A single board can be used too, with swimlanes and quickviews to delineate between teams, developers, etc.
    * Large quantities of teams and/ or developers make for a lot/ too much of viewable information.
* Dashboards supplement the above approaches. Gadgets display queries and views for teams and individuals.
  * Requires some amount of maintenance if team membership changes

<br />

Hope this helps

Ryan


Tags: cloud

confluence-cloud
Icon in the browser
Asked by Gabriel Dal Piva:

How do i change the icon in the browser?

![icon.png](/t5/image/serverpage/image-id/39036i71EBD833EFCB63A8/image-size/large?v=v2&px=999 "icon.png")


Answers:
author: Charlie Misonne
body: That icon is called the favicon.

You can change it in Jira's System settings --\> Look and Feel

comments: author: Gabriel Dal Piva
body: Is there a maximum size of px? Only the minimum is requested...

Even updating the browser, the icon remains the same


author: Charlie Misonne
body: I don't know about a maxmimum size.

Try clearing the cache of your browser. It's probably retaining the original logo.


author: Gabriel Dal Piva
body: i got it! =)
Add limitations to other people
Asked by Sylvia Ommering:

if I am unable to set restrictions, how can I make sure that no one but me can edit a document?


Answers:
author: Nic Brough -Adaptavist-
body: You can't. That is what restrictions are designed for - locking down access. If you don't have permission to set restrictions, you can't do it.

Talk to your space admins about getting the right to set restrictions in your space.


author: Charlie Misonne
body: Being able to set such restrictions requires a separate permission. And that per Space.

You should ask you space administrator to grant you the ability to set page restrictions.

When you get them. You can click the lock icon at the top op the page to do so.


Tags: cloud

confluence-cloud
Error message
Asked by Gabriel Dal Piva:

Why this error message? ![error.png](/t5/image/serverpage/image-id/39031i39AC52631247472C/image-size/large?v=v2&px=999 "error.png")


Answers:
author: Stephen Sifers
body: Hello Gabriel,

In order to figure out what is causing this error with the code block macro we will need some additional information.

Are you on Confluence Cloud or Server? If Server, which version?

What steps are being done to cause this prompt?

The error states "configuration saved successfully", does it allow you to save and progress past the screen?

Once we have additional information we will attempt to re-create and see where the issue is.

Regards,  
Stephen Sifers
Can't choose Saved filter/JQL when creating an event on the team calendar
Asked by Negita Mana:

When creating event on the team calendar, I'd like to select "**Saved filter** " or "**JQL**" under the type "JIRA Issue Dates".

How can I solve this issue?![image.png](/t5/image/serverpage/image-id/39030i6C71A4A3DA9FE275/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Shannon S
body: Hi Negita,

Could you check at your UPM on Jira (manage Add-ons) and see if the **JIRA iCalendar Plugin** is enabled?

Regards,

Shannon


Tags: team-calendars-for-confluence
How to expand width of the product roadmap macro?
Asked by Daniel Por?bski:

I would like to expand the width of the product roadmap macro in order to see epics full names in it. Is it possible to change the width of this macro?


Answers:
author: Shannon S
body: Hi Daniel,

Do you mean the [Roadmap Planner Macro](https://confluence.atlassian.com/doc/roadmap-planner-macro-704578202.html)?

There's a feature request for this, as well as a workaround listed for Chrome users.

Have a look at [CONFSERVER-36103](https://jira.atlassian.com/browse/CONFSERVER-36103).

You can jump straight to the workaround [via this link](https://jira.atlassian.com/browse/CONFSERVER-36103?focusedCommentId=1600022&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-1600022).

Please feel free to vote on the request if it's something you'd be interested in, and let me know if you have any trouble implementing the workaround.

Regards,

Shannon

comments: author: Daniel Por?bski
body: Yes, this is what I ment. Thank you.


author: Shannon S
body: You're welcome, Daniel.

Happy to help!

Regards,

Shannon
Can I connect Confluence to JIRA for user management using DNS instead IP?
Asked by Angel Alvarez:

Hi! I'm now connecting Confluence (server) to Jira(server) using Jira user server. <https://confluence.atlassian.com/doc/connecting-to-crowd-or-jira-for-user-management-229838465.html#ConnectingtoCrowdorJiraforUserManagement-ConnectingConfluencetoJiraapplicationsforUserManagement>

In step 1, when ask me for an IP address, I want to know if I can use a DNS instead an IP. When I try to use DNS an error appears, "invalid IP".

Do you know how can I solve this? Or if someone opened a request to change it?

Thank you!


Answers:
author: Shannon S
body: Hi Angel,

I think it should be possible, according to this documentation request:

* [JRASERVER-67561](https://jira.atlassian.com/browse/JRASERVER-67561)

> [Allowing connections to JIRA for user management](https://confluence.atlassian.com/adminjiraserver076/allowing-connections-to-jira-for-user-management-945110994.html "Follow link") presents the following options when configuring an application to connect to JIRA:
>
> * A full IP address, e.g. 192.168.10.12.
> * A wildcard IP range, using CIDR notation, e.g. 192.168.10.1/16.
>
> Using the hostname instead of IP address is possible, however, this is dependent on your DNS server resolving the specified hostname to the IP addresses that the incoming connections are sent from.

Can you give that a try?

Regards,

Shannon


Tags: confluence-server

dns

ip-address

server
????? ???? ?????? ????? ???????????? ?? Linux?
Asked by ??????? ??????????:

??????? ????? Postgresql, oracle. ???? ?? ????????? ?? ??????????????


Answers:
author: roman
body: Hi Dmitry,

I am going to reply in both Russian and English, but it would be great if you could ask questions in English so that everyone else would benefit from answers or discussions in the comments section.

++Question in English++: Which DB is preferable to use with Linux? Postgres, Oracle? Any priority in using either on these?

++Answer in English++: I think the choice of picking a particular database depends on one's needs. If we speak about these two databases, the benefit of Postgres:

* free
* Atlassian Cloud uses it (theoretically, Atlassian products are better tested agains Postgres)

while for Oracle:

* one of the most popular and globally used databases
* capability to handle large amount of data without any single point of failure
* enterprise support

++Answer in Russian/????? ?? ???????++:

? ?????, ??? ????? ???????????? ???? ?????? ??????? ?? ?????????? ??????????, ??????? ?????????? ???? ?????? ?????????. ????????, ??? ???? ?? ??????????? Postgre:

* ??????????
* ????????? ???? ?????????? ?? ? ?????? (???????????? ?? ???????? ????? ?????????????? ?????? ?? ?????? ????)

???????????? Oracle:

* ???? ?? ????? ?????????? ??? ?????? ? ????
* ????? ???????????? ??????? ?????????? ?????? ??? ??????? ?? ?????-???? ????????
* ???????????????? ?????????

Roman.


Tags: questions-for-confluence