youngmon/atlassian-qna huggingface dataset:
Ensuring Sub-tasks Inherit "On Hold" Status from Parent
Asked by Sagi Gueta:

Hello,

I need help setting up an automation rule that transitions all sub-tasks to **On Hold** whenever their parent issue is transitioned to "On Hold," as long as these sub-tasks are not already in "On Hold" or "Done" statuses.

Currently, if there is at least one sub-task that is not in the relevant statuses I've specified, the rule is blocked. However, the automation should only transition sub-tasks that are not "Done" or already "On Hold."

In the other hand, when I removed the issue field condition, the automation worked fine, and transitioned each and every subtask to On Hold, even if it was Done.

++**Automation Rule**++ **:**

**![Automation Rule.png](https://community.atlassian.com/t5/image/serverpage/image-id/331918i411F9B739A4E997A/image-size/large?v=v2&px=999 "Automation Rule.png")**

++**Audit Log**++ **:**

**![Audit Log.png](https://community.atlassian.com/t5/image/serverpage/image-id/331919i16FDAB258C06E045/image-size/large?v=v2&px=999 "Audit Log.png")**

Any assistance would be greatly appreciated!

Thanks!


Answers:
author: Bill Sheboy
body: Hi [@Sagi Gueta](/t5/user/viewprofilepage/user-id/4493828)

Is this a company-managed or a team-managed project? You may find that information at the bottom-left of the page expanding area.

I hypothesize this is a team-managed project and that the id values for the statuses are different for your different issue types, such as Story and Subtask.

With the condition, the rule looks like it was going to work based on the issues selected in the audit log, but it tried to use the parent's "On Hold" id rather than the one for the child, Subtask type.

I recall a workaround is to create a variable with the id value of the Subtask's status and use that in the transition rather than using the status name from the dropdown list.

Kind regards,  
Bill

comments: author: Sagi Gueta
body: Hey [@Bill Sheboy](/t5/user/viewprofilepage/user-id/1685313) ,

Thanks for reply!

Actually, this is a company managed project. I'd like to understand why does it matter for the solution (as I didn't work much with team managed project).

Additionally, can you please share how would you do it with variables?


author: Bill Sheboy
body: First back to your original question, would you please post an image of the audit log for the case when the rule worked as expected? That may clarify what is happening.

Can you manually move an example Subtask to "On Hold" on your board, or in the issue views?

For your follow-up questions...

Each team-managed project has unique configurations for issue types, status values, fields, etc. And so there could be different id values representing "On Hold" for a Story versus a Subtask.

When necessary, a workaround is to store the id value for the status with the Create Variable action:

* create variable
  * name: varOnHoldForSubtask
  * smart value: 12345

Then that smart value may be used as the status in the transition action, typing in {{varOnHoldForSubtask}}


Tags: jira-cloud
Automation - ASC order in Linking Tickets
Asked by Sean McConell:

I have an Automation Build for a Mail Handler. Is there a way to when Linking and Closing the duplicate tickets to Order by created ASC. I basically need to close the newest ticket and link everything back to the oldest ticket.

![image.png](/t5/image/serverpage/image-id/331914i9A63833E0BA2801B/image-size/large?v=v2&px=999 "image.png")


Answers:
author: Bill Sheboy
body: Hi [@Sean McConell](/t5/user/viewprofilepage/user-id/5530039) -- Welcome to the Atlassian Community!

One way to do that would be to use Lookup Issues with JQL and an ORDER BY Created DESC clause, and branch using JQL to just the first item by the key to close it:

```
key = {{lookupIssues.first.key}}
```

The reason I suggest inverting the ORDER BY and using the first one is to handle the possibility there are more than 100 issues as that is the maximum a lookup can return.

Then branch to the other issues separately, perhaps using the lookup results and excluding the first one. That will prevent the possibility of the parallel processing for branches colliding.

Kind regards,  
Bill


Tags: cloud

jira-service-management

jira-service-management-cloud
Trigger automation when version with specific name is created
Asked by kkimak:

HI,

I'm setting up automation in JIRA where creating a new version triggers the update of the 'Fix Version' field for specific issues.

I'd like to include a condition to only update issues when the new version name starts with 'XYZ'. I tried using the expression `{{version.name.startsWith("XYZ")}}` in the Version name filter, but it's not working as expected. Could you help me identify the issue and suggest a solution?

![Zrzut ekranu 2024-06-26 163651.png](https://community.atlassian.com/t5/image/serverpage/image-id/331884iB4C9C2D774EFD9A7/image-size/large?v=v2&px=999 "Zrzut ekranu 2024-06-26 163651.png")


Answers:
author: Bill Sheboy
body: Hi [@kkimak](/t5/user/viewprofilepage/user-id/5529838) -- Welcome to the Atlassian Community!

When you added that trigger, it offered a link to help using a regular expression to test the *version name*. Please review that for more information.

As that check is specifically on the version name, the only thing you would need to enter in the field is this:

```
XYZ.*
```

That would check for version names starting with XYZ followed by zero-to-many other characters.

Kind regards,  
Bill


author: Duc Thang TRAN
body: Hello [@kkimak](/t5/user/viewprofilepage/user-id/5529838)

Can can suggest this solution

Trigger : when Version created

If : smart value comparaison

{{version.name.startsWith("XYZ")}} equal true

Then for jql -\> action

![Capture d??cran 2024-06-26 173903.png](https://community.atlassian.com/t5/image/serverpage/image-id/331894iA0E1AEB286CCB65A/image-size/large?v=v2&px=999 "Capture d??cran 2024-06-26 173903.png")


Tags: cloud

jira

jira-cloud
Automation auto-assign 10% of tickets to skip testing
Asked by LynnG:

Hello,

My goal is to transition 10% of tickets directly to Acceptance, skipping Testing by way to automation.

There is not enough information to get this to work...

I'm stuck on the RandomNumber Variable. In this case, I am just trying to get from 1 to 2 to work, before moving up to 1 to 10.

Then I want the automation to compare the random number (1 to 10) to compare it to 1. If it equals 1, probably 10% of the time, then move it to Acceptance.

If there is an easier way to identify 10% of tickets, please let me know.

Thank you

![Screenshot 2024-06-25 155230.png](/t5/image/serverpage/image-id/331731i418552F341EC128D/image-size/large?v=v2&px=999 "Screenshot 2024-06-25 155230.png")

![Screenshot 2024-06-25 155103.png](/t5/image/serverpage/image-id/331730i76C27E1EDC2C3527/image-size/large?v=v2&px=999 "Screenshot 2024-06-25 155103.png")

![Screenshot 2024-06-25 154656.png](/t5/image/serverpage/image-id/331728i8F1EB4DAB00AA532/image-size/large?v=v2&px=999 "Screenshot 2024-06-25 154656.png")![Screenshot 2024-06-25 154817.png](/t5/image/serverpage/image-id/331729iD14FEA55309F041C/image-size/large?v=v2&px=999 "Screenshot 2024-06-25 154817.png")


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

Regarding the math...you could use the [random() function](https://support.atlassian.com/cloud-automation/docs/jira-smart-values-math-expressions/#Functions), which returns a value between 0 and 1, and then adjust to get your range. For example for 1 to 2:

```
{{#=}}round(random()*2+0.49,0){{/}}
```

Although that may not do what you asked...

Instead it will have a X% chance of skipping something (and will actually skip more / less) as the checks are *independent for each rule triggering*.

It seems you want to identify 10% of the items to skip at the time the first item enters Ready for Testing. I do not believe that is easy to do in a rule for a *random 10% selection of items without replacement*.

The rule could be adjusted to *select up to 10% and no more* by adding a "skipped" indicator to items (e.g. with a custom field, label, issue property), and checking if 10% have been skipped yet using Lookup Issues and JQL. If not at 10% yet, perform the random check to decide about skipping, and add the indictor when skipped. Else, do not skip.

Kind regards,  
Bill

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

I will check will my requester and get back to you.

Thanks!


Tags: cloud

jira

jira-cloud
Create confluence page with jira automation by syncing info from jira ticket
Asked by Mkrtich Tono:

Hello community

I have created an automation to create confluence page from jira but I need to sync some data from the ticket to the confluence page.

Is there a way to sync the custom fields and update them automatically without any addon?


Answers:
author: Lukas Nicolai_Seibert_Media_
body: Hey [@Mkrtich Tono](/t5/user/viewprofilepage/user-id/5351215) , I am the Product Marketing Manager at Seibert Media, and I think our app, AutoPage, is the perfect solution for what you're looking for.

With AutoPage, you can automatically create Confluence pages from Jira issues. That means you can display Jira content on a Confluence page, which will be linked and also synchronized live. AutoPage can also be used with Jira automation. It provides webhooks you can easily add as an action.

Hope that helps!

[AutoPage - Display Jira data in Confluence with automation \| Atlassian Marketplace](https://marketplace.atlassian.com/apps/1218503/autopage-display-jira-data-in-confluence-with-automation?hosting=cloud&tab=overview)

If you'd like to discuss your use case a bit further or if we can help you with the setup, feel free to[**jump on a call**](https://calendly.com/coderay) with us!


Tags: cloud

cloud-automation

confluence

confluence-cloud
Malfunction in 'Create a Pull Request'
Asked by ???:

Hi, I'm a Bitbucket user.  

I'm not sure when this got patched, but there's been a bug in the 'Create a Pull Request' feature for a few months now.  

When I switch the 'Source Branch,' the description doesn't reset.  

It used to show the commit messages for the branch, right? And it should only keep the message if I've edited the description myself.  

I think it's a bug because only the 'Title' works correctly!  

Could you take a look and fix this as soon as you can? Thanks!


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

Welcome to the community!

I have tried to reproduce a similar issue to what you explained and am unable to. Could you please raise a support ticket with us on our [Support portal](https://support.atlassian.com/contact) so we can investigate this issue further?

Regards,  
Syahrul


Tags: cloud
Issue connecting to bitbucket with IP allowlisting?
Asked by John Kelly:

We have historically used IP allowlisting to limit access to machines in our org. This afternoon we've seen issues where folks connected via VPN have been blocked, and where two build systems have stumbled when trying to collect changes. Locally (via VPN) users have seen this issue resolve. In one of two build systems we've seen the same. But we're still seeing issues in the second.

I don't see any issues reported on the bitbucket status page, but perhaps there is an issue with this allowlisting feature?


Answers:
author: Patrik S
body: Hello [@John Kelly](/t5/user/viewprofilepage/user-id/5137230) ,

Based on your description, it seems your team was impacted by an incident on Bitbucket Cloud that was affecting git operations over SSH for some customers :

* <https://bitbucket.status.atlassian.com/incidents/jfhrnk0m1jc9>

The issue has already been resolved by our engineering team, and the git operations should be working as usual again.

Let us know in case you are still facing issues.

Thank you!

Patrik S


Tags: bitbucket-cloud

cloud
Jira no longer shows the pull request and branches created or merged to the ticket
Asked by Lily Poon:

All my jira tickets used to show details with branch name and pull request information. Now, all the tickets are blank. I'm not sure how to link that information from my bitbucket back to the jira tickets. They were working a couple months ago.


Answers:
author: Lily Poon
body: HI Patrik, Thanks for your response. I think the issue is my bitbucket account and jira account have 2 different emails. When i login to bitbucket, workspace settings under Atlassian integrations, Jira--- it shows me a "Try Jira Cloud now" button. I already have Jira with a different email. Both bitbucket and Jira account belongs to the same company. If i sign up for a new Jira cloud account, is there a way to port all existing Jira tickets to this new Jira cloud?


author: Patrik S
body: Hey [@Lily Poon](/t5/user/viewprofilepage/user-id/2675425) ,

and welcome to the Community!

For development data from Bitbucket Cloud to be linked to Jira issues, you first need to connect your workspace to your Jira instance. If you haven't already, you can follow the steps outlined in the below article to connect the products:

* [Connect Bitbucket Cloud to Jira Cloud](https://support.atlassian.com/bitbucket-cloud/docs/connect-bitbucket-cloud-to-jira-software-cloud/)

Once the instances are connected, you need to include the issue key information either on commit messages, branch names or Pull request title for that information to appear on the jira ticket.

I hope that helps! Let us know in case you have any questions.

Thank you, [@Lily Poon](/t5/user/viewprofilepage/user-id/2675425) !

Patrik S


Tags: bitbucket-cloud

cloud
Tests are failing but pipeline step still passes ??
Asked by Adam Brunt:

Hi all,

We have a situation where a pipeline step is passing even though Bitbucket detects failing tests for that step.  

The step *summary* says "1 / 1894 tests failed", the console log has a "Tests" tab on it which shows the failing test and the *build teardown* log shows "Merged test suites, total number tests is 1894, with **1 failures** and 0 errors." but the step is still green.

If it makes a difference we write our test results to a file called **test-reports/results.xml** . though I notice the teardown log says "Searching for test report files in directories named \[test-results, failsafe-reports, test-reports, TestResults, surefire-reports\]". Does anyone know if the folder name makes a difference ?  

Does anyone have any idea what our problem might be ? Or is it a bug with Bitbucket Pipelines ?


Answers:
author: Patrik S
body: Hey [@Adam Brunt](/t5/user/viewprofilepage/user-id/5152789) ,

and welcome to the Community!

The way that Bitbucket Pipelines defines whether a step was successful or not is based on the exit code returned by the commands you're executing in your script.

An exit code of zero is interpret as the command being successful, and pipelines follow to the next command, which then returns it's own exit code as well, and so on.

If all commands in a step return exit code zero, the step will be considered successful. On the other hand, if any command returns a non-zero exit code, Pipelines will stop that step immediately and consider it as a failure.

That being said, and bringing this to your scenario of tests results, the test results contents itself doesn't impact whether the pipeline will consider the step as failed on not. What actually matter is what exit code your test framework has returned once it complete its execution. If your test suite identified failed tests but still returned a zero exit code, pipelines will understand that command succeeded.

I'd suggest including the following command right after your test execution command to print the exit code:

```
- echo $?
```

This command outputs the exit code of the last command executed in the script. If it's zero, that would explain why the pipelines considered it successfully.

In that case, I would suggest looking for any configuration/setting in your test framework to enable it return a non-zero exit code for failed tests.

I hope that helps! Let us know in case you have any questions.

Thank you, [@Adam Brunt](/t5/user/viewprofilepage/user-id/5152789) !

Patrik S


Tags: bitbucket-cloud

cloud
API to repos updated in last 7 days
Asked by Girish Bramhane:

I just want to integrate API which will provide me information like Give repo list which updated in last 7 days ( anything activity like commits / merge / pr happened on that repo in last 7 days)


Answers:
author: Patrik S
body: Hey [@Girish Bramhane](/t5/user/viewprofilepage/user-id/5587647) ,

and welcome to the Community!

Based on your use case, I would suggest using Bitbucket's public API endpoint to [List repositories in a workspace](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-repositories/#api-repositories-workspace-get) while sorting by the updated_on attribute.   

Example request:  

```
curl -u USERNAME:APP_PASSWORD --location 'https://api.bitbucket.org/2.0/repositories/WORKSPACE?sort=-updated_on'
```

This should return a list of repositories order by the most recent updated ones.

I hope that helps! Let us know in case you have any questions.

Thank you, [@Girish Bramhane](/t5/user/viewprofilepage/user-id/5587647) !

Patrik S


Tags: bitbucket-cloud

cloud
Security Risk? Bitbucket integration with Vanta
Asked by Toan Duong:

Hi All,

We are working with a vendor on a compliance project. One of their tools integrates with Bitbucket and checks for misconfigured settings/etc. I was wondering if anyone has come across this and could offer some advice as far as security risks regarding the integration? We obviously don't want to make something more secure by opening up another hole :)

From their website:

***Overview***   
*Automates the collection of evidence for your code repository configurations, pull request workflows, and security issue tracking.*   

***Automation***   
*Automates 11 tests and 7 controls*   

***Permissions***   
*Vanta requires read-only access to your account information, team membership, repositories, issues, pull requests.*   

*We also request permission to administer your repositories to check branch protection. There is currently no read-only access for this.*

Any insights are helpful. Thank you!


Answers:
author: Aron Gombas _Midori_
body: We are using Vanta and allowed them to access our Bitbucket Cloud workspace. It is obviously a security risk, but as [@marc -Collabello--Phase Locked-](/t5/user/viewprofilepage/user-id/1205132) noted these tools need access to check for misconfigured settings and such. We just accepted it and trust them.

Note that Vanta will ask for access to a lot of other possibly even more critical systems in your infrastructure, not only e.g. Jira Cloud, but even on the PaaS level (AWS)!

comments: author: Toan Duong
body: Yes, we are aware that they will have access to more critical systems. As far as Bitbucket goes, do you know if their integration actually has access to the code files?


author: marc -Collabello--Phase Locked-
body: Obviously adding Vanta is an additional security risk. However maybe Vanta catches other security risks and implements required audit controls. This might be a net positive.

comments: author: Toan Duong
body: Yep. We are trying to assess pros/cons of this integration. Thank you for your input.


Tags: bitbucket-cloud

cloud
Need to run the garbage collection on the reposotory "<repo-slug-redacted>"
Asked by gld:

Hi,

We need to run the garbage collection on the repository **\[REDACTED\]**.

Can you please run it manually on your end?

Thank you!


Answers:
author: Robert Wen_ReleaseTEAM_
body: Hello [@gld](/t5/user/viewprofilepage/user-id/1998997) ! Welcome to the Atlassian Community!

I've sent word to Atlassian Support team. Hold on.

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

The repository you've mentioned is only 10mb in size, I executed the gc and it reduced the size by 400kb.

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Error during workspace creation
Asked by artem:

Yesterday and today, Im trying to create a workspace (fresh created account) and I'm receiving the following error

Something went wrong on our end. Please try again. If this keeps happening, [contact support](https://support.atlassian.com/contact/).

I tried Chrome, Opera, duckduckgo and safari browsers. The account is corporate

UPD: the error is highly informative but I believe it was a corporate account's restrictions. I managed to do it through admin panel


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

Apologies for the inconvenience caused by this. There seems to be a bug when a workspace is created from <https://www.atlassian.com/try/cloud/signup?bundle=bitbucket> and we are looking into this.

In the meantime, Bitbucket workspaces can be created from <https://admin.atlassian.com/> as you have already figured out.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Port 22 Being Filtered for My IP Address ? Need Help
Asked by Morgan Mutugi:

I'm currently facing an issue where it seems that **port 22 (SSH)** is being filtered for my IP address, and I'm unable to establish a connection to pull or push code. I've tried connecting from different networks, and the issue seems to be isolated to my specific IP. I haven't made any recent changes to my firewall or network configurations.

Has anyone encountered a similar issue with port 22 filtering? Could this be related to any security measures on the Atlassian side, or is there something I should look into on my network setup? Any insights on how to troubleshoot or resolve this would be greatly appreciated.

Thanks in advance!  
![Screenshot from 2024-09-09 09-43-49.png](https://community.atlassian.com/t5/image/serverpage/image-id/346222iA060FDCBC895FB81/image-size/large?v=v2&px=999 "Screenshot from 2024-09-09 09-43-49.png")


Answers:
author: Ben
body: Hi [@Morgan Mutugi](/t5/user/viewprofilepage/user-id/5587245)

It is unlikely that your IP address would be blocked by us unless your IP address originates from a country sanctioned by the US (ie Crimea Region of Ukraine, Cuba, Iran, North Korea, Syria, Sudan). This is especially true if you have tried connecting from different networks as they would each have their own unique IP address.

I would suggest checking your firewall/VPN configuration (especially if using ZScaler). You can also use [telnet](https://learn.microsoft.com/en-us/windows-server/administration/windows-commands/telnet) to determine if the port is open:

*

  ```
  telnet bitbucket.org 22
  ```

If you need further support, you can also raise a ticket directly with our support team so we can check to ensure your IP address is not being blocked and also suggest further troubleshooting commands. The output of both would not be appropriate to share in a public forum such as community. You can do so by raising a ticket with **Bitbucket Cloud**as the product and your companies full paid workspace URL:

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

If you have any issues raising a ticket, please let me know your timezone so I can raise one on your behalf in the appropriate support timezone.

I hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: cloud
Why relative path in readme.md in repo is resolved under bytebucket.org instead of bitbucket.org?
Asked by noriyukiichijo:

I thought I can use relative path in readme.md in a repo after reading [this](https://stackoverflow.com/questions/28766550/add-images-to-readme-md-on-bitbucket) .

But if I use relative path for image, it is not shown.

As I use dev tool of Chrome, I found its path is resolved under bytebucket.org domain instead of bitbucket.org domain.

If I swap the domain and paste full URL of the image on the address bar of Chrome, it is shown.

It's strange but relates to <https://jira.atlassian.com/browse/BCLOUD-15949> ?


Answers:
author: Samuel Tan
body: I think that is a bug from bitbucket, there is another thread mentioned the image is not shown.

[Bitbucket not display image from a Markdown (atlassian.com)](https://community.atlassian.com/t5/Bitbucket-questions/Bitbucket-not-display-image-from-a-Markdown/qaq-p/2806128)


Tags: bitbucket-cloud

cloud