youngmon/atlassian-qna huggingface dataset:
Jira Automation: Timed Automated Actions
Asked by Vish Reddy _Revyz_:

Hi All,

I am trying to achieve the following

When an Issue transitions from status X to status Y an automation rule kicks in and does the following:

1. **Send a web request**
2. Start a countdown timer for **N** mins
3. Once the timer expires
4. **Send a web request**
5. **Transition Issue from status Y to status Z**

I am able to implement steps 1, 4 \& 5, looking for advise on how to implement steps 2 \& 3

Thank you

Vish


Answers:
author: Bill Sheboy
body: Hi [@Vish Reddy _Revyz_](/t5/user/viewprofilepage/user-id/4639960)

What problem are you trying to solve by doing this? Specifically what is the purpose of the timer? Knowing that may help the community to offer suggestions. Thanks!

Until we know that...

There is nothing built into rules to do this. A couple of possible work-arounds could be:

* With a timer
  * split this rule in half, use an external service with a timer provide a webhook that can be listened for to trigger the second rule, and then perform to the second web request and issue transition
* Without a timer (event-driven processing)
  * split the rule, ignoring the timer and using event-driven processing, and have the first web request call back to the Jira REST API functions to update an issue...leading to triggering the second rule with the remaining steps

Kind regards,  
Bill

comments: author: Vish Reddy _Revyz_
body: Thank you [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313)

Appreciate your quick response.

Here is what I am trying to do:

I am putting together process where in a support engineer on our team gets access to a restricted system for a specific amount of time once his / her access approved via a Jira ticket.

* Support engineer creates a ticket requesting access to the restricted system
* Approver approves the request and transitions the ticket to approved status
* Jira then triggers a web request to the restricted system to provide access
* After N minutes Jira then triggers a second web request to the restricted system to remove access

Thank you again for your suggestions!


author: Bill Sheboy
body: Ah...in that case perhaps another approach would be to set a custom field (or entity property) to a target timeframe to suspend access, and then use a scheduled trigger rule to poll for when to remove the access, based on that set custom field (or entity property).


author: Mikael Sandberg
body: Just to add to Bill's excellent suggestion. You could utilize SLA for it as well that starts when the request is approved and then use the SLA threshold breach trigger to send the web request to remove the access.


Tags: jira-cloud
I am unable to login to my bitbucket account.
Asked by John Pethers:

Atlassian credentials are fine but I get the "We couldnt log you in" error every time I try to access bitbucket.

Please help.


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

Your Bitbucket Cloud account was in a dormant state, which is the reason for the error you were seeing.

I went ahead and reactivated it. Could you please try logging in when you have some time, and let me know if the issue is resolved?

Kind regards,  
Theodora

comments: author: John Pethers
body: Perfect thank you


author: Theodora Boudale
body: You are very welcome. Please feel free to reach out if you ever need anything else!


Tags: bitbucket-cloud

cloud
"We couldn't log you in"
Asked by -:

I can't log in in Bitbucket , I always get message "We couldn't log you in"


Answers:
author: Laurie Sciutti
body: Hello [@-](/t5/user/viewprofilepage/user-id/5540440) and welcome to the Community! Your account may be inactive so you'll need Atlassian Support assistance. Maybe [@Patrik S](https://community.atlassian.com/t5/user/viewprofilepage/user-id/4603309) or [@Theodora Boudale](https://community.atlassian.com/t5/user/viewprofilepage/user-id/818086) can assist.

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

I have just re-activated your account as it was marked DORMANT due to not being logged in to since 2018.

You should be able to login now without issues.

Cheers!

- Ben (Bitbucket Cloud Support)


author: -
body: Thanks


author: Nicolas Grossi
body: [@-](/t5/user/viewprofilepage/user-id/5540440) Welcome! You license type is ?

Nicolas


Tags: bitbucket-cloud

cloud

log-in
pipeline status system fail on REST_SERVICE_UPDATE_STEP_PROGRESS
Asked by ???:

I have been used bitbucket cloud pipe line for free.

Today, when I run ci/cd pipeline, I got error message "System Fail.

REST_SERVICE_UPDATE_STEP_PROGRESS".

What should I do? Bitbucket pipeline view page is also stuck.


Answers:
author: Ben
body: Hi ???,

Could you please perform a browser refresh/cache clear and attempt to load the Pipelines page again?

I would also like you to re-run the pipeline that failed. We had an incident last night which affected the Bitbucket UI and other areas that has since been resolved.

Please let me know if you are still encountering issues.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Retrieving commit metadata via REST API
Asked by Yusef Ahmed:

I am trying to create a Python script which given two Git hashes, it finds what commits occurred in between the two hashes. It then should get metadata regarding each commit found, such as the authors of the commit, the date \& time, the files that were changed, etc.

Currently, my script locally uses Git CLI to do this, however its far too slow. Are there APIs I can use to speed this process up?


Answers:
author: Aron Gombas _Midori_
body: [@Yusef Ahmed](/t5/user/viewprofilepage/user-id/5540654) There are 4 REST API end-point to list commits: <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-commits/#api-repositories-workspace-repo-slug-commits-get>

The response contains author, date, message and stuff, but it seems it may not contain the file list. If that's the case, you can get more details using this end-point:

<https://developer.atlassian.com/cloud/bitbucket/rest/api-group-commits/#api-repositories-workspace-repo-slug-commit-commit-get>

(I don't see any "bulk get commit" operation though...)


author: Gajesh Bhat
body: Hello [@Yusef Ahmed](/t5/user/viewprofilepage/user-id/5540654) . Welcome to Bitbucket Community! You can use Bitbucket Cloud API to achieve this automation : <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-commits/>


Tags: bitbucket-cloud

cloud
Permission denied (publickey)
Asked by EvanAad:

It's been a while since I last used Git. I have since upgraded my computer, and some files may have been deleted in the process.

I have tried to push my committed changes:

```
git push
```

I used to be able to do this with no issue, but now the action failed with the following error message.

```
no such identity: /Users/evanaad/.ssh/{bitbucket}: No such file or directory git@bitbucket.org: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.
```

When I run

```
> cd ~
> ls
```

two of the listed files are \`{bitbucket}\` and \`{bitbucket}.pub\`.

However,

```
> ls -a .ssh
```

shows the following listings:

```
. .. config known_hosts known_hosts.old
```

When I browse to <https://bitbucket.org/account/settings/ssh-keys/> there's a key there that is called "Default public key for iMac" and it has last been used mid April of this year.

Please help me resolve this problem, and push my committed changes.

My computer is iMac 1.5-inch, Late 2013 with some hardware upgrades.

My operating system is macOS Catalina Version 0.15.7 (19H2026).

My git version is 2.45.2


Answers:
author: EvanAad
body: I managed to solve the problem on my own:

I followed some of the steps listed on [this page](https://support.atlassian.com/bitbucket-cloud/docs/set-up-personal-ssh-keys-on-macos/):

1. I started an SSH agent using the command \``eval $(ssh-agent)`\`.

2. I added my already existing private key to the agent using the command \``ssh-add ~/{bitbucket}`\`. When prompted to enter a passphrase, I used the passphrase I saved once upon a time on my passwords list under the name "iMac SSH for BitBucket".

3. I made sure the file \~/.ssh/config contained the following code:

```
`Host bitbucket.org`
`    ``AddKeysToAgent yes`
`    IdentityFile ~/.ssh/{bitbucket}`
```

4. Finally, I ran \`git push\`. This time it worked.


Tags: bitbucket-cloud

cloud

permission

ssh
Bitbucket unresponsive
Asked by Alexander Berthold:

Hi Folks, currently bitbucket seems to have more issues than what is currently being mentioned in the status page (<https://bitbucket.status.atlassian.com/>) - the pipeline tab isn't loading most (\>90%) of the time, and if it loads, recent builds have the status "System Error".

Is this known already? How to report this properly?


Answers:
author: Alexander Berthold
body: The status page now mentions the degraded state

comments: author: Ben
body: Hi [@Alexander Berthold](/t5/user/viewprofilepage/user-id/914258)   

Just checking in here. I'm assuming you are encountering no further issues once the incident was resolved?

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Unable to login Bitbucket - We couldn?t log you in
Asked by Max Ritter:

Hi,

Receiving error "You may run into this issue when you use specific browsers or add-ons that hide the referer header for id.atlassian.com and other Atlassian sites. Check for these and then try logging in again." when log in...

Seems like you need reactivate my account. Would you help me, please? Switching browsers did not work..


Answers:
author: vikram
body: Hi [@Max Ritter](/t5/user/viewprofilepage/user-id/5540360)

Welcome to Atlassian Community

I think it is a long wait for you to activate your account.

But only the Atlassian person can activate your account.

VIkram P


Tags: bitbucket-cloud

cloud
When trying to integrate Bitbucket and Snyk Security, we keep getting an error.
Asked by Sean Stuckert:

Hello Atlassian Community,

I work for a company that stresses the importance of secure coding in Bitbucket. We use Snyk to look for any vulnerabilities in our software, and we want to integrate Snyk with Bitbucket but we are recieving an error:

```
{  "jsonapi": {    "version": "1.0"  },  "errors": [    {      "id": "f79b0dd4-9c97-4998-96c5-82d4d4133280",      "links": {        "about": "https://docs.snyk.io/more-info/error-catalog#snyk-openapi-001-bad-request"      },      "status": "400",      "code": "SNYK-OPENAPI-001",      "title": "Bad request",      "detail": "Parameter 'workspaceName' must be url encoded. Its value may not contain reserved characters.",      "source": {        "pointer": "/api/bitbucket-connect/installation/snyk-oauth"      },      "meta": {        "links": [],        "parameter": "workspaceName"      }    }  ]}

```

This error keeps claiming that we need a encoded URL to complete the integration. This happens during the "Sign up or Log in to Snyk" step of the integration process. Is there any way we can fix this error?


Answers:
author: Patrik S
body: Hey [@Sean Stuckert](/t5/user/viewprofilepage/user-id/5539990) ,

and welcome to the Community!

The JSON you shared seems to be the JSON response of an API call to Snyk's API. Since this error response is coming from Snyk's API itself, I would recommend filling a ticket with Skyk support at the following link :

* <https://support.snyk.io/hc/en-us/requests/new>

Thank you, [@Sean Stuckert](/t5/user/viewprofilepage/user-id/5539990) !

Patrik S


Tags: bitbucket-cloud

cloud

integration

snyk

url
ssh key available?
Asked by agenteo:

Hi,

I can't find where to add/edit SSH key for my repos.

I am not using pipelines and I don't want to.

Can I still add/edit SSH keys without setting up pipelines? I am pretty sure in Feb/March this year I was able to use the process described in this 2018 blogpost:

[Configuring SSH Key for Bitbucket repositories - DEV Community](https://dev.to/jorge_rockr/configuring-ssh-key-for-bitbucket-repositories-2925)

Thanks,

Enrico


Answers:
author: Laurie Sciutti
body: Hello [@agenteo](/t5/user/viewprofilepage/user-id/5539919) and welcome to the Community! Maybe this will help: <https://confluence.atlassian.com/bbkb/bitbucket-cloud-ssh-host-key-rotation-faq-1235851234.html>

comments: author: agenteo
body: no I don't think that's it...

Here I found a doc that points to the location for the SSH keys:

[Permission denied (publickey) \| Bitbucket Cloud \| Atlassian Documentation](https://confluence.atlassian.com/bbkb/permission-denied-publickey-302811860.html#resolution)


author: Ku?be
body: Hi [@agenteo](/t5/user/viewprofilepage/user-id/5539919)  

Welcome to the community (:  

You can still add or edit SSH keys for your Bitbucket repositories without setting up pipelines. Here's how you can do it.

* **Log in to Bitbucket**: Go to your Bitbucket account and log in.
* **Navigate to Personal Settings** : Click on your avatar in the bottom left corner and select **Personal Settings**.
* **Access SSH Keys** : In the left sidebar, click on **SSH keys**.
* **Add/Edit SSH Key** : Here, you can add a new SSH key or edit existing ones by clicking the **Add key** button.

LOOKS LIKE THIS:  
![](https://confluence.atlassian.com/bbkb/files/302811860/1369277156/1/1709910336106/Screenshot+2024-03-08+at+8.34.27+PM.png)  

Please let us know if you have any questions.  
Cheers, [@agenteo](/t5/user/viewprofilepage/user-id/5539919) !  
Kugbe


author: Ku?be
body: -


Tags: bitbucket-cloud

cloud
????? ????? ?????
Asked by ???? ???:

????? ?????? ????? ????? (????? ???) ???? ???? ?????? ????????, ????? ???? ???? ?????? ???? ????, ??? ?? ???? ?? ????? ???? ?? ???? ?????? ????? ?????, ????? ?? ????, ??? ????? ?????. ???? ???? ????? ???????!!!

![????? ??? 2024-07-09 191204.jpg](/t5/image/serverpage/image-id/334386i1EF5A2AB9176845A/image-size/large?v=v2&px=999 "????? ??? 2024-07-09 191204.jpg")

????? ????? ???? ?? ?? ?????? ??? ??????:  
![????? ??? 2024-07-09 191425.jpg](/t5/image/serverpage/image-id/334389iADAFA7F68FA7E633/image-size/large?v=v2&px=999 "????? ??? 2024-07-09 191425.jpg")???? ???? ???? ????? ???????


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

and welcome to Community!

Checking internally I can see the account you shared in the screenshot is currently Active. In those cases, if that user was set for deletion, the user just needs to login again during the grace period of 14 days, for the account to get reactivated.

Could you confirm if you managed to activate that account and invite it to your workspace?

Thank you, [@???? ???](/t5/user/viewprofilepage/user-id/5539842) !

Patrik S


author: Nicolas Grossi
body: [@???? ???](/t5/user/viewprofilepage/user-id/5539842) Welcome! Did you tried by remove and add it again ?

Nicolas


Tags: bitbucket-cloud

cloud

not-applicable

user-management
Requesting garbage collection after repo size reduction
Asked by Tim Storck:

Hello,

I am doing a dry run of a size reduction operation on a repo. I have a test repo under this account that is currently reporting as 2.81 GB in Bitbucket, though it was 2.7 before I used BFG and did a mirror push. I saw info online that garbage collection is done automatically for pushes but I did multiple pushes, I have no pull requests, and looking at search results for "repo size" here suggests that it needs to be requested to a team member? It seems this is the place to request a garbage collection for free accounts like mine? Can a kind Atlassian team member please run garbage collection on the repo?

Thanks


Answers:
author: Patrik S
body: Hey [@Tim Storck](/t5/user/viewprofilepage/user-id/5539832) ,

and welcome to the Community!

You're correct, once you push a cleaned-up repository to the Bitbucket cloud, a garbage collection is required to remove any dangling/unreferenced objects that were left behind.

I went ahead and triggered a GC for your repository, which managed to reduce its size back to **882MB**.

Could you confirm if everything looks good on your end?

Please let us know in case you have any questions.

Thank you, [@Tim Storck](/t5/user/viewprofilepage/user-id/5539832) !

Patrik S

comments: author: Tim Storck
body: Thanks!   

Noticed the Bitbucket UI no longer displays repo size. Curious why but not important, guessing it doesn't if less than 2 GB.


author: Robert Wen_ReleaseTEAM_
body: Hi [@Tim Storck](/t5/user/viewprofilepage/user-id/5539832) ! Welcome to the Atlassian Community!

I've sent notice for Atlassian Support to look at your request. They should respond in two business days.


Tags: bitbucket-cloud

cloud
Repo too larger need to run git gc on the repo
Asked by Jason:

Hi,

our repo is saying it is too large but I cant find out how to run git gc on the bitbucket server side after reducing a lot of files down.

can someone please help?

It is a private repo so I dont want to post the repo link on here


Answers:
author: Jason
body: resolved by submitting a ticket to atlassian to run git gc - repo now 20% the size it was!


Tags: bitbucket-cloud

cloud
Rate limit identifier
Asked by Snyk:

Hello, is there a way to know ahead we are about to hit the rate limit?  
I was trying to look at some response headers but could not find a proper one.  

is there some way to know we are at a certain percentage of usage of budget?  

Thank you


Answers:
author: Saxea _Flowie_
body: Hi [@Snyk](/t5/user/viewprofilepage/user-id/4735683)

Unfortunately, unless it has changed very recently, no. We are also impacted by this. [This issue](https://jira.atlassian.com/browse/BCLOUD-17723) gathers most of the information around API rate limiting.


Tags: bitbucket-cloud

cloud
Locked out of Bitbucket
Asked by Sam Case:

My bitbucket account is locked and I'm unable to receive any recovery emails. I have a recovery key but unable to use it.  
I enabled the two factor authentication for the bitbucket, but deleted the entry in the authenticator application. I lost the recovery codes as well.

Please help me recover my account


Answers:
author: Ben
body: Hi [@Sam Case](/t5/user/viewprofilepage/user-id/5539807)

I can see my colleague has sent a 2FA recovery email to you, may I confirm that this is resolved?

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Sam Case
body: Yes, I received the email this time. You can resolve it.

Sam


Tags: bitbucket-cloud

cloud
Changes since last review greyed out
Asked by dgamboa:

I'm never able to use this option since it's always disabled. What are the conditions that need to happen for it to be available?


Answers:
author: Ben
body: Hi dgamboa,

We have documentation that I believe will answer this question - please refer to this and let me know if you have further questions:

* [Bitbucket Cloud - Iterative Review](https://bitbucket.org/blog/iterative-review#:~:text=The%20%22Changes%20since%20last%20review,it%20they've%20already%20reviewed.)

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
How to get size of the repository including its Large File Storage?
Asked by Nagaraja:


Answers:
author: Theodora Boudale
body: Hi [@Nagaraja](/t5/user/viewprofilepage/user-id/5043321),

If you are an admin of the repo, you can find this on Bitbucket Cloud website.

1. Open the repository on Bitbucket's website
2. Select **Repository settings** from the left sidebar

The page that opens with the **Repository details** has info on the **Size** (size of the core .git repo) and also **Git Large File Storage** (size of LFS files).

Please be mindful that if you use Git commands to find the LFS size locally, this may not always correspond to the actual value of Git LFS size on Bitbucket. For example, if you rewrite history in the repo to remove some LFS files, this will only affect the pointers in the core repository, LFS files will not be deleted. In this case, the LFS files stored in the repo will be more than what your clone will fetch locally.

The most reliable way to get the size is via the **Repository settings** page.

Please feel free to reach out if you have any questions!

Kind regards,  
Theodora


author: Ku?be
body: Hi [@Nagaraja](/t5/user/viewprofilepage/user-id/5043321)   

This DOC should help shed light to your question: <https://confluence.atlassian.com/bbkb/what-are-the-repository-and-file-size-limits-1167700604.html>

comments: author: Nagaraja
body: Hello Kugbe,

Is it possible to get repository LFS file size using repository URL in Rest API call?.


author: Ku?be
body: Yes, while the Bitbucket REST API does not provide direct LFS size details, you can use the general repository API call for overall repository size and local Git commands to get specific LFS file sizes.  

**These DOC could help:**   

<https://support.atlassian.com/bitbucket-cloud/docs/use-git-lfs-with-bitbucket/>


author: Nagaraja
body: I would be grateful if you could impart the API endpoint and the necessary Git commands to me.


author: Ku?be
body: for better outlook this DOC can also help: <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-group-repositories>  

This should help:

```
curl -u username:api_token https://api.bitbucket.org/2.0/repositories/username/repo_slug?fields=size
```

<br />

- This will get you started, but it is a process that will lead to cloning the repo, looking through the repo..., find all files needed and their sizes and including creating a script to sum up all LFS file and file sizes.  

This command will help you list all files and their sizes:

```
git lfs ls-files 
```

Hope that helps, good luck! (:


author: Nagaraja
body: I need to check the repository size and LFS file size before cloning the repository.


author: Nagaraja
body: .


Tags: bitbucket-cloud

cloud