youngmon/atlassian-qna huggingface dataset:
Bitbucket Pipeline Reports - Using API to create reports for a private repo with ip whitelist
Asked by Joseph:

Is it possible to use the Bitbucket Cloud API to create reports for a private repository that has an IP whitelist? I have a java app that runs in a pipeline which attempts to create a report and add annotations but I get whitelist errors. i.e.

{"type": "error", "error": {"message": "To access this commit, an admin must whitelist your IP."}}

I cannot add Bitbucket's IP addresses ([https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/)](https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/)?) to our whitelist because everyone with a bitbucket account and pipelines would have access to our repository.

Is there some form of a work around?


Answers:
author: mkleint
body: There is no simple solution with the constraints you outlined I'm afraid.

Things to consider with IP whitelist is that even if you allow all pipelines IPs to the whitelist it does not automatically mean that anyone with a Pipelines build can access your repository, your build or your data in general. The usual authentication/permission limits apply.

A working solution that avoids adding pipelines IPs to the whitelist would require additional infrastructure on your side to facilitate the proper filtering.

1. a pipeline build would post the report API call to certain proxy website that you own and that is within the IP ranges allowed to contribute to the repository/workspace in question.

2. such a proxy would have to be accessible from the pipelines IP ranges and would require authentication with OIDC token we issue for individual steps running inside pipelines.

See <https://support.atlassian.com/bitbucket-cloud/docs/integrate-pipelines-with-resource-servers-using-oidc/> intro into OIDC in bitbucket pipelines.

3. your proxy server would verify the token associated with the request and make sure your tokens coming from your repository/workspace/... are allowed to post.

4. if the verification is successful, the proxy would forward the request to the bitbucket Reports API (and that should then work because it's the whitelisted range you defined before)


author: Joseph
body: Still looking for a work around for this, if anyone has any ideas


Tags: api

bitbucket-cloud

bitbucket-pipelines

cloud

privacy

report

repository

whitelist
I have this issue - open:$ftp_password: Name does not resolve
Asked by Ikechukwu:

I'm new to bitbucket pipelines. I'm utilizing this pipeline \`atlassian/ftp-deploy:0.3.6\` and i've able to get it to build, but it doesn't connect to my FTP succssfully.  

Here's what my \`yml\` looks like:  
![YML.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/149329iF8CCAF17C33770DE/image-size/large?v=v2&px=999 "YML.PNG")  


Answers:
author: Ikechukwu
body: It turns out that the presence of a semi-colon ';' within my password string was the problem. After I changed it to a different symbol the error's gone. But I do have an entirely different error:  

**`ln: Access failed: 500 SITE SYMLINK is an unknown extension (../acorn/bin/acorn)``ln: Operation not supported: SITE SYMLINK is not supported by the`` server`**   

`Could I get any help with this as well? Is it a problem with my hosting?`

comments: author: HexLabs Ethiopia
body: Is any solution found for this error?


Tags: bitbucket-pipelines

ftp
Bitbucket database migration failure
Asked by jmarko:

Hi,  
I have new/empty bitbucket installation on new server, which I want to connect to database which is not empty, but has data of bitbucket that we used in past.   
When I tried to connect it with this external database(Settings-\>Database-\>Migrate database) I get an error:  
The target database contains tables whose names collide with Bitbucket's tables. Please migrate to a clean, empty database. For more information about creating a database for use with Bitbucket, please refer to the Bitbucket documentation.

```
The target database contains tables whose names collide with Bitbucket's tables. Please migrate to a clean, empty database. For more information about creating a database for use with Bitbucket, please refer to the Bitbucket documentation.	com.atlassian.stash.internal.db.DefaultDatabaseManager.validateConfiguration(DefaultDatabaseManager.java:226)	com.atlassian.stash.internal.migration.DefaultMigrationService.validateConfiguration(DefaultMigrationService.java:85)	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)	...
```

Do I really need new DB? Am I missing something? All I want is the bitbucket with the same data as it was in application on different computer. DB was copied from SQL server 2012 to SQL server 2017, but I do not believe this is a problem.  
Bitbucket.properties file doesn't create.

<br />

Please help


Answers:
author: Christian Glockner
body: Hi,

If you want to re-use an existing database you would also need a backup of the Bitbucket home directory from the same time, and when you have that, the bitbucket.properties file from that should be pointing to the database, and that's where you could point to the existing database.

Cheers,

Christian

Premier Support Engineer

Atlassian

comments: author: jmarko
body: First, thank you for quick answer.  
If I understand correctly we cannot use old/migrated database in new bitbucket installation? The thing is we need to move database from MSSQL 2012 server to 2017 because of Jira update.   
So the best option will be that we first migrate database to MSSQL 2017 and than just change bitbucket.properties configuration to 2017 database? Is that simple?   


Tags: bitbucket-server

server
How to add IP address on White list via API?
Asked by Simon Yoon:

I set IP White list, i.e. Company and Server IP Addresses  
But, When I add IP address on White list via Web, it already restricted my IP in my home

<br />

I want to add IP address on White list via API

Please let me know


Answers:
author: Theodora Boudale
body: Hi Simon and welcome to the community.

I'm afraid that it is not possible to whitelist IPs via API at the moment, we have a feature request about this in our issue tracker:

* <https://jira.atlassian.com/browse/BCLOUD-17275>

I checked the Bitbucket Cloud account with the same email as your community account in our system, and none of the workspaces it has access to have IP whitelisting enabled. One of the workspaces has certain IPs added to the whitelist, however, the option to apply the whitelist is still disabled.

Are you able to access the workspace settings from the UI in order to add more IPs to that list, and enable this option?

Kind regards,  
Theodora


Tags: api

bitbucket-cloud

cloud

whitelist
How to distinguish a merge commit in the list of commits in a pulll request?
Asked by Eduardo Rodrigues:

I am looking for a way to find which commit is a Merge Commit in a list of commits of a particular PR

repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/commits

<https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Bworkspace%7D/%7Brepo_slug%7D/pullrequests/%7Bpull_request_id%7D/commits>


Answers:
author: Mark C
body: Hi [@Eduardo Rodrigues](/t5/user/viewprofilepage/user-id/3964608)

I'm afraid the API endpoint doesn't have a field that separates the merged commit from the others.  
Right now, I've gone ahead and created a feature request to add a field that will distinguish that here. - <https://jira.atlassian.com/browse/BCLOUD-21185>  
You can upvote and watch it so that you'll be notified of updates from our product team.  
![](https://getsupport.atlassian.com/images/icons/emoticons/information.png) Please do note that we don't have an exact ETA for the feature request as all new features will be implemented according to our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html).

May I ask if all your merged commit's messages have the format below?

```
"message" : "Merged in some_branch (pull request #123) ......"
```

If yes, maybe you can parse the "message" field with the format above?  

Regards,  
Mark C


Tags: api

bitbucket-cloud

cloud

pull-request
self hosted pipelines still have a memory limit
Asked by Rodrigo Orph:

Hello,

I finally got beta access to the self-hosted build pipelines, however, the memory allocation limits (8G for size 2x) still applies, and the yml schema doesn't allow us to change it.

Is there anyway to configure this limit?

The main reason why were are running this self-hosted is due memory constraints in the cloud solution.

Update:

Additionally, the pipeline seem to completely ignore \`size\` and \`definitions\` for docker memory limit, it always run a \`build\` instance limited to 1G ram (with and without explicit limits)

Thanks


Answers:
author: Caroline R
body: Hi, [@Rodrigo Orph](/t5/user/viewprofilepage/user-id/3823779)!

At the moment, self-hosted runners are targeting feature parity with cloud runners and this applies to memory allocation which is still limited to 4/8GB. This is something that the team will be looking into over the next weeks/month. You can find more info about these changes in this post:

* [Bitbucket Pipelines Runners is now in open beta](https://community.atlassian.com/t5/Bitbucket-Pipelines-articles/Bitbucket-Pipelines-Runners-is-now-in-open-beta/ba-p/1691022)

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

Kind regards,  
Caroline


Tags: bitbucket-pipelines
Bit Bucket
Asked by Ricky Dials:

Trying to clone repository in bitbucket and running the following command in folder from powershell.

git clone \<url removed\>

It will not accept my password and getting 403 access error.


Answers:
author: Ricky Dials
body: I was able to get working using by putting password in automatically. Used the command below:

git clone https://{username}:{password}@github.com/{username}/project.git

comments: author: Theodora Boudale
body: Hi Ricky,

Thanks for the update and I'm glad you were able to find a workaround.

If the issue still persists when you don't use the app password in the clone command directly, we would need to do some troubleshooting to figure out why.

If you don't want to or don't have time to do this right now, it's perfectly ok. I'll just write what info we would need to troubleshoot this, in case you would like to do so at a later point:

**1.** The version of Git you are using

```
git --version
```

**2.** The full output of

```
GIT_TRACE_PACKET=1 GIT_TRACE=1 GIT_CURL_VERBOSE=1 <git command>
```

where \<git command\> is the command that gives you the error when you don't use the app password in the URL.

**Please remove the line that starts with "Authorization:" from the output prior to sharing the output here, as it includes credential info.**

Just a heads up, I removed the clone URL from your original post for privacy reasons.

Kind regards,  
Theodora


author: Theodora Boudale
body: Hi Ricky and welcome to the community.

Do you get asked for a password when you enter the clone command, or not? If a Git credential helper is used in your system and has stored a (possibly incorrect) password for Bitbucket, then you won't be asked for a password when cloning. So, I am asking this in order to understand if this could be a possible cause for the issue or not.

In case you do get asked for a password when cloning: if you have a managed Bitbucket account and you use your company's SSO to sign in to Bitbucket website (<https://bitbucket.org/>), then the account's password won't work for Git operations via HTTPS. In this case, you'll need to generate an app password for your account, and use that instead of the password when you clone/pull/push to repos.

* <https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/>

Could you give this a try and let me know if it works?

Kind regards,  
Theodora

comments: author: Ricky Dials
body: Thanks Theodora and thank you.

Yes, I get ask for the password. I have tried both the bitbucket password and the password I created app password I created in my personal settings. Other users that work use the app password and it seems to work. However, myself and another colleague are new to this area and trying to get up and running to clone repository so we can contribute.

My company uses SSO as well, so we are doing the right process but not working. I would really appreciate any assistance you can provide to get this working.


Tags: bitbucket-cloud

cloud
How to create a rule based on the data in a particular column?
Asked by Preeti Desai:

Currently we have a dashboard in Confluence where we are displaying the status of individual items as per the last column.

My query : Is it possible to create a rule and give a result based on data in the multiple rows of a particular column:

For e.g : If "Approval with restrictions " is in more than 1 row of a particular column then overall result should display "Approval with restrictions"

If "Approval" in all rows of a column then overall result should display "Approval"

If "Approval with critical restrictions " in more than one row of a column overall result should display "Approval with restrictions"

Such rules are possible in excel, I was wondering if we could do the same in Confluence as well?


Answers:
author: Aron Gombas _Midori_
body: I think it should be possible if, **instead** of using a regular table, you create a spreadsheet embedded in the page. Spreadsheets support functions and formula, like Excel does, although details may be different.

There are several spreadsheet apps, check them out here: [https://marketplace.atlassian.com/search?hosting=cloud\&product=confluence\&query=spreadsheet](https://marketplace.atlassian.com/search?hosting=cloud&product=confluence&query=spreadsheet)

comments: author: Preeti Desai
body: Thanks. I saw that however the use of formulae is within the excel and not referrring to the data in the column in Confluence.. But can try this..


Tags: cloud

confluence-cloud
Search for space key at organisation level
Asked by Sean Hutchinsoon:

Hello team,  

In the future we will be managing hundreds of spaces spread over potentially hundreds of sites within a given organisation, and routinely need to locate specific information without knowing which site those spaces are located.

Using the existing search and advanced search, it doesn't seem to be possible to search for a specific space key or page across all sites at an organisation level, and instead only possible at a site level.

Is there any way we can expand the search so that it looks outside of the current site for spaces in the current organisation level?

We can potentially make use of taxonomy on space names to 'more easily' identify what site they belong, however looking for an easier solution.

Regards,  
Sean


Answers:
author: Alex Koxaras _Relational_
body: Hi [@Sean Hutchinsoon](/t5/user/viewprofilepage/user-id/2153111)

I've been searching for a relative issue on jira.atlassian.com, but haven't found anything. I have a feeling that this is currently not supported. Out of curiosity, have you connected multiple confluence instances under the same organization?

comments: author: Sean Hutchinsoon
body: Hello Alex,   

Thanks for the message, and yeah I did a very similar search looking for anything online but coming to the same conclusion.

Yep that's correct, we have an enterprise license with Atlassian and essentially we have a need to have multiple sites and spaces within those sites.

At the moment it's a pretty laborious process of having a lot of dedicated bookmarks to the appropriate site for ones I access regularly, but if the site is unknown to myself I have to manually look through sites to find the space in question.  

Understandable the search didn't support this out of the box, as a Server / Data Centre is effectively a single site which contains all spaces, but now we have the concept of a site under a single organisation, it's a bit tricky to navigate around.  

Hopefully a member of the Atlassian team can help us out

Cheers,  
Sean


author: Alex Koxaras _Relational_
body: [@Sean Hutchinsoon](/t5/user/viewprofilepage/user-id/2153111) if you are on Enterprise, raise a request/question directly to Atlassian at <https://support.atlassian.com/contact>

They'll be able to provide a more solid response. And I would suggest that you share your findings here.


author: Sean Hutchinsoon
body: I'll give that a try Alex, thank you :-)


author: Sean Hutchinsoon
body: Atlassian have raised a feature request : <https://jira.atlassian.com/browse/CONFCLOUD-75785>

I've added my vote, and would appreciate anyone else reading this ticket to please also add their vote :)

Thanks again for your help Alex, much appreciated

Cheers,  
Sean


Tags: cloud

confluence-cloud
How to get page information to appear in the header of the PDF Export
Asked by Jane Brusilovsky:

I'm trying to figure out a way to pull the page title, just the first 5 characters of the page title, date (included as a macro on the page), and the status of the page and include it in the header during PDF Export.

I have written the following HTML in the header section to get this:

\<table\>  
\<tr\>  
\<td style="color: #663399;"\>\<b\>Company Name\</b\>\</td\>  
\<td\>\<b\>First 5 characters of Page Title\</b\>\</td\>  
\<td\>\<b\>Date Macro from Page\</b\>\</td\>  
\<td\>\<b\>Page Status\</b\>\</td\>  
\</tr\>  
\<tr\>  
\<td colspan="4"\>Page Title\</td\>  
\</tr\>  
\</table\>

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

I've just hard-coded the information, but I would like to have the pdf export inherit this information from the page, so that I do not need to modify the HTML every time I export a pdf.

Has anyone been able to do something similar?


Answers:
author: Riley Venable
body: One approach to dynamically generate a PDF header that includes the page title, date, and page status without hard-coding the information is to use a third-party add-on such as Scroll PDF Exporter or k15t's PDF Exporter.   

These add-ons allow customization of the PDF export template and include dynamic content such as page titles, dates, and macros. Alternatively, you can use Confluence's built-in PDF export template feature, which allows you to create a custom PDF export template using HTML and CSS, which can include dynamic content using Confluence's template variables.   

You can then upload this template to Confluence's template library and select it when exporting a page to PDF.

comments: author: Jane Brusilovsky
body: Thank you! I'm using Confluence's built-in PDF export, but I didn't realize you could make a template with variables. I just did that for the variables I need, but how do you go about calling them in the Header HTML (or CSS stylesheet)? Is there a specific naming convention to pull those variables?

Like if my template variable was a text variable called page_stat, how would I incorporate it?


Tags: cloud

confluence-cloud
unarchive a page
Asked by Na Lou:

When I tried to unarchive one page, it gives this error

"The archiving queue is fullYour team is archiving a large number of pages. **Try again later,** after the queue has time to clear."

what's the next step I should do?


Answers:
author: Connor
body: Hi [@Na Lou](/t5/user/viewprofilepage/user-id/5205446) I suggest checking if anyone else on your team is currently archiving pages, and if yes, wait to unarchive until they're finished. If no one else is currently archiving, then I suggest waiting a few minutes to try again, and perhaps refresh the page while you wait. If you continue to repeatedly see that error no matter how long you wait then I suggest opening a support ticket with Atlassian.

comments: author: Na Lou
body: I think the error is there no matter how long I have been waiting for. I will open a support ticket with Atlanssian.


Tags: cloud

confluence-cloud
How can I restrict certain users from editing few columns in a table
Asked by MahanthPrudhvi:

How can I restrict certain users from editing few columns in a table


Answers:
author: Ravina
body: Hi [@MahanthPrudhvi](/t5/user/viewprofilepage/user-id/4935018)

By default it's not possible to restrict the users from updating the columns if they have the edit page permissions as all edit permissions are inherited from the page permissions.

You can check the below community post for more details

<https://community.atlassian.com/t5/Confluence-questions/Can-i-restrict-editing-in-columns-of-a-table/qaq-p/674938>

There is one marketplace plugins which provide this functionality

<https://stiltsoft.com/blog/how-to-restrict-table-columns-for-viewing-and-editing-in-confluence/>

Let me know if you have any questions

Thanks

Ravina

comments: author: MahanthPrudhvi
body: Hi [@Ravina](/t5/user/viewprofilepage/user-id/3947257) thanks for the response. The excerpt macro won't work out because for every sprint we have to create multiple(around 80) pages, to use excerpt concept we have to duplicate pages which will increase manual work and the add on Table filters and charts is costly. Is there any other way to achieve it?


author: Ravina
body: [@MahanthPrudhvi](/t5/user/viewprofilepage/user-id/4935018) I don't see any other option available to achieve this apart from what I shared in previous comment


author: MahanthPrudhvi
body: Thanks for the suggestion [@Ravina](/t5/user/viewprofilepage/user-id/3947257)


Tags: cloud

confluence-cloud

filter

table

table-excerpt

table-filter

table-filter-and-charts
Group of users failed to login on confluence
Asked by Charbel Jarjour:

Hello Atlassian Community,

Suddenly we are facing some login issues for a group of normal users, they can log in to Jira normally.  

![Screenshot 2023-04-26 172141.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/253965i85D371B72B4DD4D9/image-dimensions/251x99?v=v2 "Screenshot 2023-04-26 172141.jpg")  

<br />

Users are controlled at the Active Directory level, also we tried to reset their passwords but same problem.  
Anyone can help?


Answers:
author: Tansu Akdeniz
body: Hi [@Charbel Jarjour](/t5/user/viewprofilepage/user-id/4674659)

What is the error? Users can not login although they fill user\&pass\&captcha correctly?

If this is the case, user should remove cookies in browser.

Please take a look at [User receives repeated CAPTCHA prompts on login to Jira server](https://confluence.atlassian.com/jirakb/user-receives-repeated-captcha-prompts-on-login-to-jira-server-457703732.html) KB.

Also, take a look at the answer mentioned in this [thread](https://community.atlassian.com/t5/Jira-questions/Jira-Captcha-Infinite-loop/qaq-p/1207481).

Temporarily, Confluence admin can reset failed login count.


Tags: cloud

confluence-data-center