youngmon/atlassian-qna huggingface dataset:
Automatically release a version
Asked by Aftab_Akhtar:

Hi,

I am looking to create a rule that would do two things.

**1. Automatically release a version at the end of the month.**

**Issue:** I have a release date against this version and it has not released it.

![Screenshot 2023-12-28 170753.png](https://community.atlassian.com/t5/image/serverpage/image-id/298357i634E7C6172ACF66E/image-size/large?v=v2&px=999 "Screenshot 2023-12-28 170753.png")

i have set this rule up. however it does not seem to be working.

![Screenshot 2023-12-28 171121.png](https://community.atlassian.com/t5/image/serverpage/image-id/298358iE77B6B9B2076037E/image-size/large?v=v2&px=999 "Screenshot 2023-12-28 171121.png")

2. Automate a creation of a new release once point 1 has been actioned.

my version numbering is 24.1--\> 24.2 ---24.3 and I want it to go to 30.1 if possible.


Answers:
author: Bill Sheboy
body: Hi [@Aftab_Akhtar](/t5/user/viewprofilepage/user-id/2836308)

This seems to be a duplicate post of your other question. Please use the other one to avoid splitting up answers from the community. Thanks!

<https://community.atlassian.com/t5/Jira-Content-Archive-questions/Automatically-release-a-version/qaq-p/2567403>

Kind regards,  
Bill


Tags: cloud

jira-software

jira-software-cloud
Auto update of logged hours when its linked issues are updated
Asked by Nagarjuna Busireddypally:

Hello Everyone,

I need help in below requirement. I have 3 issue types lets say A,B,C. B and C are linked issues of A. What i need is when users log some time to B and C issuetypes, it should automatically log to A issue type. If time is logged for both issue types B and C, sum of total logged hours should be updated in A issue type, ( if time logged for B is 2 and Cis 3, A issue type should automatically update with 5 hours as logged time).

Is there any way we can achieve this, there is no script runner plugin. Any leads on this is very helpful

Thank you in advance.


Answers:
author: Bill Sheboy
body: Hi [@Nagarjuna Busireddypally](/t5/user/viewprofilepage/user-id/5103416)

Yes, that can be done with an automation rule. The rule would be triggered on work logged, check that the issue type is B or C with a condition, and then branch to the linked issue A to add the same work logged with an action.

I recommend trying to create your rule, and if you run into challenges, post images of your rule and the audit log details, describing what is not working as you expect. Using rules requires learning and experimentation to be successful, so creating the rule will help you understand it better.

To get you started on creating your rule, please refer to these documentation and example sources:

* <https://www.atlassian.com/software/jira/guides/automation/overview#what-is-automation>
* [https://www.atlassian.com/software/jira/automation-template-library#/rule-list?systemLabelId=all\&page=1\&pageSize=20\&sortKey=name\&sortOrder=ASC](https://www.atlassian.com/software/jira/automation-template-library#/rule-list?systemLabelId=all&page=1&pageSize=20&sortKey=name&sortOrder=ASC)
* <https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/>

Kind regards,  
Bill

comments: author: Nagarjuna Busireddypally
body: Hello [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313)

Happy new year, I will work on this and will keep you posted.

Thank you


Tags: cloud

jira-software

jira-software-cloud
Jira automation: Add all the "Is tested by" linked tests to a test plan
Asked by Elizabeth Thomas:

Hi!  

I'd like to set up an automation that does the following.   

When the sprint starts, create an issue with the type "Test Plan". Then for each ticket in sprint that has a "tested by" link and test, add that test to the test plan that was just created.   

I'm stuck on the order of how to set the automation flow, and how to get jira to go through each ticket in sprint and grab the test that's under the "tested by" link.   

Thank you for any help provided!


Answers:
author: Bill Sheboy
body: Hi [@Elizabeth Thomas](/t5/user/viewprofilepage/user-id/4755646)

To do what you ask, I believe your rule would need to gather the issues in the sprint using JQL with a Lookup Issues action, and then use both smart value, list filtering to find the ones to link to the Test Plan.

If I understand your structure (not the hierarchy), it is like this:

* a Sprint containing
  * issue A
    * linked with "tested by" to
      * issue 1 (which is a Test issue type)
  * issue B (has no linked test)
  * issue C
    * linked with "tested by" to
      * issue 2 (which is a Test issue type)
  * issue D (has no linked test)

And so you expect some issues in the sprint to not have linked Test issues, correct?

Assuming the trigger is Sprint Started, the lookup JQL could be the following, which is then used with list iteration and filtering to get the Test issues for connection to your Test Plan issue.

project = *yourProjectName* AND sprint = {{sprint.id}} AND issueLinkType = "Is tested by"

Please adjust this based on the specifics for your links and project, and then try testing it stand-alone first before use in your rule.

Kind regards,  
Bill
How can I use a page like a template to create other pages
Asked by Janine Davila:

I have a page (a base page) and I need to create an automation or other process that allows me through a button in a principal page make a copy of this page, when the users click on the button.

Something similar to the macro button to create the page, but, in this case using my page.

I can't do using templates, because currently in cloud the templates don't allow images, or include tabs or grids/tables inside.

Thanks

Regards


Answers:
author: Rebekka Heilmann _viadee_
body: I have no issues whatsoever using images, tables and other macros in templates. What exactly isn't working?


Tags: confluence-cloud
'When version released' rule doesn't see released version
Asked by Anastasiia Tsvetkova:

Hi, everyone. Could you please help me figure out why my Automation rule doesn't trigger at all.

It seems that the 'When version released' rule doesn't see the released version that was triggered by another previous rule.

And after the first rule I have to go to Releases and unrelease it manually and release again to make other rules work.

1. The first rule I have is 'When all issues moved to Live - release a version' that ends with 'Release version' rule. There are no specific settings mentioned![1.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/297865i065C75C7D71A5E70/image-size/large?v=v2&px=999 "1.jpg")

2. And after this rule I have two Rules that go after previous one:

1. After the version releases send Slack
2. After the version released create another one

both of them use basic trigger 'When version released'. None of them use Version name filter. Coz I have only one version at a time. (Probably should? )

Thank you for any help


Answers:
author: Bill Sheboy
body: Hi [@Anastasiia Tsvetkova](/t5/user/viewprofilepage/user-id/5230947)

For a question like this, please post complete images of the rules involved, and the audit log details showing the rule execution. Those will provide context to help the community offer suggestions. Thanks!

Until we see those...

It appears you have one rule which is using the Release Version action, a second rule triggered on Version Released, but the second rule is not starting.

By default, the actions of one rule cannot trigger another rule. This prevents accidental looping and performance problems.

When you intentionally want the actions of one rule to trigger another, enable the "Allow Rule Trigger" option in the details at the top of the second rule: <https://support.atlassian.com/cloud-automation/docs/create-and-edit-jira-automation-rules/#Configure-your-new-rule>

Kind regards,  
Bill
How do I set a custom checkbox to true/false with automation?
Asked by joachim ramberg:

I've been trying some variations which results in different errors like "Specify a number for the custom field (below 100,000,000,000,000)". Worth noting is that I'm doing this in Product Discovery.

{  
"fields": {  
"customfield_10324" : \[{ "value" : "true"}\]  
}  
}

{  
"fields": {  
"customfield_10324" : "true"  
}  
}


Answers:
author: joachim ramberg
body: Solved it.

**Enable**

{  
"fields": {  
"customfield_10324" : 1  
}  
}

**Disable**

{  
"fields": {  
"customfield_10324" : 0  
}  
}
Unable to login Bitbucket - We couldn?t log you in
Asked by Chris Handy:

Getting this error when i try to log in. Seems like my account might need to be reactivated, please help.

Thanks,

Chris


Answers:
author: Mark C
body: Hi [@Chris Handy](/t5/user/viewprofilepage/user-id/5547977)  

Welcome to the community.  

It seems that your Bitbucket Cloud account was marked as a Dormant account due to not logging into Bitbucket.org for a long period of time.

I went ahead and reactivated your account.

Could you try logging in again?

<br />

Regards,  
Mark C


author: Chris Handy
body: [@ben](/t5/user/viewprofilepage/user-id/751267) Any chance I can get some help here?


Tags: bitbucket-cloud

cloud
Permission denied when trying git push
Asked by Daiyue Weng:

Hi,

I have created a new repo on Bitbucket and created two branches, i.e. main and develop using the Web UI.

I initialised my local repo, added and committed the files I wanted to upload to the cloud repo and added remote origin, then tried to push the local changes to the remote repo. But I got the permission denied error and couldn't proceed.

```
git push -u origin develop
```

```
The authenticity of host 'bitbucket.org (185.166.141.9)' can't be established. 
ED25519 key fingerprint is SHA256:ybgmFkzwOSotHTHLJgHO0QN8L0xErw6vd0VhFA9m3SM. 
This key is not known by any other names 
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes 
Warning: Permanently added 'bitbucket.org' (ED25519) to the list of known hosts. 

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. 
```


Answers:
author: Theodora Boudale
body: Hi Daiyue,

Based on the error message, you are using SSH to interact with this repo.

I suggest checking the following two things:

**1.** Have you generated an SSH key pair on the computer you are pushing from? And have you added the public key to your SSH keys here <https://bitbucket.org/account/settings/ssh-keys/>?

**2.** If you have setup the SSH keys, and assuming that you use OpenSSH as a client, try adding the following lines in the **\~/.ssh/config** file on this computer:

```
Host bitbucket.org
  AddKeysToAgent yes
  IdentityFile ~/.ssh/id_rsa
```

Please replace **\~/.ssh/id_rsa** with the path and name of the private SSH key, whose public key you have uploaded to Bitbucket, if different.

If the file **config** doesn't exist in the **\~/.ssh/** directory, you can create it and add the content above. This will ensure that this specific SSH key will always be offered when you clone, pull, or push to a Bitbucket repo.

Please feel free to let me know how it goes and if you need further assistance.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Not receiving emails for new user verification
Asked by Howard Cole:

Hi,

I invited a new user to bitbucket, unfortunately just before the users email address had been set up. This appears to have broken the entire email chain for that email address. For example, I can resend the verification email, but no email is ever received. I have checked the spam and the email logs - the email address is correct but no email has been received.

From reading other comments on the forum, it appears that I may have been added to some email block which sounds likely.

My question is: How do I get this restored. I am using the community version of bitbucket so I have no access to the support team.

I have worked around this for now by using an alternative email address. But this is not ideal.

Thanks,

Howard.


Answers:
author: Mark C
body: Hi [@Howard Cole](/t5/user/viewprofilepage/user-id/4542582)

Welcome to the community.  

I didn't see any blocked or bounced status against your email domain.  
However, I still went ahead and ran the process to clear any blocks or bounces against it.  

Would it be possible for you to try to re-invite the user by removing the email and adding it again?

Let me know how it goes.

Regards,  
Mark C


author: Hana Ku?erov?
body: Hi [@Howard Cole](/t5/user/viewprofilepage/user-id/4542582) ,

welcome to the Atlassian Community. I've marked this question for Atlassian support to check it. Hopefully they will get back to you and unblock the needed e-mail address. I understand you don't want the e-mail address to be publicly visible here, but hopefully Atlassian will create an issue for you, so that you can share it with them.


Tags: atlassian-accounts

bitbucket-cloud

cloud
Pipeline fails: failed to resolve reference
Asked by Ren? Dyhr:

Getting this issue in Piplelines. Is there a service disruption?

```
rpc error: code = Unknown desc = failed to pull and unpack image "docker-registry/development:latest": failed to resolve reference "docker-registry/development:latest": failed to do request: Head "https://docker-registry/v2/development/manifests/latest": dial tcp: lookup docker-registry on 10.61.128.2:53: read udp 10.61.215.93:45871->10.61.128.2:53: i/o timeout
```

Pulling works fine on own computers. And sometimes the pipeline will go through with some steps and sometimes some other steps. Very random.

\* Registry url has been removed to keep privacy on private registry.


Answers:
author: Ben
body: Hi Ren?,

May I know if you are still encountering this issue? As far as I can tell, there was no incidents reported by us on the date you specified.

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: Ren? Dyhr
body: It fixed itself, but we experienced it a lot for half an hour or so around the post time.

Luckily we don't use Pipelines 100% yet, but this kinda shows the issues when something like this happens since we're not able to build anything.


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Adding Bitbucket existing workspace as a product to my atlassian administration.
Asked by Jeroen Mares:

At our organisation we use several Atlassian products.

Jira, Confluence, BitBucket etc.

Also Atlassian Guard/Access.

When looking at the product overview in admin.atlassian.com BitBucket is not listed as a product.

When trying to add BitBucket to this list via Add Product I can only create a NEW workspace.

How can I add an already existing workspace, where our same users have access using the same atlassian accounts, aswell as I have admin access to.

Thank you for your help.

--

Edit

**I found the solution here:**

**<https://bitbucket.org/blog/bitbucket-audit-logs-are-now-available-in-atlassian-access>**

**No need for 'add product' but in the dot-menu there is another option 'link products' for existing products...**


Answers:
author: Nikola Perisic
body: Hello [@Jeroen Mares](/t5/user/viewprofilepage/user-id/705070)

Within the admin.atlassian.com, have you selected your organisation and within it add the product?

comments: author: Jeroen Mares
body: Yes there is only one organisation.


author: Nikola Perisic
body: Can you post a screenshot? (blur out all of the confidential data)


author: Jeroen Mares
body: I have just found the 'link products' button explained here.

<https://bitbucket.org/blog/bitbucket-audit-logs-are-now-available-in-atlassian-access>


Tags: administration

atlassian

bitbucket-administration

bitbucket-cloud

cloud
How to determine what triggered pipeline?
Asked by John Alberts:

I need to pass information from a merged PR to the pipeline that merged PR triggered. I don't see any available environment variables that would pass that info.

How can I get it? Specifically, I'd like to know the build number of the pipeline for the PR that triggered the branch pipeline for the branch the PR merged into.

Thanks


Answers:
author: Ben
body: Hi John,

Just to make sure I understand:

* You have a PR that is merged, this triggers a pipeline build because of pull-request YML tag
* That subsequently triggers a branch pipeline for the destination branch because of branches YML tag

The only way I could think of doing this would be to write a script that would make an API call to grep the previous Pipeline build # and set this as an environment variable in the branch pipeline:

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

<br />

The reason for this is that there is no way of sharing environment variables between builds, only steps within the same build (by using artifacts):  
<https://jira.atlassian.com/browse/BCLOUD-20294>

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
master.lock preventing me from pushing to the server
Asked by Chad Fraser:

I am trying to do a push to the server but I am getting the following error.  

<br />

remote: error: cannot lock ref 'refs/heads/master': Unable to create './refs/heads/master.lock': File exists. remote: remote: Another git process seems to be running in this repository, e.g. remote: an editor opened by 'git commit'. Please make sure all processes remote: are terminated then try again. If it still fails, a git process remote: may have crashed in this repository earlier: remote: remove the file manually to continue. To bitbucket.org:sonover-saturn/core-frontend.git ! \[remote rejected\] master -\> master (failed to update ref) error: failed to push some refs to 'bitbucket.org:sonover-saturn/core-frontend.git'


Answers:
author: Patrik S
body: Hey [@Chad Fraser](/t5/user/viewprofilepage/user-id/139503) ,

thanks for reaching out.

Lockfiles are generally deleted by Bitbucket background tasks themselves, but sometimes they may get stuck and prevent the push to the repository.

I went ahead and removed the existing lock file from that repository's main branch so you and your team should be good to push the changes to that branch as of now.

Could you try again and let us know how it goes?

Thank you, [@Chad Fraser](/t5/user/viewprofilepage/user-id/139503) !

Patrik S

comments: author: Chad Fraser
body: Hi [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) thank you, it works perfectly now.   

Thanks again. Also Big Up to Luis from your support team who did an excellent job today.


author: Patrik S
body: You're very welcome [@Chad Fraser](/t5/user/viewprofilepage/user-id/139503) ! Happy to have been of some help :)


author: Chad Fraser
body: I really need some support on this issue. Is it that I need to update to a paid plan to get some support with this? Or can someone please help me here? We have some important updates to make to our code base and this issue is affecting us negatively.

comments: author: Chad Fraser
body: [@Pramodh M](/t5/user/viewprofilepage/user-id/3691224) is there any way we can get the Atlassian team to remove the master.lock file for us.


author: Pramodh M
body: Hi [@Chad Fraser](/t5/user/viewprofilepage/user-id/139503)

You may find the lock file locally in your repository. Remove that

rm -f .git/index.lock

If that doesn't work, it may be due to differences in the commits from your local repository and remote repository, try to create a separate branch and then push the changes to the remote repository.

Let me know if the above solution works!

comments: author: Chad Fraser
body: There is no lock file present in the local directory. I tried creating a new branch called new_master and was able to push. My plan was to merge new_master into master this failed as well. I was thinking of deleting the old master and replacing it with a new master branch if that was possible. Is there any way I can delete the master.lock from the server?


Tags: .lock

bitbucket-cloud

cloud
Docker compose build skips cache
Asked by Christian Sciberras:

Problem {#toc-hId--352325012}
-----------------------------

At some point, we started using docker compose in bitbucket like so:

```
- step:
    name: Build & Run
    image: docker:26    services:
      - docker
    caches:
      - docker
    script:
      # Needed because custom docker image somehow enables buildkit which,
      # on the other hand, does not work with docker-compose (it requires
      # privileged mode, which is disabled in bitbucket+buildkit)      - export DOCKER_BUILDKIT=0
      
      # Download(pull) 3rd-party docker images
      - docker compose pull
      
      # Build our custom images
      - docker compose build
      
      # Run something in the docker-compose stack (e.g. tests)
      - docker compose run -T app run-tests
```

The reason we split docker compose into 3 lines is so that the output of the run command (which we are mostly interested in) shows up in its own section in the bitbucket output. It looked like it worked perfectly..

**Except that apparently \`docker compose build\` will somehow ignore the build cache.**

Solution {#toc-hId-2135187821}
------------------------------

It took us some time to figure this out...the solution is to avoid using \`docker compose build\`.

```
...
   script:      # Needed because custom docker image somehow enables buildkit which,      # on the other hand, does not work with docker-compose (it requires      # privileged mode, which is disabled in bitbucket+buildkit)      - export DOCKER_BUILDKIT=0            # Pull/build & run something in the docker-compose stack (e.g. tests)      - docker compose run -T app run-tests
```

**To be clear, \`docker compose build\` should not ignore the cache:**

1. we tried that locally and we observed that the cache is not ignored
2. the [--no-cache](https://docs.docker.com/reference/cli/docker/compose/build/#:~:text=supported%20by%20BuildKit.-,%2D%2Dno%2Dcache,-Do%20not%20use) option exists specifically for this behaviour

So this behaviour looks like some sort of bug in bitbucket.


Answers:
author: Patrik S
body: Hey [@Christian Sciberras](/t5/user/viewprofilepage/user-id/4439166) ,

thank you for reaching out to Community!

By the description of your issue, it seems you're indeed being affected by a bug in Pipelines where cached for docker specifically and not being used in subsequent builds. We have the following bug report with our development team to fix this issue :

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

I would suggest you to add your vote there, since this helps both developers and product managers to understand the impact. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all bug fixes are implemented with [this policy](https://confluence.atlassian.com/support/atlassian-cloud-bug-fix-policy-206865884.html) in mind.

Thank you, [@Christian Sciberras](/t5/user/viewprofilepage/user-id/4439166) !

Patrik S


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

docker

docker-compose
Why is the wiki feature disabled in my workspace?
Asked by Danilo Thomas:

Hello,

I have a personal account on Bitbucket, and I am currently unable to access the wiki feature in my workspace. Here are the details of my issue:

1. I have checked the settings in my repository and workspace, but I do not see an option to enable the wiki feature.
2. I have two workspaces. Neither of these workspaces shows the option to create or enable a wiki.
3. I tried accessing the URL to create a new workspace directly, but I received a "Resource not found" error.
4. I have a free account, and from my understanding, the wiki feature should be available.

Could you please help me understand why the wiki feature is disabled and guide me on how to enable it in my current workspace or create a new workspace where this feature is available?

Thank you for your assistance.  

\[Edited to remove workspace ids.\]


Answers:
author: Hana Ku?erov?
body: Hi [@Danilo Thomas](/t5/user/viewprofilepage/user-id/5547099) ,

welcome to the Atlassian community!

Please look at this [article](https://support.atlassian.com/bitbucket-cloud/docs/create-a-wiki/). Could this be the reason, why wiki is not available for you?


Tags: bitbucket-cloud

cloud