youngmon/atlassian-qna huggingface dataset:
how to Tag/Select KB artical to the issue
Asked by Kishor Mudhili:

Hello Friends,

in every ticket (Inc/SRs) we get the related knowledge articles searched and displayed in the list but out of that list we don't get option to select the respective knowledge article with the help of which Ticket is resolved. So how we can select perticualer KB to the issue.


Answers:
author: Dan Breyen
body: Hi [@Kishor Mudhili](/t5/user/viewprofilepage/user-id/5310742) it is my understanding to add that KB to your ticket, you can click the 'Share as comment' icon next to the article in the Knowledge Base section. This will add the article as part of the comment, but also mark the ticket as resolved with an article.

![Screenshot 2024-02-23 073741.png](https://community.atlassian.com/t5/image/serverpage/image-id/308382i112F0A7D0A535FED/image-size/large?v=v2&px=999 "Screenshot 2024-02-23 073741.png")

That's what I've been doing anyway, and my 'Requests resolved' report is including that information to show the resolved with an article attached.

comments: author: Kishor Mudhili
body: [@Dan Breye](https://community.atlassian.com/t5/user/viewprofilepage/user-id/5086375): for reporting - which field name should i select for KB?


author: Kishor Mudhili
body: [@Dan Breyen](/t5/user/viewprofilepage/user-id/5086375) Shall I get some thing from you ?


author: Dan Breyen
body: In your JSM Project, from the left menu under 'Knowledge' is a 'Reports' option. if you choose that, you can select the 'Requests resolved' report. That will show you Resolved tickets that were or were not resolved with a KB article. You can also export that to a CSV if needed.


Tags: cloud

jira-service-management

jira-service-management-cloud
Custom field / Asset Object filtering
Asked by Alejandro Alcuaz Temi?o:

Hello All,

I have the current set up for a request type I am creating.

Inside the request type I have a asset object custom field that is currently filtering OK by selecting Country and City from another two different Asset Object Custom fields.

Now I need to add another filter to the "Filter Issue Scope" that is based on a "Single select" custom field (customfield_12843) and I am not able to obtain the correct syntax.

![Captura de pantalla 2024-02-23 140000.png](/t5/image/serverpage/image-id/308376i31C182C1E755DC55/image-size/large?v=v2&px=999 "Captura de pantalla 2024-02-23 140000.png")

I have the attribute inside the object I am trying to filter it by already created.

![Captura de pantalla 2024-02-23 135907.png](/t5/image/serverpage/image-id/308375i66697A7945FD35FD/image-size/large?v=v2&px=999 "Captura de pantalla 2024-02-23 135907.png")

Can anyone help me set the syntax up correctly?

All help is appreciated,

Thank you!


Answers:
author: Jessie Chia
body: I've read through <https://support.atlassian.com/jira-service-management-cloud/docs/configure-the-assets-object-field/> multiple times and wondering if it is strategically only for Assets custom field. Data Center edition has no issues with this, that is for sure. Did you manage to solve this issue?


author: Jaime Perales Garc?a
body: Anyone with the same problem/ with the solution? I am interested in the same topic!!


Tags: assets

attribute

cloud

custom-field

jira-service-management

jira-service-management-cloud

placeholder

select-list
Can I import "Key" into Assets
Asked by Hrefna Kap Gunnarsd?ttir:

Hi, community.

I'm importing data for a customer and one of the attributes the they want is Key. As I understand it, Key is a system field and cannot be added as a label.

The customer is moving from Server to Cloud and there are a number of links between regular Jira cases and Assets.

I haven't been able to import the Key - always get this error: "You must select this attribute mapping as an identifier if the destination attribute is a system attribute".

Is this mission impossible?

Regards; Hrefna


Answers:
author: Rocco De Angelis
body: Hi [@Hrefna Kap Gunnarsd?ttir](/t5/user/viewprofilepage/user-id/5341668)

Do you have found a solution for that problem?  
Facing the some problem.

comments: author: Hrefna Kap Gunnarsd?ttir
body: Hi, Rocco.

Sorry for the late reply, only saw your response this morning.

If I remember correctly, my workaround was creating a new attribute called Old_key or something like that and then importing the key into that attribute.

I never received a response here and googling didn't help at the time. Someone at my workplace suggested to me this was one way and since was sufficient for the customer at the time, I went with that.


Tags: assets

cloud

jira-service-management

jira-service-management-cloud
I dont get the HTML template for customer notification
Asked by Gabriel Sillam:

Hi everyone.

I have service management and I created an HTML\&CSS notifications template for our customers but for some reason when I try and test it, I the plain text version instead of the html version even though my browser is capable of showing HTML.

I also want to mention that when I click on the ![Screenshot 2024-02-23 at 12.50.47.png](https://community.atlassian.com/t5/image/serverpage/image-id/308356iA98C716FDA237E1F/image-size/large?v=v2&px=999 "Screenshot 2024-02-23 at 12.50.47.png")

Send me a test email buttum I do get the HTML version that I created. Its only when I actually comment or do some action on an issue that I dont get the HTML template.

Anything that I can do to fix it?


Answers:
author: Gabriel Sillam
body: Never mind fixed it with <https://support.atlassian.com/jira-service-management-cloud/docs/choose-html-or-plain-text-for-customer-notifications/>


Tags: cloud

jira-service-management

jira-service-management-cloud
I can't add JSM product to a user without Jira Software.
Asked by Nataliya Shvaykovska:

It wasn't like this at the beginning, or I didn't pay attention, but I can not add ONLY Jira Service Management product to a user (Agent, not a Customer type). Jira Software adds automatically.  
I was sure that it was two different products with separate licensing. Either I didn't pay attention to it at the beginning (we started from a couple of admins with all products), or there are some product settings that affect it and "link" this access, or it is a bug.  

p.s. if I remove the product access to Jira Software from a user, JSM also disappears.  

<br />


Answers:
author: Marc - Devoteam
body: Hi [@Nataliya Shvaykovska](/t5/user/viewprofilepage/user-id/5436898)

Welcome to the community.

I can't reproduce your explained issue. If I remove access to JSW for a user, JSM is still there and also the other way around. I can grant access to JSM and JWS is not given.

Is the same user group used for both products in administration, that provides access to the products.

This cold be the case.

You might need to find your org admin to check all this.

If this is all not the case you could reach out to Atlassian Support as they are able to check all logging on your instance

comments: author: Nataliya Shvaykovska
body: This is a catch!  
I checked default product groups and found that JSM GROUP also has Jira as an assigned to a group product. I removed JSW from there  
How did it happen is a question for investigation. But the problem solved. Thank you!  

p.s. I am also happy that it's not a system bug )


Tags: cloud

jira-service-management

jira-service-management-cloud

jira-software
Can I use VSCode + Bitbucket extension without installing git(Activating Bitbucket features failed)?
Asked by Reth:

Hi everybody,

I am using VSCode for my local projects so far. Now I want to move a local project into a Bitbucket respository. For this purpose I downloaded and installed the Atlassian JIRA and Bitbucket extension for VSCode and followed the instructions [here](https://support.atlassian.com/bitbucket-cloud/docs/get-started-with-vs-code/) (used Bitbucket Cloud for Authentication).

Within the extension description I could not find any prerequisites that git has to be installed on local computer or sth. like that. But when now starting VSCode I always get the error:

**Activating Bitbucket features failed**

Any idea how to solve this?

Thank you in advance and

Kind Regards


Answers:
author: Gerwin Bloemberg
body: Hi Reth,  

Have you solved the problem? If so, can you post your solution here? I've got the same error and do not know the solution, yet.

Kind regards


Tags: bitbucket-cloud

cloud
google cloud repositories bitbucket mirroring issue
Asked by ???:

Dear Atlassian  
I am working as Data Scientist at "Onepeople" in South Korea.  
I am using bitbucket as code version control well.  

I have tried to mirror source code to GCP(source repositories) from bitbucket  
but, I have some problems  

My bitbucket workspace has ip access restrict policy.  
That's why, when I tryed to mirror source code to GCP in common way (I read GCP reference document about Mirroring bitbucket repository, url - <https://cloud.google.com/source-repositories/docs/mirroring-a-bitbucket-repository>), I failed to mirror repository.  

I think I have to take further action regarding IP whitelist restriction.  
I don't know what to do for mirroring repository in workspace has ip access restriction policy.  
If you could get some advice to solve this problem, I really appreciate it.  

Thank you.  
Happy New Year :)


Answers:
author: Theodora Boudale
body: Hi [@???](/t5/user/viewprofilepage/user-id/5111395), welcome to the community, and happy new year!

If there is a restriction on the IP addresses that can access a workspace, you will need to add in the Bitbucket workspace's allowlist the IP addresses used by GCP. The IP addresses that GCP uses may be mentioned in the product's documentation; if not, you'll need to contact their support team and ask what IPs are used by GCP.

If you don't want to add extra IPs to your allowlist, another option would be to write a script that clones all the repos in one of your machines (that has a public IP included in the allowlist) and either keep the backup there or push to GCP repos.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Emails sent using bitbucket-pipeline(email-notify) pipe are not received
Asked by Ganesh Santosh Naik:

Hi Team,  

We have a requirement to send email notifications through bitbucket pipeline. I have set up email-notify pipe in after script as below using amazon ses.  

after-script:  
- ALERT_TYPE="success"  
- if \[\[ $BITBUCKET_EXIT_CODE -ne 0 \]\]; then ALERT_TYPE="error" ; fi  
- pipe: atlassian/email-notify:0.8.0  
variables:  
USERNAME: $SMTP_USERNAME  
PASSWORD: $SMTP_PASSWORD  
FROM: 'abcdef@example.com'  
TO: 'abc@example.com, xyz@example.com'  
HOST: 'email-smtp.ap-south-1.amazonaws.com'  
PORT: '25'  
SUBJECT: '${ALERT_TYPE}:Bitbucket Pipe Notification for ${BITBUCKET_BRANCH}'  
ATTACHMENTS: 'reports.zip'  
DEBUG: 'true'  

The pipeline log shows email sent is successful but we have not received the email from bitbucket.   

Any known reason why this occurs and any solution recommended by the team would be helpful  

Thanks  


Answers:
author: Erez Maadani
body: Check your amazon SES logs, it could be anywhere between something simple like a verification email for the sending address, and a complex protocol issue.

comments: author: Ganesh Santosh Naik
body: Hi Erez,

Thanks for your response. I can see that both ses domain and email id is verified in our account. The same smtp credentials are working in other jenkins pipeline and we are receiving emails too.   


author: Ganesh Santosh Naik
body: PFA screenshot for reference![ses-bitbucket.png](https://community.atlassian.com/t5/image/serverpage/image-id/232789i7294E0349758EF06/image-size/large?v=v2&px=999 "ses-bitbucket.png")


Tags: bitbucket-cloud

cloud
cant log in
Asked by mike pa:

Hi Atlassian support,   

I just signed up for bitbucket with this email address again after a few years of it being dormant (since i have been using bitbucket through company addresses instead). So i'm getting the error message   

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

clearing the cache didnt do anything. googling this bug, some other people got marked as spam or got deactivated because it went dormant. is this what happened to me too? please fix so i can do my work.   
Cheers,   
Mike


Answers:
author: Theodora Boudale
body: Hi [@mike pa](/t5/user/viewprofilepage/user-id/5111239),

Your Bitbucket Cloud account was indeed in a dormant state. I went ahead and reactivated it, could you please try logging in now and let me know if the issue is resolved?

Kind regards,  
Theodora


author: Alex Koxaras _Relational_
body: Hi [@mike pa](/t5/user/viewprofilepage/user-id/5111239) and welcome to the community,

You better create a support request to Atlassian's support and not here. Do that here <https://support.atlassian.com/contact>


Tags: bitbucket-cloud

cloud
Help with pipeline error : "bash: mysql: command not found"
Asked by S?bastien Despont:

I am a new user of pipeline.

I really don't understand why I get the error "bash: mysql: command not found" with my pipeline script. The mysql client is well installed ?!

Is there someone to help me?

```
image: composer:2.0
definitions:
  services:
  mysql:
  image: mysql:5.7
  variables:
    MYSQL_DATABASE: 'myDB'
    MYSQL_ROOT_PASSWORD: 'root'
    MYSQL_USER: 'myUser'
    MYSQL_PASSWORD: 'mypwd'

pipelines:
  default:
    - step:
      name: InstallMySQL
      script:
        - apt-get update && apt-get install -y mysql-client
        - mysql -h 127.0.0.1 -u myUser -pmypwd -e "SHOW DATABASES"
      services:
        - mysql 
```


Answers:
author: S?bastien Despont
body: For the records, I have managed to use mysql client in PHP images by installing **mariadb-client** like this:

```
image: php:8.0-apache
definitions:
  services:
  mysql:
  image: mysql:5.7
  variables:
    MYSQL_DATABASE: 'myDB'
    MYSQL_ROOT_PASSWORD: 'root'
    MYSQL_USER: 'myUser'
    MYSQL_PASSWORD: 'mypwd'

pipelines:
  default:
    - step:
      name: InstallMySQL
      script:
        - apt-get update && apt-get install -y mariadb-client
        - mysql -h 127.0.0.1 -u myUser -pmypwd -e "SHOW DATABASES"
      services:
        - mysql 
```


author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

This suggests that your build environment does not have a path defined that includes the directory that apt is installed in, or you are running it on a system that doesn't use apt for its package management. (The "path" I mean here is the list of directories a process looks in for executables when asked to run something)

apt is usually installed in /usr/bin, and you will need to have admin rights to run it.

comments: author: S?bastien Despont
body: Thank you very much for your answer. OK I was using the default image suggested by Bitbucket pipeline creation interface for a PHP project, which doesn't permit to use APT apparently.


author: S?bastien Despont
body: In fact, the error comes from the installation command "bash: apt-get: command not found". But I don't understand how to fix this error.

Any idea?


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

mysql
Can Git user be changed when pushing back to the repository from Pipelines?
Asked by zoltan_zvara:

See the below image that shows that the \`bitbucket-pipelines\` user is the committer whenever the pipeline is bumping the version automatically after a successful build.

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

Can the Author be changed in any way?

I tried to set:  

```
git config user.name
git config user.email
```

...before pushing, but it did not help.

Thanks!


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

This is possible using the commands you mentioned

```
- git config user.name 'John Smith'
- git config user.email myemail@domain.com
```

Please note that the commands need to be executed before the **git commit** command. The email gets added to a commit's metadata when you do a git commit and not when you push.

Are you using the git config commands after you do a git commit in your build? If so, could you try moving them before the git commit, and let me know if it works?

Kind regards,  
Theodora

comments: author: zoltan_zvara
body: You are right; that was the issue; sorry for not being thorough in my investigation!

Thank you for your kind help!


author: Theodora Boudale
body: Hi [@zoltan_zvara](/t5/user/viewprofilepage/user-id/628909), you are very welcome and no worries at all, I'm glad I could help!

Please feel free to reach out if you ever need anything else!


Tags: bitbucket-cloud

cloud
Exceeded build time limit of 120 minutes
Asked by ONG CHEE SOON:

Hi Team,

Can anyone help me to solve exceeded build time limit of 120 minutes? I just edited a few lines of code, but needs to take over 120 minutes still not yet completed. Before we complained about this issue, but now we are still facing the same problem. We urgently need to push the pull request to deploy on our client side, this is not user-friendly for our users.

Hope someone can help us to solve this problem. Thanks.

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


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

There's not a lot you can do here, other than improve your build process, so that it runs faster. Most of us do that by fixing it, but another option would be splitting it so that there are two jobs, arranged sequentially, the second one being triggered by a successful run of the first.


Tags: bitbucket-cloud

cloud
Can I use Bitbucket REST API to clone a repository?
Asked by Patrik Silverby:

I am trying to find a way to clone all my repositories automatically. However I am not able to find an acceptable way to do the clone. I am writing a C# Console application and the only thing I have managed to get working is using git clone through Powershell using an app-password. However I do not like the idea of exposing my username and password in the url, https://\<username\>:\<app password\>@bitbucket.org....

I would rather use a rest api where I can add the credentials in a authentication header. However I am not able to find anything on clone in the REST API documentation. What I have tried so far beside this:

* git commands using ssh but the request of a passphrase every time is stopping me from doing it automatically.
* Using the lib LibGit2Sharp but I cannot get it to handle long paths over 260 characters
* Access token and refresh token is a way I cannot see how I could automate from a console app since the tokens will expire in between backup runs.

The solution needs to be fully self sufficient. Is there a way to do that?


Answers:
author: Theodora Boudale
body: Hi Patrik,

It is not possible to clone a repo via API, this can only be done with Git commands.

You mentioned
> git commands using ssh but the request of a passphrase every time is stopping me from doing it automatically.

It is not required to use an SSH key pair with a passphrase. You can generate a new SSH key pair without a passphrase and use that instead.

<br />

If you prefer to use OAuth, the access token will expire after 2 hours, but the refresh token does not expire. You can therefore generate a new access token + refresh token using the refresh token from the previous run right before you start cloning the repos, and use the new access token for cloning.

Kind regards,  
Theodora


Tags: automation

bitbucket-cloud

clone

cloud
Pipeline Failed npm ERR! ENOTDIR:
Asked by Tejas Patil:

Below is my bitbucket-pipelines.yml file

*** ** * ** ***

# This is a sample build configuration for JavaScript.  
# Check our guides at <https://confluence.atlassian.com/x/14UWN> for more examples.  
# Only use spaces to indent your .yml configuration.  
# -----  
# You can specify a custom docker image from Docker Hub as your build environment.

image: gambtho/awscli_node:latest

pipelines:  
branches:  
develop:  
- step:  
caches:  
- node  
size: 2x  
script: # Modify the commands below to build your repository.  
- npm install  
- export NODE_OPTIONS=--max-old-space-size=6144  
- npm run build  
- apt-get update \&\& apt-get install -y python-dev  
- curl <https://bootstrap.pypa.io/pip/2.7/get-pip.py> --output get-pip.py  
- python get-pip.py  
- pip install awscli  

*** ** * ** ***

<br />

PIPELINE ERROR   

npm ERR! Linux 5.15.0-1026-aws  
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"  
npm ERR! node v6.14.4  
npm ERR! npm v3.10.10  
npm ERR! path /opt/atlassian/pipelines/agent/build/node_modules/.staging/@types/eslint-scope-de087609/package.json  
npm ERR! code ENOTDIR  
npm ERR! errno -20  
npm ERR! syscall open  
npm ERR! ENOTDIR: not a directory, open '/opt/atlassian/pipelines/agent/build/node_modules/.staging/@types/eslint-scope-de087609/package.json'  
npm ERR!  
npm ERR! If you need help, you may report this error at:  
npm ERR! <<https://github.com/npm/npm/issues>>  
npm ERR! Please include the following file with any support request:  
npm ERR! /opt/atlassian/pipelines/agent/build/npm-debug.log  

*** ** * ** ***

Pipeline is getting failed with above error. Any help would be appreciated.


Answers:
author: Theodora Boudale
body: Hi [@Tejas Patil](/t5/user/viewprofilepage/user-id/5110581) and welcome to the community.

I found a similar issue reported in the issue tracker of the repository for npm cli:

* <https://github.com/npm/cli/issues/5032>

Based on the comments in that post, the issue may be related to a library on package.json whose version may not be compatible with the version of npm and node you are using.

The Dockerhub image **gambtho/awscli_node:latest** that you use as a build container has node v6.14.4 and npm v3.10.10, which are both quite old versions. If you want to keep using this Dockerhub image, you can check the suggestion posted here in order to figure out which library may be causing the issue:

* <https://github.com/npm/cli/issues/5032#issuecomment-1177255337>

Another thing you can try is using a different Docker image that has more recent versions of node v6.14.4 and npm v3.10.10. You can debug this locally with Docker first so that you don't consume your Pipelines build minutes, and try different Docker images using the following guide until you resolve this error:

* <https://confluence.atlassian.com/bbkb/debug-pipelines-locally-with-docker-1167698072.html>

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
How to remove a watcher from my repository
Asked by Adi Nagara:

Hello,

I have a watcher on my Repo who used to be with us but is no longer working here, and am unable to remove them.

They / their profile do not appear on "User and group access" for the Repo, or "Access Management" under my account, at all.

Does someone have an idea how I can remove them as a watcher please? Thank you in advance  

![Bitbucket - watcher.png](/t5/image/serverpage/image-id/232309iCE3225B30A50E966/image-size/large?v=v2&px=999 "Bitbucket - watcher.png")


Answers:
author: Syahrul
body: Hey [@Adi Nagara](/t5/user/viewprofilepage/user-id/5110236)

G'day and Welcome to the community!

Watching a repository is a **user-based** setting i.e only the user will be able to click on "stop watching" for a repository the user has access to.

That said, can you check if the user is within the groups or users under your **Workspace Settings** for **User groups** and **User directory**? If yes, removing the user access will prevent the user from seeing your repository code and email notification.

Cheers,  
Syahrul

comments: author: Adi Nagara
body: Got it. Thank you Syahrul


Tags: bitbucket-cloud

cloud