youngmon/atlassian-qna huggingface dataset:
500 internal Server Error when trying to update an attachment using Powershell
Asked by Julien Henning:

I want to update an json file in confluence using the Api and Powershell

*** ** * ** ***

$pageId = "2226721108" # Replace with the actual page ID  
$attachmentId = "2238705975" # Replace with the actual attachment ID  
$apiUrl = "<https://HereIsOurServer/confluence/rest/api/content/>$pageId/child/attachment/$attachmentId/data"  
$proxy = "ourProxy :)"

$headers = @{  
"Authorization" = "Bearer $authToken"  
"X-Atlassian-Token" = "nocheck"  
"Content-Type"="multipart/form-data"  
}  
$body =@{  
"file" ="StatusTestclients\\JiraUpdateTestClients\\result.json"  
"minorEdit"=$true  
"comment"="new"  
}

# Send the POST request to update the attachment file  
Invoke-RestMethod -Uri $apiUrl -Headers $headers -Method Post -Body $body -Proxy $proxy  

*** ** * ** ***

And here the error i get

*** ** * ** ***

Invoke-RestMethod : Der Remoteserver hat einen Fehler zur?ckgegeben: (500) Interner Serverfehler.  
In C:\\Users\\WAETEI1\\Desktop\\toolsetprelive\\StatusTestclients\\JiraUpdateTestClients\\UpLoadDataToConfluence.ps1:19 Zeichen:1  
+ Invoke-RestMethod -Uri $apiUrl -Headers $headers -Method Post -Body $ ...  
+ \~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~\~  
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) \[Invoke-RestMethod\], WebException  
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

*** ** * ** ***

Now is the question what im doing wrong


Answers:
author: Brant Schroeder
body: [@Julien Henning](/t5/user/viewprofilepage/user-id/5358701) Welcome to the Atlassian community

From the error you are seeing, it would tend to indicate that either the parameters are incorrect or that the json package is incorrect. Are you able to successfully make any other API calls?


Tags: confluence-server

server
After upgrading from 7.18.3 to 1.19.6
Asked by frendcarlo:

Hi, After I upgrade I got a message saying that confluence detected an existing database and I need to choose go back to database setup or continue and overwrite existing data. I am afraid to chose both so I restart and still i got that message. This is production therefore I have to be careful. Can anyone guide me on how to fix this please?

BTW, this is dedicated server instance and is running using k8s, I'm using this image <https://hub.docker.com/layers/atlassian/confluence-server/7.19.16/images/sha256-ef30359fe99773e74d5a9b04f551addf8fe039183d5d094e5099072e7ca6cd44?context=explore>


Answers:
author: Chris
body: Hi,

maybe this: [Confluence Data - Trying to override existing da... (atlassian.com)](https://community.atlassian.com/t5/Confluence-questions/Confluence-Data-Trying-to-override-existing-database/qaq-p/363291) article is helpful to you.

KR

Chris


Tags: confluence-server

server
I can't log into Confluence as any user
Asked by Fred:

Hi all.

We lost the ability to log into confluence using domain accounts and the built-in administrator.

When I try to log in using a domain account, I get an error: incorrect login or password

When I try to log in as an local administrator, an error appears about the need to enter a CAPTCHA, if I enter a CAPTCHA, I still cannot log in and receive the same error. Attached is a screenshot of my error.

Tell me how I can solve the problem and what logs I can see to debug?

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


Answers:
author: Michel Neeser
body: Hi [@Fred](/t5/user/viewprofilepage/user-id/5358634) and welcome!

Please contact [Atlassian Support](https://support.atlassian.com/contact/) for issues regarding account or login problems, they will be able to help you.


Tags: confluence-server

server
how to move a child page from one parent page to a different parent page based on a workflow status
Asked by Arun:

How to move a child page from one parent page to a different parent page based on a workflow status of the child page in Confluence


Answers:
author: Dave Mathijs
body: Hi [@Arun](/t5/user/viewprofilepage/user-id/5358631) welcome to the Atlassian Community!

You can use **Automation** for confluence to move a page.

An automation consists of a **trigger** , in this case **Page status changed** (see [Triggers in Confluence automation](https://support.atlassian.com/cloud-automation/docs/triggers-in-confluence-automation/) for more details)

Next, you can use an **action** , in this case **Move page**

This action [moves](https://support.atlassian.com/confluence-cloud/docs/move-copy-and-hide-pages/#Move-pages) a page, and any nested pages it may have, to another space you specify.

Select (or type) which space to move the page to. You also have the option to designate a page from the selected space as the parent of the page or nested group that is moving.

comments: author: Arun
body: Thanks [@Dave Mathijs](/t5/user/viewprofilepage/user-id/2662590) for answering that. I have a quick question does moving a child page from one parent to different parent page through automation confluence leave any duplicate of the original child page in the process.


author: Dave Mathijs
body: No, a page move doesn't leave a duplicate, it's not a clone.


Tags: cloud

confluence-cloud
"Publish new page" automation doesn't show all templates
Asked by tfellinger:

I want to create an automation that publishes a page at specific times. I use the "Publish new page" automation action, but unfortunately it seems not all templates are showing up. I see a lot of them, the list also contains custom ones we created, but for some reason certain ones (and exactly the one I want to use) are not visible.

Can someone help me find out what is going on here?

I'm able to create pages based on this template as usual. Others are able to do the same thing...but the automation seems to not be able to access it somehow.

Any hints?

Thanks!


Answers:
author: tfellinger
body: For the readers and likers, support told me this is a known bug you can find here: <https://jira.atlassian.com/browse/AUTO-742>


author: Roman Enders
body: I ran into the same problem, would me nice to have a solution for that :)

Best,  
Roman


Tags: automation

cloud

confluence-cloud
How to get space admins for all space
Asked by Krithica G (EXTERNAL):

Hi,

I want to get the list of all spaces with their space admins. I don't want space creator details. Only the admins of space with space name and key.

PLease let me know how to get this list


Answers:
author: Ollie Guan
body: Hi [@Krithica G (EXTERNAL)](/t5/user/viewprofilepage/user-id/5287267) ,

The purpose of this document is to get a list of all space creators and administrators for all spaces.

<https://confluence.atlassian.com/confkb/how-to-view-a-list-of-all-space-creators-and-administrators-for-all-spaces-346325879.html>

comments: author: Krithica G (EXTERNAL)
body: Thank you. But the link shared only gives me the space creators list.

I want the administrators of space. Please see screenshot for reference.

I have 360 spaces and manually taking from each space takes time. Is there a way to fetch the admin details? i am using MYSQL DB.![space admin.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/290429i6AACD2D8EF8F7AA7/image-size/large?v=v2&px=999 "space admin.PNG")


author: Nicolai Sibler
body: If you scroll down the page that [@Ollie Guan](/t5/user/viewprofilepage/user-id/853638) provided, you'll see the
>
> #### List all users that have Space Admin permissions either as Individual Users or as members of groups with that Space Permission: {#toc-hId-288703880}
>
section. You'll find what you need there. I can confirm the query works fine.


Tags: confluence-server

server
Security level per team
Asked by Raymart Cruz:

I created a team, and we want to associate the different teams we created on prod with a security level so teams can choose to have issues that are only visible to the team they choose. Is this possible?

![Screenshot 2024-06-12 at 2.59.09?AM.png](/t5/image/serverpage/image-id/329260iF7BB61908146C4AA/image-size/large?v=v2&px=999 "Screenshot 2024-06-12 at 2.59.09?AM.png")


Answers:
author: Mikael Sandberg
body: Yes, it is possible and your question is similar to this one, <https://community.atlassian.com/t5/Jira-Service-Management/Configure-custom-field-quot-Team-quot-to-have-multiple-sub-teams/qaq-p/2724134>. All you have to do is create a issue security scheme and then either manually set the security level on the issue or use automation to do it. Check out this KB for more information, [Configure issue security schemes](https://support.atlassian.com/jira-cloud-administration/docs/configure-issue-security-schemes/).

comments: author: Raymart Cruz
body: But I cannot see this field .

![Screenshot 2024-06-12 at 3.57.51?AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/329270i3B1628BCA6858E2E/image-dimensions/596x38?v=v2 "Screenshot 2024-06-12 at 3.57.51?AM.png")


author: Mikael Sandberg
body: Where do you not see team? On the screen or in the issue security section? Currently you would have to maintain a group with the same members as in the team since Team cannot be selected in the issue security. There is a suggestion to have team added, see [JRACLOUD-81399.](https://jira.atlassian.com/browse/JRACLOUD-81399)


Tags: cloud

jira-cloud
Customize Round Rectangle Macro
Asked by Hertzog:

Good morning  
I'm using the round rectangle macro and I don't know how to change the color of the text using the css option.  
Thank you for your help


Answers:
author: Abi Brown- Kolekti
body: Hi [@Hertzog](/t5/user/viewprofilepage/user-id/5358568)

I am the customer success manager for Kolekti makers of the app - if the info Mark kindly shared for our documentation does not help and you would like a chat please do let me know and we can book a call

Thanks

Abi

comments: author: Hertzog
body: Thanks for your help...how is it possible to book a call ?

Cedric


author: Abi Brown- Kolekti
body: Hi if you want to drop me a message at abrown@kolekti.com we can organise a call

Thanks

Abi


author: Marc - Devoteam
body: Hi [@Hertzog](/t5/user/viewprofilepage/user-id/5358568)

Welcome to the community.

Coul you provide some more information in the form of screen shots and actions you try to execute.

This macro is also not a ootb Confluence macro, but a macro that comes with the app:

Content Formatting Macros for Confluence

See documentation on the macro [here](https://docs.adaptavist.com/cfm4cs/latest/content-formatting-macros/round-rectangle)

Also in looking at the documentation, to further customize, you need to use the CSS Style Sheet macro in combination.

See documentation on that macro [here](https://docs.adaptavist.com/cfm4cs/latest/content-formatting-macros/css-style-sheet)

comments: author: Hertzog
body: Thanks for the link.  
I want to use the CSS Style sheet macro in combination but after many tries, i don't succeed in apply a specific colour for the text.

So I'm looking for help to know how to define the CSS box to modify the color of the text


author: Hertzog
body: Hi

Thanks for your help....

This is the result :

![Screenshot 2023-11-09.png](https://community.atlassian.com/t5/image/serverpage/image-id/290880i591EF4D0F22A80F8/image-dimensions/240x91?v=v2 "Screenshot 2023-11-09.png")

And the CSS

```
.Bloc {  color: white; ?text-transform: capitalize; ?text-shadow: 2px 2px 5px #dbe7ea;}
```

Last question : how change the style of the link ?

Thx

comments: author: Abi Brown- Kolekti
body: Hi

have a look at this may help (different macro but CSS) [Link](https://docs.adaptavist.com/cfm4cs/latest/content-formatting-macros/center/customize-centre-with-css)

Thanks Abi


Tags: unknown-hosting-type
Need jar for project.version class
Asked by Manan:

I am trying to write a Java app using Java APIs, and have been able to query info using

com.atlassian.jira.rest.client.api.domain.Issue and now i am trying to add call to

getFixVersions() which requires me to "import com.atlassian.jira.project.version" which require a jar which i am not able to find.


Answers:
author: Tuncay Senturk
body: Hi [@Manan](/t5/user/viewprofilepage/user-id/2680343)

Welcome to the Community!

If you use REST API, you do not need to add jars (libraries). You may get the result as json and use it accordingly. On the other hand, if you use Java API, you still should not need additional dependencies apart from jira-api.

comments: author: Manan
body: i was able to find the required jar, and was able to compile and run the code to get the fix versions. I had to update to "import com.atlassian.jira.rest.client.api.domain.Version;"


Tags: jira-server

rest-api

server
How to configure or allow connection to OneDrive
Asked by Jason Burrage:

When my users are posting links back to documents in their sharepoint/onedrive they are getting a prompt to "Connect your OneDrive account" on the task. When they click on it they get the following error message "Need admin approval links.atlassian.com needs permission to access resources in your organization that only an admin can grant. Please ask an admin to grant permission to this app before you can use it." -- I can't find any documentation on where to configure this connection for my users. Any help is appreciated. Thanks.


Answers:
author: J_ Caldwell
body: So to perform that grant, you need to be an admin of your o365 environment.   

This doc covers basically the overall error and what needs to be done (yes, it's talking about an email address, but the root cause is the same - o365 admins need to grant permissions on their side)  

<https://confluence.atlassian.com/jirakb/user-gets-an-error-jira-cloud-atlassian-needs-permission-to-access-resources-in-your-organisation-when-setting-an-office-365-account-as-an-incoming-mail-server-1116278124.html>

comments: author: Jason Burrage
body: Thank you very much for your help. I'm taking a look now.


author: Jason Rittenhouse
body: [@Jason Burrage](/t5/user/viewprofilepage/user-id/5379164) Did this solve your issue? We're having the same problem.


Tags: cloud

jira-cloud
User does not have permissions to perform Import
Asked by Arvind Swarnkar:

While doing cloud migration from jira server I am getting this error and migration is failing.

I am having **site admin and user access admin**role access on cloud site.

\[c.a.j.migration.execution.PlanExecutionService\] Exception starting migration  
com.atlassian.jira.migration.httpclient.exceptions.UnexpectedStatusCodeException: Received an unexpected status code; expected \[200\], **but received 403: User does not have permissions to perform Import**  
??????at com.atlassian.jira.migration.httpclient.exceptions.ExceptionsKt.unexpectedStatusCode(Exceptions.kt:7)  
please help  
arvind  
????


Answers:
author: Mohanraj Thangamuthu
body: Hello, Good day. Please go to Settings \>\> System \>\> Global permission and make sure admin user group had all permissions. Thanks

comments: author: Arvind Swarnkar
body: Thanks for your reply.

I have all the Site Admin permission and Global permission but still I am getting the same error.


author: Prajesh Krishna Karmacharya
body: Same issue.


Tags: cloud

jira-cloud
JSM REST API customer notification not being sent
Asked by Julien Borrelli:

Hi there,

On issues created by JIRA Service Management REST API, we cannot send email notifications to our customers (they don't receive anything).

However, with an issues created by email requests, customers receive notifications.

I want my customers to receive an email notification when there is a new comment on the ticket they are the reporter of. Issues are created by API, and the reporter is the customer (with have the full name and the email address).

Why is this the case and how could we activate email notifications with issues created by JSM REST API?

Thanks


Answers:
author: Fernando Eug?nio da Silva
body: [@Julien Borrelli](/t5/user/viewprofilepage/user-id/2593527)

Quick Question: In your issues created by API the **Request Type**field is being filled? Also, to receive customer notifications your customers needs to be the 'reporter' or 'request participants' in your issues.

To be reporter they need to have an account created in your organization.

Could you confirm if these steps are already done?

Let us know in case you have doubts.

comments: author: Julien Borrelli
body: Hello [@Fernando Eug?nio da Silva](/t5/user/viewprofilepage/user-id/4606715) , thank you for your quick answer.

So indeed few interesting points:

- Issues created by API have no request type ?

- Our customers creating issues by API are in the reporter field ?

- Our customers creating issues by API are added to the customers list in the project settings, we also have their emails, however their status is always as "invited" ?

Thank you for your help!


author: Fernando Eug?nio da Silva
body: [@Julien Borrelli](/t5/user/viewprofilepage/user-id/2593527)

Great, thanks for your feedback!

- Please, add the Request Type field in your REST API call. Service desk projects and when we are interacting with customers accounts the Request Type is who offer the 'customer portal' for these users.

If is everything turned on in your **customer notifications**project. I would say that your customers needs to follow with a first sign-up/sign-in in your portal to be able to receive your notifications.

They probably received an invitation in their email. They just need to finish the login to the status change to **active** and after your notifications should be works well.

If you don't want to your customers make this signup you'll need to change the product Service Management configuration.


Tags: cloud

customer

jira-service-management

jira-service-management-cloud

notification

reporter

rest-api
Trouble Updating card to add a field in backlog view & different field in Kanban (Company managed)
Asked by Eduardo Sanchez:

Hello! I hope you are all doing great. I'm back with another issue that popped up while training Jira. I am instructed to:

Update the card layout to add a field in backlog view and a different field in Kanban board.

I figured this is set up in the board configuration screen as such (By the way, the fields I am adding to one or the other board are random; I have tried adding others like last seen or sub-tasks with the same results):

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

The problem is that when I hit save, neither of the fields are shown in one or the other boards. I tried adding the fields to the project settings -- issue layout section, but then it will show both fields on both boards. Thank you so much in advance!


Answers:
author: Eduardo Sanchez
body: Any help is appreciated


author: Dave Rosenlund _Trundl_
body: Hi, [@Eduardo Sanchez](/t5/user/viewprofilepage/user-id/5514077). Welcome to the community ?

It sounds like a caching issue, maybe. Did you try clearing your cache and/or logging out and back in again?

-dave

comments: author: Eduardo Sanchez
body: Thank you so much for your response. I tried doing what you said but the issue remains. Not sure what else it could be. Again thank you.


Tags: cloud

jira-cloud
How to enable "edit" or interactive mode for my Confluence custom UI app / macro
Asked by Deep Development:

I'm building my first CF app and have it deployed and working as a macro add-in via the "+" toolbar when editing a CF page.

Just using the sample react hello-world template at this point. But, how do I go from having a static content page displayed as a content part within a CF page to allowing the user to interact with and ideally go into an "Edit" mode with my app?

When I hover over my macro part on the page, I just get the "fit" options like "wide" "full page width" etc. But, it seems if my CF custom app is going to allow interaction with the user, I somehow have to tap into an "edit" mode within the CF API...(?)

How do I do this? Thanks!


Answers:
author: Dave Rosenlund _Trundl_
body: Welcome to the community, [@Deep Development](/t5/user/viewprofilepage/user-id/5378164) ?

You may want to cross-post this to [the Atlassian Developer Community](https://community.developer.atlassian.com/). You'll probably get a faster answer over there.

Best,

-dave

comments: author: Deep Development
body: Thanks? I found the dev forum and posted there.


author: Lukas Gotter _ Meetical
body: Can you share the link? [@Deep Development](/t5/user/viewprofilepage/user-id/5378164)

My question about [making macros interactive in standard edit mode](https://community.atlassian.com/t5/Confluence-questions/Live-edit-mode-Keep-macros-interactive/qaq-p/2728829) might be related.


author: Deep Development
body: Sure, this is what I posted in the dev forum.

<https://community.developer.atlassian.com/t/enable-edit-and-interactive-mode-for-my-cf-custom-ui-app-macro/80764>

I had to switch to Connect app instead of a Forge app at least that's my current level of competence about how to build an interactive app on Confluence. But, maybe as I get deeper into CF/JIRA development I'll find a way to use maybe a Forge macro for some things and my Connect app for other use cases...

Getting a Connect app working was pretty quick as it just takes a config.json and IFRAME embed to get your app loading as a full page, interactive experience...

But, still, I don't know how to make my add embed on a CF page as a content item and then have the "Edit" link appear during hover and then click that and have it take you to my Connect app for editing... Still trying to figure out that workflow...


author: Lukas Gotter _ Meetical
body: I see, your questions is about interactivity in general, and how to make an interactive macro configuration. In my case, I want the macro to stay interactive in edit mode.


Tags: cloud

confluence

confluence-app

developer

forge