youngmon/atlassian-qna huggingface dataset:
Adding custom fields into email body
Asked by Michael Pierotti:

Couldn't seem to find what I am looking for so asking the community.

I have a automation task that when a Task is moved it will automatically send a email out to our field technicians.

I want to include two custom field I have in the body.

Site Latitude and Site Longitude so I tried {{site.latitude}} and {{site.longitude}} but that doesn't return anything.

![jira question.png](https://community.atlassian.com/t5/image/serverpage/image-id/330072i2676AC37F0EF8685/image-size/large?v=v2&px=999 "jira question.png")


Answers:
author: Joseph Chung Yin
body: [@Michael Pierotti](/t5/user/viewprofilepage/user-id/5513875) -

Great that you resolved your own ask. Since you are referring to custom fields, you can also use the following syntax in the issue smart value syntax -

{{issue.fields.customfield_xxxxx}} where xxxxx is the actual internal field ID.

You can use the above format instead of using the actual field name.

Hope this also helps.

Best, Joseph Chung Yin

comments: author: Michael Pierotti
body: How do I find the custom field ID? When I go to the fields section I don't see everything I saw when browsing through the community available to me. ![jira more.png](https://community.atlassian.com/t5/image/serverpage/image-id/330164i2352D7490788F18B/image-size/large?v=v2&px=999 "jira more.png")


author: Michael Pierotti
body: I answered my own question.

Instead of using {{issue.site.latitude}} just used {{issue. Site Latitude}}


Tags: cloud

jira-service-management

jira-service-management-cloud
Should We Move the JSM Subscription to the Customer's Account or Maintain It Under Ours?
Asked by Rajat Samseriya:

We are an engineering partner for another company and manage the Jira project (development) under our domain (Hinditron). We do this for other clients as well. However, for one customer's support (JSM), we want the emails to originate from their domain email address (unistoesolutions.com). Should we move the JSM subscription directly under their account, or maintain it under ours?


Answers:
author: Nadhila Savira
body: Hi Rajat,

Nadhila here from Atlassian.

I'm assuming you are talking about Email Requests, and that you want to allow ticket submissions and replies to go through a specific email address (under your customer's domain). You can add support emails on your **Project Settings \> Email Requests**.

To read more about this topic, I suggest to get started through this article: [Receive requests from an email address.](https://support.atlassian.com/jira-service-management-cloud/docs/receive-requests-from-an-email-address/)

The article that Alexis mentioned above is also quite relevant. If you give it a read from top to bottom, it will explain everything you need to know. Hope this helps!


author: Alexis Robert
body: Hi [@Rajat Samseriya](/t5/user/viewprofilepage/user-id/5501126) ,

moving the product subscription to your client won't change anything on the email domain address. This is a technical feature and not linked to your subscription.

In order to have the email come from your customer domain, you should follow this documentation : <https://support.atlassian.com/organization-administration/docs/add-custom-email-addresses-for-product-notifications/>

This needs to be done with your customer network team support, as they will need to make several configuration changes on their end.

Let me know if this helps,

--Alexis

comments: author: Rajat Samseriya
body: Hi [@Alexis Robert](/t5/user/viewprofilepage/user-id/1213386)

Thank you for your prompt response. Sorry, but I do not fully understand what you sent to me. Could you please explain it and send me the exact document so I can check and implement it?


Tags: cloud

jira-service-management

jira-service-management-cloud
I'd like to find issues I was previously assigned
Asked by Tom Youngblom:

as a novice user, I'm trying to get a summary of issues that were assigned to me anytime, or that I commented.

I currently can only query current data. if I was previously assigned a ticket the results cannot be found. What other criteria or keywords do I use.


Answers:
author: Carlos Garcia Navarro
body: Hi [@Tom Youngblom](/t5/user/viewprofilepage/user-id/5521730)

Welcome to the Community! For tickets where you were assigned you can try:

assignee was currentUser()

To query the issues where you commented, you'll need a plugin. E.g with Scriptrunner, you can use :

commentedBy = \<insert user account ID\>,

where your account ID is the string at the end of the URL after you select your user under: http://\<your instance\>.atlassian.net/people  

comments: author: Tom Youngblom
body: Thanks, that is it!


author: Joseph Chung Yin
body: [@Tom Youngblom](/t5/user/viewprofilepage/user-id/5521730)

Welcome to the community. Don't forget that at any given time, an issue can be only assigned to one user. So, if you are not the current assignee of the issue, then the above query will not work.

There are other options that one can do - Example: using custom field to store the previous assignee + automation rule (issue assigned event). Afterward, you can use the custom field in your JQL search to find issues which it was previously assigned to you but they are assigned to someone else currently.

Hope this also helps.

Best, Joseph Chung Yin


author: Dan Breyen
body: Hi [@Tom Youngblom](/t5/user/viewprofilepage/user-id/5521730) welcome to the community. Could you put an example of your JQL here? If I'm assigned to a ticket, then you should be able to add "assignee = Tom Youngblom" and it should work. That's basically the JQL I would use.

If that's not working, if you could give us more information, it would be great. Thanks,


Tags: cloud

jira-service-management

jira-service-management-cloud
Merge multiple accounts
Asked by Glenn:

Hello!

I have 2 bitbucket accounts (glenn.delanghe@glenndelanghe.be and glenn.delanghe@be-mobile.com).

The first is my personal account, the seconds is my work accounts (which already exists because the company I work for uses Atlassian products).

Some policies have changed in the company and we are now required to use our company email to use bitbucket, so I wanted to change the email address of my personal account to my company account which was not possible.

My question is if it would be possible to merge these accounts into the account using the company email (glenn.delanghe@be-mobile.com). This way I don't lose my PRs, progress, permissions,...

Thanks in advance!

Kind regards  
Delanghe Glenn


Answers:
author: Ben
body: Hi Glenn,

I would suggest reviewing this article I have recently published to achieve this, unfortunately, formal workspace merging is not yet possible in Bitbucket Cloud but there is a workaround process:

* [Merge Workspaces](https://confluence.atlassian.com/bbkb/merge-workspaces-1319573811.html)

Hope this helps, let me know if any issues.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
How to fix "Resource not found" on my whole workspace
Asked by Juri Mason:

As I try to access my workspace on BitBucket I get this warning:

"

Resource not found {#toc-hId--410629720}
----------------------------------------

Return to the previous page or go back to your dashboard

"

I tried to open it from the page which shows all my workspaces but still doesn't work.

I even tried to leave the workspace but that's not possible as I'm getting the same warning.

Seems like I'm having the same problem as this question:

[https://community.atlassian.com/t5/Bitbucket-questions/how-to-fix-completely-broken-web-access-after-login-404-error/qaq-p/2385368?utm_campaign=\&utm_content=post\&utm_medium=email\&utm_source=atlcomm#U2544371](https://community.atlassian.com/t5/Bitbucket-questions/how-to-fix-completely-broken-web-access-after-login-404-error/qaq-p/2385368?utm_campaign=&utm_content=post&utm_medium=email&utm_source=atlcomm#U2544371)

Can anyone help me?


Answers:
author: Patrik S
body: Hello [@Juri Mason](/t5/user/viewprofilepage/user-id/5373568) and thanks for reaching out to the Community!

Checking internally I see your account is currently added to just one workspace, but your user doesn't currently have permission to any repository in that workspace yet, so I suspect this is the reason why you are seeing this message.

Could you ask the admin of that workspace to give your user (or any group that you are part of in the workspace) permission to at least one repository and check if you are then able to open the page?

Let me know if you have any questions.

Thank you, [@Juri Mason](/t5/user/viewprofilepage/user-id/5373568) !  
Patrik S

comments: author: Juri Mason
body: Thanks for the answer. Unfortunately I've only been able to see it today.

Anyway, the admin of my workspace gave me the needed permissions and know everyting's working just fine.

Sorry for asking something I could solve that easily...


author: Patrik S
body: No worries! Glad to hear your access is working fine now :)

Feel free to reach out to Community if you ever need help!

Thank you!


Tags: unknown-hosting-type
I want a public bitbucket project ,How i found that?!
Asked by NoobGamerZ Clan:

I need a public bitbucket project?!


Answers:
author: Mark C
body: Hi [@NoobGamerZ Clan](/t5/user/viewprofilepage/user-id/5373419)  

Welcome to the community.  

Would you be able to confirm if you'd like to create a public repository in Bitbucket Cloud?  
If yes, you can do that by [creating a public repository](https://support.atlassian.com/bitbucket-cloud/docs/create-a-repository/).  

Otherwise, would you be able to provide more context on what you're trying to achieve?  

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
Commit view not showing every branches
Asked by PRINCE Vincent:

Hello,  

When going to a commit detail view, for instance

<https://bitbucket.org/>\<org\>/\<repo\>/commits/d3ac5299a1b8d53c03a5b4434  

In the right panel, in branch section, I can see only one branch of the three branches that this commit includes, is there any reason and any workaround to display all of them?

<br />

![image.png](/t5/image/serverpage/image-id/293860i4E6C001252B2745B/image-dimensions/189x194?v=v2 "image.png")  

Thanks by advance for any help,

Vincent


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

In git, branches are actually just a pointer to a commit, and this pointer moves as you commit to that branch. The commits don't store any information about the branch itself. The history is made by associating each commit to its parent.

For the branch section in the UI when you open a particular commit, it will show the branches where this commit is reachable from, except if this commit is already present in the main branch, which will then only show the main branch name.

In this case, could you share with us the output of the following command for the commit in question?

```
git branch -r --contains <commit hash>
```

This will present all the branches that contain the aforementioned commit. It would also help if you could share what branch is configured as the main branch in **Repository Settings \> Repository Details \> Advanced \> Main branch.**

Thank you, [@PRINCE Vincent](/t5/user/viewprofilepage/user-id/5371748) !

Patrik S

comments: author: PRINCE Vincent
body: Ok, so yes indeed release/rail-v7.x.x is the only branch shown because it's the main branch for this repository.

Is there any reason for this filtering? As an integrator, I liked to see every branches for a commit in Bitbucket Server, quite surprising every differences between those two products (Cloud/Server) but I guess we'll have to get use to it ;)

ps: git branch -r --contains d3ac5299 lists every branches

origin/HEAD -\> origin/release/rail-v7.x.x  
origin/hardknott  
origin/kirkstone  
origin/release/rail-v7.x.x


author: Patrik S
body: Hello [@PRINCE Vincent](/t5/user/viewprofilepage/user-id/5371748) ,

From a practical standpoint once the commit is on the main branch already (and will likely be disseminated out to other branches) it makes less sense to consider the commit as belonging to a specific branch.

However, I understand how having all the branch labels would help with your use case, so I went ahead and created a feature request with our development team :

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

I encourage you to add your **Vote** there as it helps our product managers to understand the demand for the feature. You also have the option to set yourself as a **watcher**, so you will be notified by email whenever there's any update on that feature.

Thank you, [@PRINCE Vincent](/t5/user/viewprofilepage/user-id/5371748) !

Patrik S


Tags: bitbucket-cloud

cloud
Question for Filter scope (AQL): objectType=
Asked by Jacek:

Good Day

I have created my schemas in JSM Assests. First issue i see with the Filterscope for my custom field.

My schema for IT Assets looks like:

![SCR-20240615-ktxl.png](https://community.atlassian.com/t5/image/serverpage/image-id/330027i91C0A560C0C8BB0F/image-size/large?v=v2&px=999 "SCR-20240615-ktxl.png")

I have used the template for it and in the assets itself everything is working fine.

Now i have trouble to configure the

**Filter scope (AQL)**

**Filter scope (AQL):** objectType="Laptops" isnt working at all.

**Filter scope (AQL):** objectType="Windows" or

**Filter scope (AQL):** objectType="MacBooks" is working for Windows or MacOS.

I tried both together

objectType="Windows" AND objectType="MacOS"

This isnt working.

So actually i dont know how t solve this. Is it possible to combine both in one aql or do i have move all devices in Laptops and go with:

objectType="Laptops".

Thank you in advance.

Regards

Jacek


Answers:
author: Jacek
body: Haha.... Got it. Sometimes its so easy that the misstake is no visible.

objectType="Windows" OR objectType="MacOS" is my solution.

bit embarrassing :)

Sorry guys


Tags: cloud

jira-service-management

jira-service-management-cloud
Do we have feature like azure artifacts for creating private nom libraries in bitbucket
Asked by UMAMAHESHWARI G:

Is there any feature to deploy a npm library in bitbucket and import those npm libraries in other projects from bitbucket just like azure artifacts private npm libraries


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

You can store your library in a Bitbucket Cloud repository and install it using the npm command with the following syntax :

    npm install git+ssh://git@bitbucket.org/{user}/{repository}.git

I also found this tutorial that might be useful when setting up your dependencies to download from Bitbucket repository :

* [Use bitbucket for hosting private npm modules](https://steemit.com/programming/@donmesswithabeer/use-bitbucket-for-hosting-private-npm-modules)

Thank you, [@UMAMAHESHWARI G](/t5/user/viewprofilepage/user-id/5373584) !

Patrik S


Tags: bitbucket-cloud

cloud
How can I use Runner with BITBUCKET_ACCESS_TOKEN?
Asked by Erick Dzadotz:

I'm trying to run the Runner with the BITBUCKET_ACCESS_TOKEN variable as described in option 3, like in kustomize:

1. <https://bitbucket.org/bitbucketpipelines/runners-autoscaler/src/master/kustomize/values/kustomization.yaml>

But I am getting the following error:

? At least one authorization method of (BITBUCKET_USERNAME, BITBUCKET_APP_PASSWORD) or (BITBUCKET_OAUTH_CLIENT_ID, BITBUCKET_OAUTH_CLIENT_SECRET) required.

I saw that this option is allowed for use in version 3.5 code but the validator does not allow using this option.

Does anyone know if there is any way to get past this or if this is on the Roadmap?


Answers:
author: Patrik S
body: Hello [@Erick Dzadotz](/t5/user/viewprofilepage/user-id/5344858) ,

thank you for reaching out to Community!

The autoscaler tool only currently supports basic authentication (username and app password) and OAuth (client Id and Secret). This is described more in detail in the Authorization section of the [runners-auto-scaler README file](https://bitbucket.org/bitbucketpipelines/runners-autoscaler/src/master/).

I understand it would be great to also support access tokens for the authentication, so I went ahead and raised a feature request with your development team :

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

Feel free to add your **Vote** there, as it helps our product managers to understand the demand for the feature. You can also set yourself as a **watcher** so you will be notified whenever there's any update on that feature.

Thank you, [@Erick Dzadotz](/t5/user/viewprofilepage/user-id/5344858) !  
Patrik S

comments: author: Erick Dzadotz
body: Thank you [@Patrik S](/t5/user/viewprofilepage/user-id/4603309)


Tags: bitbucket-runners

cloud
Integration with chatbot provider
Asked by Asma Thaher:

Hello,

We are AI chatbot provider company, and our client is using leon for flight scheduling, crew management, and operations. and they are willing to use the chatbot for transactions such as retrieving data from leon backend to show information to the end user, or to push information from the chatbot into leon backend "schedule flight for example". The question is, do you provide Restful APIs for such integration that can be used to fetch and push data back and forth the chatbot platform \& leon backend for a seamless integration that will retrieve info to be provided to the chatbot's end users, and do transactions?  

If yes, do you have any restrictions or limitations? Noting that the logic for fetching the data from the API endpoint will be written through Node JS scripts

Regards,

Asma Thaher

Chatbot Architect at arabot


Answers:
author: Patrik S
body: Hello [@Asma Thaher](/t5/user/viewprofilepage/user-id/5372700) and welcome to Atlassian Community!

This is a Bitbucket Cloud community, so I'm afraid we have limited knowledge of what APIs are offered by Leon AI.

After a quick research, I found the following API documentation on the Leon website which might be of help :

* <https://docs.getleon.ai/http-api>

If you need further assistance on the capabilities of that API or if you have more questions about the Leon AI, I would suggest reaching out directly to their support and/or forum.

However, if you have a question specific to Bitbucket Cloud, feel free to reach out :)

Thank you, [@Asma Thaher](/t5/user/viewprofilepage/user-id/5372700) !

Patrik S


Tags: bitbucket-cloud

cloud
Access private repository inside Dockerfile
Asked by Sajjad Zaheri:

Hi. I'm using a private bitbucket repository in same workspace inside another repository which contains my Node.js project as follows:  

```
{
  "dependencies": {
    "example-dependency": "git+ssh://git@bitbucket.org:example-workspace/example-dependency.git"
  }
}
```

I had also created an SSH key in Pipelines-\>SSH Keys in my Node.js project repository and passed public key into example's repository Access Keys.

Although I'm passing "--ssh default=$BITBUCKET_SSH_KEY_FILE" to build docker command in bitbucket pipelines, still "npm ci" command inside my Dockerfile fails.  

So, how can i access a private repository inside docker container?


Answers:
author: Mark C
body: Hi [@Sajjad Zaheri](/t5/user/viewprofilepage/user-id/5372571)  

Welcome to the community.  

You can check this existing knowledge-based article on [how to pass SSH key variable from Bitbucket Pipelines to a Dockerfile](https://confluence.atlassian.com/bbkb/passing-ssh-key-variable-from-bitbucket-pipelines-to-a-dockerfile-1155481742.html) where you can use the SSH key to access your your private repository.  

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
I want to restrict repositories to be accessed through ssh keys set in workspace only.
Asked by vikramiron:

I have a workspace with around 10 repos and have 15 users added who can access the repos. I have set the SSH key in the workspace but the users are able to access the repos through the ssh set in personal accounts. How can I prevent this so repos are accessible only through workspace ssh.


Answers:
author: Ben
body: G'day!

Unfortunately, this is not possible. When a user is granted read/write access at the project-level of a workspace, their personal SSH key is used to identify the user and provide them with the level of access that is already granted at the project level. This is the same concept for HTTPS authentication with a users personal App Password.

If you do not wish the user to have access to specific repositories, you can control their user access via project permissions.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Error in pipe SCP: Host key verification failed.
Asked by Lucas Rodrigues:

Hello!

I'm having pipeline issues when using atlassian/scp-deploy:x.x.x on some specific servers.

In them I get the error "Host key verification failed". Of the 6 servers, 3 have this problem, but the SSH pipe works normally and the SCP connection between the servers does too. I have already used several methods found on forums, I followed the steps at: <https://bitbucket.org/blog/ssh-host-key-changes> but I was unsuccessful


Answers:
author: Igor Stoyanov
body: [@Lucas Rodrigues](/t5/user/viewprofilepage/user-id/5371487) hi. Thanks for your question. Please, [check this answer.](https://community.atlassian.com/t5/Bitbucket-questions/Host-key-verification-failed-ssh-and-known-hosts-set/qaq-p/2195003)  

Regards, Igor


Tags: bitbucket-cloud

cloud
Resource Not Found
Asked by brandongarcia:

I cannot cancel the question, but it was already solved  
It looks like I need access to at least one repo to have access to the workspace!  

I log onto my BitBucket Account. It redirects me to my default workspace, but it always says Resource not found  

![](https://confluence.atlassian.com/bbkb/files/1167715028/1168865789/1/1665492301384/Screen+Shot+2022-10-11+at+09.44.06.png)  

If I go to <https://bitbucket.org/account/workspaces/> I can see the workspace there, but if I clicked I get the Resource not found error  

<br />


Answers:
author: brandongarcia
body: It looks like I need access to at least one repo to have access to the workspace!


Tags: bitbucket-cloud

cloud
Increase webhook limit
Asked by xnekv03:

Hello,

I need to increase webhook limit for following repository to 200+ webhooks.

bitbucket.org:\<redacted\>

could anyone from the BB team do that?

Thank you


Answers:
author: Ste Wright
body: Hi [@xnekv03](/t5/user/viewprofilepage/user-id/5370808)

The limit is 50 webhooks per repository, as confirmed on [this help page](https://support.atlassian.com/bitbucket-cloud/docs/manage-webhooks/).

You could try contacting [Atlassian Support](https://support.atlassian.com/) to check what your options are?

Ste

comments: author: xnekv03
body: I cannot send a ticket directly as I am on free plan. Hoping that someone from Bitbucket support will help me here and increse a limit


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

I'm afraid it's not currently possible to increase the webhook limit further than 50 webhooks per repository.

We had the feature request [BCLOUD-19739](https://jira.atlassian.com/browse/BCLOUD-19739) with our development team to increase that limit per repository, but the feature was closed as it didn't gather enough interest.

However, we suggest you add your vote there and also a comment with your use case, as although the feature is closed, our product managers still look into it and might reconsider its implementation in the future.

Thank you, [@xnekv03](/t5/user/viewprofilepage/user-id/5370808) !  
Patrik S


Tags: bitbucket-cloud

cloud