youngmon/atlassian-qna huggingface dataset:
Is it possible to delegate rule editing to project admins in automation for jira lite?
Asked by Rob Horan:

Based on the documentation I've found the answer SHOULD be yes, but the documentation has fallen prey to the documentation system Atlassian is using for all of their products, which essentially 404s on 99.99999999% of every search I perform, even when looking for simple, one word terms like 'user'.

Case in point - looking for the word 'manage' in Automation for Jira Server (<https://confluence.atlassian.com/automation>) gets me 'No search results found'and a cloud-based URL ([https://confluence.atlassian.com/search/?query=manage\&productName=Atlassian+Support\&productVersion=Cloud](https://confluence.atlassian.com/search/?query=manage&productName=Atlassian+Support&productVersion=Cloud))

Anyway, after digging I found this page: <https://confluence.atlassian.com/automation/permissions-for-project-automation-993924702.html>

Still, when I go to global configuration I have NONE of these options in Lite.


Answers:
author: Elad Ben-Noam
body: Hi [@Rob Horan](/t5/user/viewprofilepage/user-id/853604) ,

If what you are looking for is for "project managers" to be able to create/edit rules then it's integrated into the system, the "global configuration is only to limit the user access (and it's not available on lite version).

The way project managers change their rules is not through the "automation rules" section on the admin but on every project when you go to "Project settings" you'll find a "project automation" section where project managers can do whatever they want on their own project.

I hope it helps.

comments: author: Rob Horan
body: Hello - thanks,   
It does help but its also saddening, LOL

Was hoping to make use of this plugin without having to ask for 17K
How do I copy information from a parent issue into a sub-task?
Asked by wwalser:

Most automations work with individual issues but it is sometimes useful to copy information into a sub-task from it's parent issue.

How do I copy information from a parent issue into a sub-task?


Answers:
author: wwalser
body: First things first, **a quick explination of how smart values work in Automation**:

As a chain of components execute in an Automation. As each step executes, it writes any relevant details into what we call the "context object". This is the object from which [smart values](https://docs.automationforjira.com/using-issue-fields/use-smart-values.html) are pulled.

Most automations trigger on some manipulation of an issue, so it is often the case that {{issue}} exists within this context object. Lots of actions implicitly read this {{issue}} value to understand what issue to operate on.

Now to answer the actual question, **How do I copy information from a parent issue into a sub-task?**  

Given the above information about the context object, let's assume that \`{{issue}}\` currently refers to a Jira sub-task. In that case, accessing the parent is as simple as using the \`{{issue.parent}}\` smart value.   

Details about this and other smart values can be found in our docs here: <https://support.atlassian.com/jira-software-cloud/docs/smart-values-general/>
Automation for Jira wrong value / slow update
Asked by Malek Mhiri (er:sie/they):

Hello Community,

I am trying to set a simple rule:

If I have "myString" in a comment

then assign this ticket from "GorgeousAssignee" to "AwesomeAssignee"

Send an E-Mail to "AwesomeAssignee" and put the reporter in CC

Add a comment in the ticket, tag "CoolBoss" and inform them that "AwesomeAssignee" has been notified via E-Mail

When I run the rule, the ticket gets assigned to "AwesomeAssignee"

BUT

The E-Mail gets sent to "GorgeousAssignee" (former assignee)

In the comment also the name of the "GorgeousAssignee" is mentioned and not the new assignee.

Any ideas how to solve this?


Answers:
author: Malek Mhiri (er:sie/they)
body: This answers the question

<https://support.atlassian.com/jira-software-cloud/docs/smart-values-general/>

Changelog is the answer :-D


Tags: cloud

jira

jira-cloud
Automation to transfer from Pending to Waiting for Support based on Due Date
Asked by Jesse Slocum:

We get requests for weeks out sometimes, I am looking for an Automation Rule that will take it from a Pending Status to a Waiting for Support Status based on the Due Date set in the ticket.

Any help would be greatly appreciated.

Thanks in advance :)


Answers:
author: Marty
body: Hi Jesse,

If you can setup a custom SLA for when you would like to move the Request to 'Waiting for Support', then you could setup an automation rule when the SLA is breached.

I created a new SLA 'Custom SLA for due date' under Settings -\> SLA, then setup this custom automation rule via Settings -\> Automation.

![Screen Shot 2019-02-16 at 5.47.54 pm.png](https://community.atlassian.com/t5/image/serverpage/image-id/45930iBE8BF35D6976AFF6/image-size/large?v=v2&px=999 "Screen Shot 2019-02-16 at 5.47.54 pm.png")


Tags: jira-cloud
GC Request
Asked by erwenschrondinger:

Hi team,

Could you please run GC on the only repo in my bitbucket workspace that is larger than 2GB? The repo name starts with "wr".

There are no egregiously large files that I need to remove (nor do I want to), while locally I see:

```
git count-objects -Hv
count: 1850
size: 898.29 MiB
in-pack: 6765
packs: 1
size-pack: 43.03 MiB
prune-packable: 0
garbage: 0
size-garbage: 0 bytes
```

So after the GC, the repo size should be down to around 900M. Thank you very much!


Answers:
author: Patrik S
body: Hello [@erwenschrondinger](/t5/user/viewprofilepage/user-id/5393822) and welcome to the Community!

I've triggered a GC on your repository, which managed to reduce its size back to **52MB**!

Now that GC is completed, I would highly recommend you have everyone on your team remove their old copies of the repository and do a fresh clone of it. Since the old clones have a dirty history, it's better to delete them, so you don't risk pushing the dangling objects back into your cleaned repository, which would increase its size again.

Thank you, [@erwenschrondinger](/t5/user/viewprofilepage/user-id/5393822) !

Patrik S

comments: author: erwenschrondinger
body: Awesome, thank you so much Patrik! Really appreciate your help!


Tags: bitbucket-cloud

cloud
Is it possible to increase the timeout for Bitbucket Pipelines?
Asked by Sarthak Balasaheb Varpe:

Hello,

I am currently running the Bitbucket Pipeline for integrating with SonarCloud. The pipeline execution takes more than 2 hours, resulting in a failure. I would like to know if it's possible to increase the pipeline timeout.

Thank you.


Answers:
author: Aron Gombas _Midori_
body: One thing you could try is increasing the memory and CPU power to the double with:

```
size: 2x
```

See more details [here](https://community.atlassian.com/t5/Bitbucket-questions/Pipelines-Increase-the-Build-Container-Memory-above-1024mb/qaq-p/995713).

It will accelerate the execution of the pipeline, so it may also help to fit the max allowed duration.


author: Patrik S
body: Hello [@Sarthak Balasaheb Varpe](/t5/user/viewprofilepage/user-id/5393216) and welcome to the Community!

Currently, a pipeline step is limited to a max execution time of 120 minutes (2 hours). Exceeding that limit will make the pipeline timeout. We do have a feature request with our development team to increase this time for both the cloud runners (builds that are executed in Atlassian's infrastructure) and self-hosted runners :

* [Ability to extend Bitbucket Pipelines Execution Time - Pipeline Self-hosted Runner](https://jira.atlassian.com/browse/BCLOUD-21615)
* [Ability to extend Bitbucket Pipelines Execution Time - Pipeline Cloud Runner](https://jira.atlassian.com/browse/BCLOUD-14603)

We recommend adding your **vote** there, as it helps our product managers to understand the demand for new features. You can also add yourself as a **watcher** to be notified of any updates on the development of that feature.

In the meantime, since the limit is step-based, in case you are running multiple commands in a single step, try to divide these commands into multiple steps, as each step will have a 2-hour limit.

Thank you, [@Sarthak Balasaheb Varpe](/t5/user/viewprofilepage/user-id/5393216) !

Patrik S


Tags: bitbucket-cloud

cloud
How to fix the "git ssh host cannot connect to bitbucket.org port 22 network" error?
Asked by Bu?ra Han YILMAZ:

Even though I am logged in to the bitbucked plugin in VSCode, I cannot pull or push code.

I encounter the error "git ssh host cannot connect to bitbucket.org port 22 network".


Answers:
author: Patrik S
body: Hello [@Bu?ra Han YILMAZ](/t5/user/viewprofilepage/user-id/5392524) and welcome to the Community!

The Bitbucket plugin in VSCode is a tool that you can use to see your Pull Requests, Pipelines, and Issues, but the authentication for the VSCode plugin is different than the git authentication when you pull or push code.

That being said, from the description of the issue it seems like the port 22 is blocked on your network, which is causing the connection to fail. If that is the case, I would suggest following the instructions in the article below to try the alternative endpoint `ssh://git@altssh.bitbucket.org:443` as it will use port 443 instead of 22

* [Port 22 is blocked on local network](https://confluence.atlassian.com/bbkb/port-22-is-blocked-on-local-network-1168865232.html)

In case it doesn't work either, I would suggest testing the clone outside of VSCode in a terminal session using the command below:

```
GIT_TRACE_PACKET=1 GIT_TRACE=1 GIT_SSH_COMMAND="ssh -vvv" git clone git@bitbucket.org:<workspace>/<repository>.git
```

This will include verbose logs that can help in investigating if the SSH configuration is setup correctly in your machine. You can share the full log output with us, making sure to sanitize any sensitive information, as this is a public forum.

Should you have any questions, let us know!

Thank you, [@Bu?ra Han YILMAZ](/t5/user/viewprofilepage/user-id/5392524) !

Patrik S


Tags: bitbucket-cloud

cloud
Pipeline can't connect to my server with ssh
Asked by Antoine:

Hi,

I'm trying to set a ssh pipeline (atlassian/ssh-run:0.7.1) to execute a deployment script on my server.

I generated a pair of private/public key in my bitbucket repo. The public one is authorized on my server. My server is also protected by ip whitelist. When running the pipeline get stuck with "ssh: connect to host xx.xx.xx.xx port 22: Operation timed out". So, I'm trying to find out what is bitbucket cloud pipeline ip or domain to allow it.

Does anyone could solve this ?

Thank you :)


Answers:
author: Patrik S
body: Hello [@Antoine](/t5/user/viewprofilepage/user-id/473276) ,

thank you for reaching out to Community!

For pipelines to be able to access external services, the following IP addresses should be allowed in your firewall :

* [Valid IP addresses for Bitbucket Pipelines build environments](https://support.atlassian.com/bitbucket-cloud/docs/what-are-the-bitbucket-cloud-ip-addresses-i-should-use-to-configure-my-corporate-firewall/#Valid-IP-addresses-for-Bitbucket-Pipelines-build-environments)

Those are the IP ranges used in the build environments of Bitcket Pipelines. After adding those IPs to your firewall you can try running your pipeline again to test if the connection succeeds.

Hope that helps!

Thank you, [@Antoine](/t5/user/viewprofilepage/user-id/473276) !

Patrik S


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

ssh
Repo missing
Asked by moraza1:

My git repo disappeared. I don't see it in the GUI anymore. How do I get it recovered?

When I try to open a Support Case it gives me 2 options, read docs or post here. Help!


Answers:
author: Patrik S
body: Hello [@moraza1](/t5/user/viewprofilepage/user-id/5392863) ,

Checking internally I see the bitbucket account with the same email you used to post this question only has access to one workspace, that contains a single repository.

If the repository you are looking for was in a different workspace, it might be the case the admins of that workspace revoked your access.

Additionally, if you own more than one bitbucket account, you may be looking at the wrong account, so you can try to log in with any other account you own and check if it has access to the repository in question.

Thank you, [@moraza1](/t5/user/viewprofilepage/user-id/5392863) !

Patrik S


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

Did you back it up before your organisation deleted it?


Tags: bitbucket-cloud

cloud
SSH connection failure
Asked by erkin_251:

I have never faced any problems in the last 7+ years with bitbucket until 5 days ago, that I could not push/pull anymore over ssh.

I tried updating my ssh keys but it did not help.

I can use bitbucket over https \[1\] but I can't reach over ssh \[2\].

Any suggestions?

\[1\] git clone <https://bitbucket.org/mirror/git.git>  
Cloning into 'git'...  
remote: Enumerating objects: 280584, done.  
remote: Counting objects: 100% (58138/58138), done.  
remote: Compressing objects: 100% (9114/9114), done.  
remote: Total 280584 (delta 52851), reused 52474 (delta 48975), pack-reused 222446  
Receiving objects: 100% (280584/280584), 82.02 MiB \| 9.61 MiB/s, done.  
Resolving deltas: 100% (211958/211958), done.

\[2\] ssh -T git@bitbucket.org "ssh: connect to host bitbucket.org port 22: Network is unreachable"


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

Welcome to the community!

The error message you've received indicates that there may be a problem with your local network. It's possible that port 22 is being blocked or your firewall settings have been altered to block Bitbucket's SSH connection unintentionally.

We have a comprehensive Knowledge Base article that I recommend you look into. This article provides suggested solutions that may resolve your issue. Please check it out and try implementing the proposed solutions to see if they rectify your problem.

[Cloning from Bitbucket cloud via SSH Fails with "Port 22: Network is Unreachable."](https://confluence.atlassian.com/bbkb/cloning-from-bitbucket-cloud-via-ssh-fails-with-port-22-network-is-unreachable-1223821420.html)

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
We couldn?t log you in
Asked by chad.preisler:

When I try to log in, I always get a message saying "We couldn't log you in". My email is chad.preisler@gmail.com.


Answers:
author: Patrik S
body: Hello [@chad.preisler](/t5/user/viewprofilepage/user-id/5392371) and welcome to the Community!

Checking internally, your account was in a Dormant state due to a long period with no login. I went ahead and set it to **Active** again, so you should be able to login as usual again.

In case you are still facing issues accessing your account, please let us know.

Thank you, [@chad.preisler](/t5/user/viewprofilepage/user-id/5392371) !

Patrik S


author: Robert Wen_ReleaseTEAM_
body: Are you on a free or paid version of Bitbucket?


Tags: bitbucket-cloud

cloud
Login with username
Asked by kamal:

I'm not using bitbucket for quite a while and totally missed out on the login with email changes. To make the matters worse, I guess my primary email is still my old company's email which I don't have access anymore. Now try to login using my personal email just create a new account. Is it still possible to get my old account back? To contact support require me to be a paid user but before spending money on this, I want to make sure it possible to get back my account.


Answers:
author: Patrik S
body: Hello [@kamal](/t5/user/viewprofilepage/user-id/5392309) and welcome to the Community!

I noticed you created an internal ticket for this issue and were able to log into your account after contacting your previous company, as they had claimed that domain in Atlassian Access, so the account was being managed by the Organization.

Glad that you're back into your account. If you ever need help, feel free to reach out here in Community!

Thank you, [@kamal](/t5/user/viewprofilepage/user-id/5392309) !

Patrik S


Tags: bitbucket-cloud

cloud
Unable to leave Workspace
Asked by Amanpreet:

I am trying to leave workspace from workspace management screen, but seems like leave button is not doing anything

Workspace Url : <https://bitbucket.org/rajeshmishradev4/workspace/overview/>


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

Welcome to the community!

You can leave the workspace by following our guide below:

[Leaving a workspace](https://confluence.atlassian.com/bbkb/leave-a-workspace-1207179003.html#:~:text=Find%20the%20workspace%20in%20question,the%20%22Leave%20Workspace%22%20button.)

Let me know how it goes.

Regards,  
Syahrul

comments: author: Amanpreet
body: I tried this but workspace still exists in the list.


author: Ben
body: Hi [@Amanpreet](/t5/user/viewprofilepage/user-id/5392428)

I have answered your query on the other community ticket you have raised:  
<https://community.atlassian.com/t5/Bitbucket-questions/Unable-to-leave-workspace/qaq-p/2619970>

Hope it helped.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Cannot change line in the description in the Bitbucket issue
Asked by wood:

I am not sure whether this is expected. It is not allowed to change line in the description in the Bitbucket issue. Werid.


Answers:
author: Patrik S
body: Hello [@wood](/t5/user/viewprofilepage/user-id/5392203) and welcome to the Community!

It seems you are being affected by a bug in the platform where the return key(enter) is not working in the repository issues comments and descriptions editor. This bug is being tracked in the following ticket :

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

We recommend adding your **Vote** to that ticket as it helps our engineering team to understand the impact. You can also mark yourself as a **watcher** to be notified of any future updates in the fix of this bug.

In the meantime, you can try to use the workaround of drafting your comment/description in a text editor (with linebreaks) and paste it to your repository issue comment/description then click save.

Thank you, [@wood](/t5/user/viewprofilepage/user-id/5392203) !

Patrik S


author: wood
body: Thanks. Everyone is complaining and the issue even does not have an assignee. Failed the expectation.

___ edit ____

I mean to reply and cannot delete this.


Tags: bitbucket-cloud

cloud

issue
Can log in with OAuth but not Auth for Cloning
Asked by Bil Repenning:

We transferred our account from a local bitbucket server to a cloud server.

I'm the admin, but in the transfer my account was never able to clone.

I can log into our account and see everything through he browser just fine. This is by using OAuth from our MS OAuth.

But I am unable to authenticate when cloning: CLI, VSCode, SourceTree.

I don't remember ever setting a separate password and my OAuth password does not work. I've even tried using likely passwords I would have used if I did set a password and just forgot.

I can't reset my password because I don't know which password bitbucket thinks I have.

I don't want to set up SSH without really understanding what is wrong for fear that I'm making things more convoluted in the process.

Any help - or suggestions on where I'm being dense - would be appreciated!

<br />

Thanks


Answers:
author: Patrik S
body: Hello [@Bil Repenning](/t5/user/viewprofilepage/user-id/5233390) and thank you for reaching out to the Community!

In order to execute git operations over HTTPS or API calls to Bitbucket Cloud, you should use an App password instead. This is different from the password you use to log in to the UI.

The clone URL will look like below :

```
git clone https://USERNAME@bitbucket.org/WORKSPACE/REPOSITORY.git
```

You can check (and change) your Bitbucket account's username by navigating to your [Personal Bitbucket Settings](https://bitbucket.org/account/settings/). When prompted for the password, you should provide an App password.

If you haven't already, you can [create a new app password](https://support.atlassian.com/bitbucket-cloud/docs/create-an-app-password/) in your account, and use it to authenticate the clone. To clone a repository, the app password should have at least **repo:read** scope.

Hope that helps! Should you have any questions, let us know!


Tags: bitbucket-cloud

cloud
How to properly run docker compose v2 on bitbucket pipeline?
Asked by Dawid Cicho?:

I am attempting to run Docker Compose on Bitbucket Pipeline, and I came across this code on Stack Overflow (<https://stackoverflow.com/questions/72744395/how-to-use-docker-compose-v2-in-bitbucket-pipelines>) that seems promising. However, upon running it, I encounter the following error:

    Error response from daemon: authorization denied by plugin pipelines: --privileged=true is not allowed

In my search for a solution, I came across this Atlassian Confluence page: <https://confluence.atlassian.com/bbkb/docker-buildkit-error-in-pipelines-when-deploying-to-google-cloud-1235859715.html>

Unfortunately, the suggested solution provided on the Confluence page did not resolve the issue. Even after adding the line:  

    ?
    export PATH=/usr/bin:$PATH

<br />

I observed no changes. Additionally, altering the `DOCKER_BUILDKIT` variable did not work with my Docker Compose in version 24.

Is there any functional example of Docker Compose in Bitbucket Pipeline that you can recommend? I appreciate any assistance you can provide.


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

For Pipelines builds that run on Atlassian's infrastructure we've had to restrict certain docker options. You can find details on the documentation below:

* <https://support.atlassian.com/bitbucket-cloud/docs/run-docker-commands-in-bitbucket-pipelines/#Running-Docker-commands>

--privileged is one of the options we have restricted. Are you using **privileged: true** in your docker-compose.yml file?

The Confluence article you found is specific only to some Docker images that are used as build containers.

If you'd like me to investigate further your specific issue, I would need to know the content of your bitbucket-pipelines.yml file and the content of your docker-compose.yml.

The restrictions on the documentation page I shared do not apply to builds running on a self-hosted runner. If you have your own machine where you can run builds, you could also look into using one of our self-hosted runners:

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

Please feel free to let me know if you have any questions.

Kind regards,  
Theodora


author: Bilal Mughal
body: image: docker:20.10.8

pipelines:  
default:  
- step:  
name: Build and deploy  
script:  
- docker login -u $DOCKER_USERNAME -p $DOCKER_PASSWORD  
- docker-compose build  
- docker-compose push

comments: author: Bilal Mughal
body: use this code


author: Dawid Cicho?
body: *** ** * ** ***

Thanks, I checked it and it kinda works.  

When I do docker compose up I get this error: Error response from daemon: authorization denied by plugin pipelines: --mounts is not allowed


Tags: bitbucket-cloud

cloud