youngmon/atlassian-qna huggingface dataset:
Release version automation
Asked by Eran Roiter:

Hello everyone.

I would like to add automation related to the release of the versions, that as soon as a version changes its status to released, a certain issue type will change its status from done to released.

I can't figure out how to make this connection, I would appreciate the wisdom of the masses.

Thank you very much and have a great day everyone :)


Answers:
author: Bill Sheboy
body: Hi [@Eran Roiter](/t5/user/viewprofilepage/user-id/4974658)

How is that specific issue associated to the release?

For example, is the fixVersion of the issue set to that release? If so you could branch to the issues in the release and then use a condition to check the issue type.

Kind regards,  
Bill


author: Mauricio Heberle
body: Post screen shots of your rule


author: Stefan Salzl
body: Hi [@Eran Roiter](/t5/user/viewprofilepage/user-id/4974658)

automation in general needs specific conditions/a certain pattern the automation follows. So the question is:   
what exactly is this "certain" issue/ issue type you would like to process as a result of your automation rule?

can this be specified? what kind of issue is it? what is the relation between this issue and the version? what is you main requirement / your underlying business process for this automation?

Furthermore:  
Did you already try to automate this? How far did you come so far with your automation? Could you show a screenshot of your current automation rule? This might help to understand the requirement and see where you got stuck.

Thanks in advance.

Best  
Stefan
Creating a board to pick up team for a weakly sprint
Asked by Oleksandr Kashchenko:

Hello there!

I have an idia to automatize PM\`s meeting for picking up colleagues at projects.

Main thing that they have a list of QA\`s,Dev\`s, Designers, and can mark they for their projects and estimate time per person. And it\`s interface like on one board.

Any options how to make this?


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

I suspect all you need to do is create a board (probably Kanban), and make sure you include an estimate field on the issues.

comments: author: Oleksandr Kashchenko
body: Probably, not like this. This board must be interactive, so ppl can manage team during meeting, and manually put estimate time per worker for current project today or this week


author: Nic Brough -Adaptavist-
body: That's exactly what a board is for! I'm not sure what you are looking for if not a board.


author: Oleksandr Kashchenko
body: ![Screenshot at Jul 05 16-55-52.png](https://community.atlassian.com/t5/image/serverpage/image-id/266890i094E6843F26EA2BA/image-size/large?v=v2&px=999 "Screenshot at Jul 05 16-55-52.png")Like this


author: Nic Brough -Adaptavist-
body: There's no functionality like that in Jira.

You might want to give [https://marketplace.atlassian.com/apps/1211683/comala-canvas-for-jira?hosting=cloud\&tab=overview](https://marketplace.atlassian.com/apps/1211683/comala-canvas-for-jira?hosting=cloud&tab=overview) a try though.


author: Oleksandr Kashchenko
body: yea, u got me. looking for an app for Jira which can provide such features. Also, testing [https://marketplace.atlassian.com/apps/1210816/projectrak-take-control-of-your-projects-in-jira?tab=overview\&hosting=cloud](https://marketplace.atlassian.com/apps/1210816/projectrak-take-control-of-your-projects-in-jira?tab=overview&hosting=cloud)

But i\`m appreciate any advice.

Thx in advance
Updating multiple Issues in a single execution of automation rule
Asked by Sayi_Iynapurapu:

Team,

Due to recent changes to Jira Cloud, We lost Epic name mapping to Epic link in child issues.

(in our case Epic summary, Epic name are serve for different purpose)

In order to retain Epic name on child issues. We have introduced custom field on child issues. In order to copy Epic name from Epic to Custom field of child issue , i am looking a rule which can help me to achieve this function on bunch of Epics rather than single Epic

Example a rule can pull 'n' number of Epics and will process each Epic (copy Epic name from Epic to relevant child issues).

at present i can update a single epic. if i would perform action on bunch Epics it will save my time.

Please help me to get this solution.

Thanks

Sayi


Answers:
author: John Funk
body: Hi Sayi,

You might try a Scheduled trigger with the information below. For the JQL I would test with just a couple of Epics the first time - something like: issuetype = Epic and Key in (ABC-123, ABC-456)

Then after you have saved and published the rule, click the Run rule button which will run it immediately. Hopefully, it will process both Epics.

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

comments: author: Sayi_Iynapurapu
body: Hi John,

Thank you for your response, I would test and update you

Sayi


author: John Funk
body: Very good


author: Sayi_Iynapurapu
body: This is working as expected, makes simple my work.

Thank you very much for your help.

Sayi


author: John Funk
body: Great! Glad it is working.
Automation Send Email Formatting (.text vs .html)
Asked by Tom Scoggin:

\<strong\>\<li\>Description:\</strong\> ***{{description.text}}***\</li\>

This string converts my formatted text to plane text without any issues![As text.png](https://community.atlassian.com/t5/image/serverpage/image-id/266888i975AED78247426CB/image-size/large?v=v2&px=999 "As text.png")

\<strong\>\<li\>Description:\</strong\> ***{{description.html}}***\</li\>

This string puts the formatted text in the email but adds a space above the description.html. Any ideas how to keep this from happening?

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


Answers:
author: Bill Sheboy
body: Hi [@Tom Scoggin](/t5/user/viewprofilepage/user-id/3562137)

If you write that expression to the audit log, you will find that the rule's html encoding is adding a paragraph around the description. And so the email (or a browser) display is interpreting the results it is adding space before the paragraph.

One work-around could be to use remove() to strip off the paragraph and prefix the description with a break, perhaps like this:

```
<strong><li>Description:</strong> <br>{{description.html.remove("<p>").remove("</p>")}}</li>
```

That could work for the scenario you show. If there was other embedded markup this might break that.

Kind regards,  
Bill

comments: author: Tom Scoggin
body: Good morning @\[deleted\]

This worked perfectly. I just needed to get rid of the \<br\> because I actually didn't want a brake in the line of text.

Thank you.
Why is my repository size 4.17 GB?
Asked by ???:

In Bitbucket's repository settings under "Repository details," the repository size is reported as 4.17 GB. However, when I clone the repository and check its size using the \`du -hs .git\` command, it only shows 591M.

The problem is that I'm unable to push changes because the repository size exceeds 4 GB, causing the push to fail.

What could be the issue?

If the issue is caused by needing to perform git gc on the remote repository, does that mean I need to contact support every time this problem occurs?

The repository is located at: \[REDACTED\].


Answers:
author: Ben
body: Hi [@???](/t5/user/viewprofilepage/user-id/5516575)

I've raised a ticket on your behalf in our support system as this is a public forum and it would not be appropriate to share sensitive information such as your workspace/repository details.

In future - please raise this ticket using your company workspaceID to ensure that you receive the Premium support that you are entitled to based on your subscription plan:

* <https://support.atlassian.com/contact/>

Please check your email inbox for further assistance with this issue.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
404 errors whenever there are ? parameters on the URL
Asked by HawthornThistleberry:

Starting within the last few days, a page that I have been using by Bitbucket Cloud for years and years has stopped working. The repository can be seen here:

<https://bitbucket.org/HawthornThistleberry/hawthornthistleberry.bitbucket.io/>

Up until a few days ago I could browse to [https://hawthornthistleberry.bitbucket.io/index.html?code=123456\&key=ABCDEFGH](https://hawthornthistleberry.bitbucket.io/index.html?code=123456&key=ABCDEFGH) (obviously not my real code and key) and the page would correctly load, whereupon the Javascript would pull those parameters and do the right thing. I actually had quite a few more parameters I used. This approach lets this page work on even small devices using no local storage and no configuration beyond the URL.

Something changed in publishing by Bitbucket Cloud (<https://support.atlassian.com/bitbucket-cloud/docs/publishing-a-website-on-bitbucket-cloud/>) in the last few days so now this throws a 404. If I take all the parameters off, though, and browse just to <https://hawthornthistleberry.bitbucket.io/> or <https://hawthornthistleberry.bitbucket.io/index.html> the page clearly loads, and provides an error message (that I coded) telling me I didn't supply a code and key. So the hosting is all still working, but whatever's interpreting the URL is now incorrectly handling the ?something=something format in the URL and giving a 404 instead.

Seems to be impossible to file an actual bug report, so this is the best I can do.


Answers:
author: Theodora Boudale
body: Hi [@HawthornThistleberry](/t5/user/viewprofilepage/user-id/3927544) and welcome to the community.

I do not see a 404 error when accessing [https://hawthornthistleberry.bitbucket.io/index.html?code=123456\&key=ABCDEFGH](https://hawthornthistleberry.bitbucket.io/index.html?code=123456&key=ABCDEFGH). Does this occur only when you use your own correct parameters?

Does the 404 error show that the repo is not found or something similar? Could you post a screenshot of what you see? Or are you making an API call with these codes that returns a 404 error?

I can reach out to the development team and ask them to look into this, but I would need that info first to better explain the issue.

Kind regards,  
Theodora

comments: author: HawthornThistleberry
body: The problem cleared up a few hours after I posted this -- I thought maybe my posting this had led to that, but probably it's just coincidence.


author: Theodora Boudale
body: Thank you for the update.

I assume that a deployment might have broken this, and it was later rollbacked or the issue was fixed with a subsequent deployment.

Please feel free to reach out if you ever experience any issues again.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Upgrade my Bitbucket instance
Asked by Marcelo Magallanes:

Hello Community, I need to know if I can upgrade my instance (for free) to a premium one, for this I need to migrate to another instance or can I do this with the upgrade? in such a case, how would the steps be carried out? Greetings and thank you for your time.


Answers:
author: Ben
body: Hi [@Marcelo Magallanes](/t5/user/viewprofilepage/user-id/5405591)

You can [upgrade your plan](https://support.atlassian.com/bitbucket-cloud/docs/manage-your-plan-and-billing/) within the Bitbucket Cloud UI by following the steps below, you don't need to migrate to another instance:

1. Select the **Settings** cog on the top navigation bar.

2. Select **Workspace settings** from the **Settings**dropdown menu.

3. Select **Plan details** under Plans and Billing on the left sidebar.

4. Click **Upgrade plan** or **Change plan.**

5. On the Bitbucket Cloud plans page, click the **Premium** button.

6. On the **Enter your billing details** screen enter the required information.

7. Click **Purchase**.

I hope this helps! Please let me know if you run into any issues and we will be happy to assist you further :)

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Marcelo Magallanes
body: Hi Ben Thank you for your willingness and help


Tags: bitbucket-cloud

cloud
"Resource not found" error for list of public repositories by URL, but it works within the UI
Asked by Michael R?egg _Mibex Software_:

Hi,

I get a "Resource not found" error when I use the following URL (not logged in!):

<https://bitbucket.org/mycompany/>

But when I do the following, it works:

1. Open a public project, e.g.

<https://bitbucket.org/mycompany/workspace/projects/myproject>

2. Click on "mycompany" in the breadcrumbs navigation

3. I see the list of my public repos, and in the browser address bar, I see the same URL as above: <https://bitbucket.org/mycompany/>

Why is that? And what is the correct URL to see all public repos of a Bitbucket workspace (kind of the company profile with all public stuff)?

Thanks,

Michael


Answers:
author: Theodora Boudale
body: Hi Michael,

There is an option in **Workspace settings** to keep a workspace private. You can find it in <https://bitbucket.org/mycompany/workspace/settings>, where **mycompany** replace with the id of the workspace. You need to have admin permissions to the workspace to access this page.

If this option is enabled, users cannot see the workspace's profile when they try to access <https://bitbucket.org/mycompany/> unless they have workspace access. People can still access a public repo or a public project of that workspace if they have the URL of the repo or project.

If you would like users to view the workspace's public repos when they visit <https://bitbucket.org/mycompany/>, you can disable the option **Keep this workspace private**.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Can we configure jenkins job parameters in webhook to kick-off parameterized jenkins jobs?
Asked by Ambarish:

I have a parameterized job in jenkins. In bitbucket webhook configuration I do not see any option to send custom payloads, in this case it would contain the parameters for my jenkins job.


Answers:
author: Saxea _Flowie_
body: Hi [@Ambarish](/t5/user/viewprofilepage/user-id/5519233) ,

You can only define static URLs for webhooks and you can?t change the the payload.

We provide a Jenkins integration with [Flowie](https://flowie.app/), where you can have a finer control of when the build is triggered and which URL should be triggered.

You can reach out to us via support@flowie.app with the details of what you are trying to achieve and we can help configure the integration for you.


Tags: bitbucket-unknown-hosting-type

jenkins

unknown-hosting-type
New UI doesn't show history of all pushed commits
Asked by Lydia Hendriks:

The bitbucket UI used to show a commit history section, which showed a history of all commits pushed to the repository - including ones that are now unreachable (orphaned) from the tip of the branch. Is this history of pushed commits no longer available in the bitbucket UI?

For some context - having access to all of the pushed commit hashes was particularly useful in case you did a force push and accidentally overwrote a team members commits.


Answers:
author: Theodora Boudale
body: Hi Lydia and welcome to the community!

Since 20th May 2024, the **Commits** page of a repo has been scoped to its main branch. However, you can still view all commits by selecting the **Show all** link. This link is right above the list of commits, next to the dropdown that shows the name of the repo's main branch:

![Screenshot 2024-06-18 at 12.46.20.png](https://community.atlassian.com/t5/image/serverpage/image-id/330349i7783DBCC33671B71/image-size/large?v=v2&px=999 "Screenshot 2024-06-18 at 12.46.20.png")

This change was announced in the following community article:

* <https://community.atlassian.com/t5/Bitbucket-articles/Bitbucket-Cloud-is-scoping-the-Commits-list-page-to-the/ba-p/2699318>

I don't think that we ever displayed orphaned commits on this page, but you can find all reachable commits via the **Show all** link.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Saving artifacts to Bitbucket Downloads from Windows runner
Asked by James Andrew:

Having trouble using the approach provided here:

[Deploy build artifacts to Bitbucket Downloads](https://support.atlassian.com/bitbucket-cloud/docs/deploy-build-artifacts-to-bitbucket-downloads/)

Running a Windows 10 VM with PowerShell 7.4.2.

This is the script I have tested:

```
$url = "https://api.bitbucket.org/2.0/repositories/${$BITBUCKET_REPO_OWNER}/${$BITBUCKET_REPO_SLUG}/downloads"

$pair = "{0}:{1}" -f ($BITBUCKET_USERNAME, $BITBUCKET_APP_PASSWORD)

$bytes = [System.Text.Encoding]::ASCII.GetBytes($pair)

$token = [System.Convert]::ToBase64String($bytes)

$headers = @{ Authorization = "Basic {0}" -f ($token) Accept = "application/json" }

$bin_file_path = "C:\Users\user\Documents\#21 Build Products.zip"

$form = @{ files = Get-Item -Path $bin_file_path }

$result = Invoke-RestMethod -Uri $url -Method Post -Form $form -Headers $headers
```

The response says "This endpoint does not support token-based authentication".

![Screenshot 2024-06-12 225359.png](https://community.atlassian.com/t5/image/serverpage/image-id/329470iCC1C2C6BB289C834/image-size/large?v=v2&px=999 "Screenshot 2024-06-12 225359.png")

I have tried to re-create in PowerShell the example approach shown that uses the curl command, but without success.

I found a similar question raised here and the reply seems to suggest that basic authentication should work:

[This endpoint does not support token-based authentication \| Default reviewers](https://community.atlassian.com/t5/Bitbucket-questions/This-endpoint-does-not-support-token-based-authentication/qaq-p/2586742)

I appreciate your help.


Answers:
author: Syahrul
body: G'day, [@James Andrew](/t5/user/viewprofilepage/user-id/995589)

Welcome to the community!

I am not an expert in PowerShell script, so I can't comment much, but I suspect you are using incorrect authorization; hence, it received your credentials as a token, which the endpoint does not support. So, as a start, review your script again and ensure it works locally and uses the correct authorization method.

That say, you mention that you've tried using curl but without success, can you let me know what was the error or issue you faced?

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
I am not able to get repository component data by using python packages bitbucket-python
Asked by kiran_10:

Where to set Issue tracker, I am trying to get repository component data using

bitbucket-python package get_repository_components() but it is asking for enable Issue tracker but I do not found this option on my repository setting.


Answers:
author: Theodora Boudale
body: Hi [@kiran_10](/t5/user/viewprofilepage/user-id/5519216) and welcome to the community!

The issue tracker is not supported in repositories that belong to workspaces administered through admin.atlassian.com.

You can find out if the workspace is administered through admin.atlassian.com the following way:

1. Log in to <https://bitbucket.org/>
2. Select your avatar (top right corner) \> select **All workspaces**
3. Select the workspace where this repo belongs
4. Select the ++cog icon++ next to your avatar

If the menu in the cog icon shows **ATLASSIAN ADMIN - User management** (like in the screenshot below), then the workspace is administered through admin.atlassian.com and issue trackers cannot be enabled for its repos.

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

If you don't see the item **ATLASSIAN ADMIN - User management** in the cog menu, then the workspace is not administered through admin.atlassian.com, and the issue tracker can be enabled via **Repository settings** . This option shows in the **FEATURES** section \> select **Issue tracker**.

![Screenshot 2024-06-18 at 12.03.13.png](https://community.atlassian.com/t5/image/serverpage/image-id/330334i7D7AB177F948A416/image-dimensions/254x182?v=v2 "Screenshot 2024-06-18 at 12.03.13.png")

<br />

You can then enable an issue tracker for the repo.

Please keep in mind that components are an issue tracker feature, and they are set manually by admins in the issue tracker settings. If the repo never had an issue tracker, there would be no components to get anyway.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Problems upgrading git version due to broken refs
Asked by CATS Delivery Platform:

We can't upgrade **git to version 2.34** because **some old repositories** complain about broken references.

So, it fails with fatal error when pushing git notes refs to the server, but no errors when cloning/pushing/pulling code

```
remote: fatal: bad object refs/pull-requests/1/v2
fatal: bad object refs/pull-requests/1/v2
To ssh://BITBUCKET/inv/invoice-printer.git
?! [remote rejected] ? refs/notes/commits -> refs/notes/commits (missing necessary objects)
error: failed to push some refs to 'ssh://BITBUCKET/inv/invoice-printer.git'
```

(The actual server is REDACTED)

This is **not happening** with **git version 2.33** , and we're on a single host with Ubuntu 22. Be aware that this version of git is affected by [CVE-2024-32002](https://nvd.nist.gov/vuln/detail/CVE-2024-32002) and **we need to upgrade** ASAP.

Wrapping up our findings:

* it happens on older repos
* only affects **refs/pull-requests/\***
* working with the repo locally does not produce any error or warning
* git fsck/ git gc... does not complain, but it doesn't solve the problem either.
* pushing an affected repo to a new empty repo fixes the issue (but of course, we lose the PR history on the UI)
* We see inconsistencies on disk: **refs/pull-requests/\*** vs **stash-refs/pull-requests/\***

As said before, it happens on some older repositories. We think these have **inconsistencies between git and DB** (for whatever reason), but we don't know exactly how many repositories are affected (we host thousands) and if there's a way to reconcile git and DB.

We're running out of ideas, any hint?


Answers:
author: CATS Delivery Platform
body: We just need to remove all **refs/pull-requests/v\*.**They are not supposed to be there, and can happen when the git update is interrupted or a backup taken in the middle of the process is restored


Tags: bitbucket-data-center

bitbucket-server

data-center

git

refs

ubuntu
Request for git gc on my repo
Asked by vignesh_s_kannan:

This is my Repository link   
<https://bitbucket.org/workspace-id/repo/src/master/>  

My repo shows incorrect Repo size   
Kindly run git gc to reset the size !  

Thank you,  
Vignesh  


Answers:
author: Theodora Boudale
body: Hi Vignesh and welcome to the community!

I ran a git gc on the repo and its size has been reduced. Does it look ok on your end?

Just a heads up, I removed the repo URL from your post to protect your privacy, as this is a public forum. If you ever need assistance again, you can post the last two letters of the repo name and of the workspace id and we'll be able to identify it from the ones you have access to.

Kind regards,  
Theodora


author: vignesh_s_kannan
body: Thank you sir, it looks good on my end  
Sorry for the late reply !


Tags: bitbucket-cloud

cloud