youngmon/atlassian-qna huggingface dataset:
How to use organization members as email recipients
Asked by Christian B?r:

Using Jira Automation with Jira Servicemanagement ( former Servicedesk) it's not possible to choose the organization field for email recipients.  

Even with smart values I see no option.

E.g., something like for the watchers field would be sufficient: {{issue.watchers.emailAddress}}  

Any suggestions?


Answers:
author: Jack Brickey
body: I have not personally done this but believe you could create a group that equates to the members of an organization. Of course this can be an added level of complexity when trying to maintain both organization and group. Hence why I have avoided.

comments: author: Christian B?r
body: That is exactly what I'm about to do. There is an Add On available to sync from groups to organizations ( unfortunately not the other way around ) and my customer is preparing the data right now.   

Then I'm going to fill a hidden multi group picker field on changes of the organizations field and use those groups in automation rules to send the notification.  

Cheers,  
Christian


author: Himanshu Nanda
body: Atlassian support has helped create a corresponding ticket for it - you can upvote at - <https://jira.atlassian.com/browse/JIRAAUTOSERVER-346>  

*(Please note that most of the critical issues have been migrated to our Atlassian issue tracker after [code barrel acquisition](https://www.atlassian.com/blog/announcements/welcome-code-barrel-automation-for-jira). Some issues were not migrated and we address those based on a case-by-case scenario. Since this feature is important for you, please note that I created an equivalent in our public issue tracker in this link:)*

comments: author: Jack Brickey
body: Thanks for sharing


author: Himanshu Nanda
body: Same problem here. Trying to send a mail to all members of the organisation selected on the ticket. Not available as an option. Came across the link below to use smart values but did not work

<https://codebarrel.atlassian.net/browse/AUT-475>


author: Simmo
body: Hi [@Christian B?r](/t5/user/viewprofilepage/user-id/1160639) ,

Just wanting to clarify that I understand what you're asking. You're wanting to send an email to everyone in a particular organisation?

Cheers,

Simeon.

comments: author: Christian B?r
body: Hello Simmo,  

that is right, and I Want to do it with an Automation Rule of the Automation App.  

Cheers,  
Christian


author: Simmo
body: Hi [@Christian B?r](/t5/user/viewprofilepage/user-id/1160639)

No worries. We're tracking an improvement for that at <https://codebarrel.atlassian.net/browse/AUT-921>

Cheers,

Simeon.


Tags: jira-service-management

smart-value
how to set automation.processing.thread.pool .size.per.node
Asked by Norbert:

Hi,

how / where can I set automation.processing.thread.pool.size.per.node ?

Only per REST Api as I read in documentantion or also in jira-config.properties or other config file ?

Norbert


Answers:
author: Yvan Martin
body: Hi Norbert,  

Developer from Automation here.  

In Automation for Jira server this can currently only easily be set in the REST API mentioned in the following page: <https://confluence.atlassian.com/automation/service-limits-993924705.html>  

That API will then store that configuration value in the relocated automation database.  

I'm not sure why this is tagged under cloud since that is a server only feature, if you require further help then you can get in touch with Atlassian support <https://support.atlassian.com/>  

Cheers.


Tags: cloud

jira
Using inline conditional logic in email action
Asked by Braxton Wilkinson:

Hello,

I am trying to create a system that gathers weekly data and builds a report to send out in a weekly email. I am using the schedule trigger for every 7 days with a JQL search condition that returns a list of items that have been updated in the last week to a send email action. The goal is to have two lists: One for items that have been created in the last week, and another for items that have been updated in the last week.

In the body of the email action, I have been attempting to use if statements to parse out items from the list and display them in the desired fashion. However, I have not been able to get the if statements to function. I have found contradictory information on this site for how to format the if statements. Here is what I have at the moment:

{{#issues}}  
{{#if(created.gt(now.minusBusinessDays(5)))}}  
\<a href="{{toURL}}"\>{{key}}\</a\> was created on {{created.shortDate}}  
{{/}}  
{{summary}}  
Updated on {{updated.shortDate}} at {{updated.shortTime}}  
Assignee: {{assignee.displayName}}  
Status: {{status.name}}  
.  
{{/}}

I have tested with several different conditions, including ones that should always return true, without luck, even though the rest of the message executes properly. One comment I found suggested putting spaces in front of the #if and / characters, but that seemed to make the if statement execute every time even if the condition was untrue.

Any suggestions on how to fix my formatting to get these statements to work would be much appreciated.

Note: I am not using Jira Cloud, if that matters


Answers:
author: Yvan Martin
body: Hi there [@Braxton Wilkinson](/t5/user/viewprofilepage/user-id/4515973)  

Developer from Automation here.  

Looking at your inline if condition the problem isn't with the if condition itself but the comparison functions you are using for date fields. gt/lt are not supported in date fields you would either have to convert to number format like days, or just use either isAfter or isBefore.  

You can see a list of date functions here: <https://support.atlassian.com/jira-software-cloud/docs/smart-values-date-and-time-functions/>  

My suggestion is to setup a manual trigger for your rule to test and use a log action with the if condition to see what's being returned inside that if block. Something like this should work for your rule: {{#if(created.isAfter(now.minusBusinessDays(5)))}}  

If you require further help with this rule you can get in contact with Atlassian support: <https://support.atlassian.com/>  

Hope this helps.


author: Curt Holley
body: Hi [@Braxton Wilkinson](/t5/user/viewprofilepage/user-id/4515973)

Welcome to the Atlassian community.

My (very simple) suggestion would be to separate them out into 2 rules/emails.

But beyond that, this may prove helpful: [Solved: Can conditional operators be used in emails create... (atlassian.com)](https://community.atlassian.com/t5/Jira-Software-questions/Can-conditional-operators-be-used-in-emails-created-by/qaq-p/1416783)


Tags: condition

email

smart-value
Can both Jira Service Managment Automation and Project automation work together in the same project
Asked by Gail Marik:

I already have an automation rule set up in my Jira Service Management project using the JSM automation. Now I would like to add another rule and it seems the Project automation is easier to user for this particular case. Can they both be used on the same project? Does it have to be on different events or do they each have their own event processor?


Answers:
author: Darryl Lee
body: Welp, considering that Atlassian has decided to start turning off Legacy automation (that's what your first rule was setup in), it might be good to switch over to the newer automation engine.

<https://support.atlassian.com/jira-service-management-cloud/docs/what-is-legacy-automation/>

But in answer to your questions:

1. Yes you**can** use both automation engines with the same project. And in fact, the Legacy automation is the only way to still do certain actions (like [changing a JSM request type](https://jira.atlassian.com/browse/JSDCLOUD-1835)). Hopefully they fix that one before killing Legacy automation (currently scheduled to begin rollout on Aug 30, 2021.)

2. And yes, you**can** have rules from each be triggered by the same events. I don't know which one takes precedence though.


Tags: jira-data-center

jira-service-management
How to create a new SSH Host key
Asked by Hunter Kimbrough:

I understand that Bitbucket is using a bundled Apache Mina SSH server for handling git cloning via ssh.

I am in the process of upgrading from 6.x Server to 8.x Datacenter and have FIPS enabled hosts. These hosts block git cloning from my server because it is using an RSA host key.

The host key is located at *shared/config/ssh-server-keys.pem* . I can validate it is they key in use by the host with *openssl rsa -in ssh-server-keys.pem -RSAPublicKey_out* and I can make a new host key that is ECDSA with *ssh-keygen -t ecdsa -b 521 -m pem -f ssh-server-keys.pem* but when I restart the server the ECDSA key gets replaced with a new RSA key.

The server only over-writes that file when I change it to an ECDSA key, if I leave the old RSA key it persists forever. To me, this means some configuration is requiring an RSA key to be used.

How can I make Bitbucket Datacenter 8.14 use an ECDSA SSH Host Key?


Answers:
author: Kristoffer Rudolph
body: Same here. RSA will be disallowed for us in the near future. How can we change the key to ECDSA?


Tags: bitbucket-data-center

bitbucket-server

data-center

server
How to use az login with managed identity and federated token in bitbucket pipeline
Asked by Irfan Muhammed Nazer:

The use case is, I don't want to use service principal in the pipeline I've created a federated credential in managed identity and given bitbucket OIDC details for exchange, but I am not sure about what the subject identifier is, I just want to do  

az login --identity -u {managed identity id} --federated-token $BITBUCKET_STEP_OIDC_TOKEN  

is this possible


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

I'm afraid that Bitbucket's OIDC tokens cannot be used for logging in to Azure.

We have a feature request about this in our issue tracker:

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

I would suggest adding your vote to that feature request (by selecting the **Vote for this issue** link) as the number of votes helps the development team and product managers better understand the demand for features. You are more than welcome to leave any feedback, and you can also add yourself as a watcher (by selecting the **Start watching this issue** link) if you'd like to get notified via email on updates.

Implementation of features is done as per our policy [here](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) and any updates will be posted in the feature request.

Kind regards,  
Theodora


Tags: azure

bitbucket-cloud

bitbucket-pipelines

cloud
Why Can't I "Enable Pipelines" on my repository?
Asked by Daniel Shaw:

I've gone through the tutorial to set up pipelines. However, I'm unable to enable them. When I go to the pipeline settings, I'm able to click on the 'Enable Pipelines' button and it appears to move to the 'on' position... but it remains grayed out and becomes unresponsive at that point. If I refresh the page, it goes back to the 'Off' position.


Answers:
author: Mark C
body: Hi [@Daniel Shaw](/t5/user/viewprofilepage/user-id/5424852),

Welcome to the community.

May I know if you already have the file named "bitbucket-pipelines.yml" in your main branch?  
If not yet, could you try to setup Pipelines by clicking the **Pipelines** tab and choosing the default template?  
Once done, that should also enable Pipelines for your repository.

Let me know how it goes.

Regards,  
Mark C

comments: author: Daniel Shaw
body: Thanks for getting back to me. I've got the "bitbucket-pipelines.yml" in my 'master' branch. I'm using that instead of the default 'main'. Could that be causing this? I'm using the default template for a Python repo. Thanks!


author: Mark C
body: Hi [@Daniel Shaw](/t5/user/viewprofilepage/user-id/5424852)

Would it be possible for you to go to your Repository settings \> Repository details \> Click **ADVANCED** ? - <https://bitbucket.org/workspace_id/repo_name/admin>  

Under the "Main branch" field, could you confirm if it says "master" or "main"?

If it says "main", try to change it to "master", click the **Save changes** button and enable Pipelines again.

Let me know how it goes.

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
Unauthorized fatal: Could not read from remote repository.
Asked by Muhammad Hassan:

Hi everyone!  
I am working on a bitbucket pipeline. I have a workspace with multiple repositories. Previously, I was able to fetch and clone all the repos from the workspace. But now, I don't know whats happening, it is clonning some repositories from the workspace while giving this error on other repositories in workspace  

<br />

Warning: Permanently added the ECDSA host key for IP address 'XXX.XX:XX:XXX' to the list of known hosts.  
Unauthorized  
fatal: Could not read from remote repository.  
Please make sure you have the correct access rights  
and the repository exists.  

<br />

A little background of my work,   
I am creating a custom user in container and shifting the private ssh-key from /opt/atlassian/pipelines/agent/ssh/ /home/customuser/.ssh/ folder. I previosuly fixed all issues and it was working fine too. But after playing a little bit with pipeline, I am not able to fix it up again. Even when I run pipeline on the commit which was working, it is givinge me above error for some repos while easily clonning some repos from the same workspace.  

Any indication of this error from the community will be highly regarded.  


Answers:
author: Syahrul
body: Hey [@Muhammad Hassan](/t5/user/viewprofilepage/user-id/5434150)

Welcome to the community!

Can you check our blog on cloning from another repository via pipeline and see if that helps you figure out the issue?

[Cloning another Bitbucket repository in Bitbucket Pipelines](https://bitbucket.org/blog/cloning-another-bitbucket-repository-in-bitbucket-pipelines)

Regards,  
Syahrul


Tags: atl-pipelines

bitbucket-cloud

bitbucket-pipelines

cloud

login
Unable to login Bitbucket - We couldn?t log you in
Asked by Paul McConnon:

Hi I believe my (very) old account has been made inactive and the error above is what is displayed after login.

Can my account be re-activated as a bitbucket user needs to give me access to their repo?

Thanks in advance

Paul


Answers:
author: Patrik S
body: Hello [@Paul McConnon](/t5/user/viewprofilepage/user-id/5434020) ,

welcome to the Community!

Checking internally I confirmed your account was indeed inactive due to a long period with no login. I've set the account to active again, which should allow you to login on Bitbucket Cloud as usual now.

In case you are still facing any issues to login, please let us know.

Thank you, [@Paul McConnon](/t5/user/viewprofilepage/user-id/5434020) !

Patrik S


Tags: bitbucket-cloud

cloud
Unable to add github.com as a known host
Asked by Carol:

I want to deploy to 2 different git accounts. I could add one successfully. However, when I try to add github.com as a known host it doesn't work.

I can fetch the fingerprint

![Screenshot from 2024-02-20 13-46-38.png](https://community.atlassian.com/t5/image/serverpage/image-id/307522iE362D868C9CF2635/image-size/large?v=v2&px=999 "Screenshot from 2024-02-20 13-46-38.png")

but when I click to "Add host", I get a 400 Bad Request

![Screenshot from 2024-02-20 13-47-46.png](https://community.atlassian.com/t5/image/serverpage/image-id/307524iDD850F461FA68FC2/image-size/large?v=v2&px=999 "Screenshot from 2024-02-20 13-47-46.png")


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

As you can see in the console error, the Github.com host has already been configured in Bitbucket by default. So this means you don't have to manually add them to your known_hosts.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
Could you please provide a deployment diagram for Bitbucket Pipelines on premise
Asked by Phil Daveran:

We are currently looking to move away from local hosted git source code using Bamboo server deployments. We are looking at using Bitbucket cloud/Bitbucket pipelines as we already use Jira/Confluence from Atlassian. We intend to use Bitbucket Cloud and will be deploying to on-premise servers.

Could you please provide architecture/deployment diagrams of the different options (using a runner vs deploying direct). I need these to show our CTO and CSO how it will work/what access will need to be given.


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

If you use Bitbucket Pipelines that run on Atlassian's infrastructure and you want to deploy to your on-remise servers behind a firewall, you will need to whitelist the following IP addresses that are used by 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>

There are several ways to deploy, e.g. rsync, scp, ftp. We have the following pipes that can be used when running Pipelines builds on Atlassian's infrastructure:

* <https://bitbucket.org/atlassian/rsync-deploy/src/master/>
* <https://bitbucket.org/atlassian/scp-deploy/src/master/>
* <https://bitbucket.org/atlassian/sftp-deploy/src/master/>
* <https://bitbucket.org/atlassian/ftp-deploy/src/master/>
* <https://bitbucket.org/atlassian/ssh-run/src/master/> (it can be used to run a script on your server)

You could also use the respective Linux commands instead of the pipes.

If you use a self-hosted runner, you will need to whitelist the IP addresses listed here for the runner to work (the runner needs to communicate with Bitbucket to update its status and upload build logs that show on the website):

* <https://support.atlassian.com/bitbucket-cloud/docs/ip-addresses-for-runners-behind-corporate-firewalls/>

The pipes I listed earlier can also be used with a self-hosted Linux Docker runner, but not with the rest of the runners since they don't use Docker.

Linux Shell and MacOS runners use Bash to run pipeline steps on the host machine, while Windows runners use PowerShell. So, you can use any command line tool that can be used from Bash and PowerShell respectively.

Kind regards,  
Theodora

comments: author: Phil Daveran
body: Many thanks Theodora


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
My Bitbucket SSL certificate is expired, i have digicert paid service please help me to renew it
Asked by sameer shaikh:

My Bitbucket SSL certificate is expired, i have DigiCert paid service please help me to renew the certificate very new to community


Answers:
author: Charlie Misonne
body: Hi [@sameer shaikh](/t5/user/viewprofilepage/user-id/5433770)

Welcome to the Atlassian Community!

If you already got a new certificate from Digicert you must configure Bitbucket server to use it.

You need to import the .cer file into your java key store that was configured in the bitbucket.properties file.

More info on <https://confluence.atlassian.com/bitbucketserver/secure-bitbucket-with-tomcat-using-ssl-776640127.html#SecureBitbucketwithTomcatusingSSL-RequestaCAcertificate>


Tags: bitbucket-data-center

data-center
I want to fetch all the files inside a folder and it may be just files or it can have directory.
Asked by Ankit Gupta:

Let say I have a directory called environments and this can have some json files and also can have directory which again can have json files and so on. So is there any api to do so ?


Answers:
author: Hariharan Iyer
body: Hi [@Ankit Gupta](/t5/user/viewprofilepage/user-id/5433628)

Please check if this API helps you - <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-source/#api-repositories-workspace-repo-slug-src-commit-path-get>

comments: author: Ankit Gupta
body: Do we have any rate limit on accessing API thought access-tokens?, as per I know for creating client with username and password we have rate limit of 1000 calls per hour


author: Hariharan Iyer
body: AFAIK the same limit of 1000/hour applies to API requests as well.


author: Ankit Gupta
body: [Hariharan Iyer](https://community.atlassian.com/t5/user/viewprofilepage/user-id/5124435) : So there is no difference How we built client whether we use access clientid/secret to create or with username/password , limit will be same in both the places ?


Tags: bitbucket-cloud

cloud
No longer receive emails to microsoft office outlook if committed by same person
Asked by Secure365:

Hi,

I no longer receive emails from bitbucket after migrated email platform to Microsoft Office 365 when the code is committed by the same person.

Thanks

Sean Lee


Answers:
author: Patrik S
body: Hello [@Secure365](/t5/user/viewprofilepage/user-id/5433401) and welcome to the community!

We have seen in the past cases where emails coming from Atlassian are bounced back by the Office365 email provider.

The following article provides instructions on some special configurations required on Office365 side to make sure Atlassian product emails are delivered successfully :

* [Unblocking Office365 email for Atlassian Cloud](https://community.atlassian.com/t5/Jira-Software-articles/Unblocking-Office365-emails-for-Atlassian-Cloud/ba-p/1870108)

If after following those configuration steps you are still facing issues receiving emails, please let us know.

Thank you, [@Secure365](/t5/user/viewprofilepage/user-id/5433401) !

Patrik S


Tags: bitbucket-cloud

cloud

email
Unable to pull image: Head docker
Asked by Walter Neto:

Is anyone else experiencing this issue?

Unable to pull image: Head <https://docker-public.packages.atlassian.com/v2/sox/atlassian/bitbucket-pipelines-dvcs-tools/manifests/prod-stable>: Get [https://docker-public.packages.atlassian.com/api/docker/docker-public/v2/token?scope=repository%3Asox%2Fatlassian%2Fbitbucket-pipelines-dvcs-tools%3Apull\&service=docker-public.packages.atlassian.com](https://docker-public.packages.atlassian.com/api/docker/docker-public/v2/token?scope=repository%3Asox%2Fatlassian%2Fbitbucket-pipelines-dvcs-tools%3Apull&service=docker-public.packages.atlassian.com): net/http: request canceled (Client.Timeout exceeded while awaiting headers)


Answers:
author: Patrik S
body: Hello [@Walter Neto](/t5/user/viewprofilepage/user-id/5433251) ,

It seems you were affected by an issue that was causing an error in the image to pull on pipelines when using self-hosted runners.

The issue was already identified and fixed by our engineering team as posted in the Bitbucket Cloud status page :

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

We apologize for any inconvenience this has caused you and your team.

Thank you, [@Walter Neto](/t5/user/viewprofilepage/user-id/5433251) !

Aptrik S


author: Tiago Jesus
body: Same issue: [https://community.atlassian.com/t5/Bitbucket-questions/Self-hosted-runner-fails-while-trying-to-pull-image-from-docker/qaq-p/2613814?utm_source=atlcomm\&utm_medium=email\&utm_campaign=immediate_general_answer\&utm_content=topic](https://community.atlassian.com/t5/Bitbucket-questions/Self-hosted-runner-fails-while-trying-to-pull-image-from-docker/qaq-p/2613814?utm_source=atlcomm&utm_medium=email&utm_campaign=immediate_general_answer&utm_content=topic)


Tags: bitbucket-cloud

cloud