youngmon/atlassian-qna huggingface dataset:
Getting Error while trying to log in Opsgenie
Asked by Nick Singh:

Getting error after entering email id:

Jira Service Management now offers the Opsgenie capabilities natively, so separate access to Opsgenie with your account is no longer available. Contact us for guidance on using Opsgenie functionality within Jira Service Management.

Can you help me how can i generate GenieKey to use REST API?

Thanks


Answers:
author: Andy Heinzer
body: Hi [@Nick Singh](/t5/user/viewprofilepage/user-id/5491625)

You should be able to use the Jira Cloud REST API in order to access the documented endpoints in <https://developer.atlassian.com/cloud/jira/service-desk-ops/rest/v2/intro/#about>

If you're looking to use [Basic Auth](https://developer.atlassian.com/cloud/jira/service-desk/basic-auth-for-rest-apis/) that guide has steps on how you can generate an [API Token for your Atlassian Account](https://id.atlassian.com/manage-profile/security/api-tokens).

I hope this helps.

Andy


Tags: opsgenie
Slack message synchronization issue
Asked by Xie Yujie:

We added the jsm chat assist bot to slack channel, but recently we found that some replies written in the thread were not synchronized to the jsm issue.  
The error message is:  
Something unexpected went wrong. [This comment](https://pingcap.slack.com/archives/C067K20786A/p1715069745028779?thread_ts=1714699813.373219&cid=C067K20786A) could not be added to the issue.
![20240507-163356.jpeg](/t5/image/serverpage/image-id/322268iB416F6724D0D31BF/image-size/large?v=v2&px=999 "20240507-163356.jpeg")  
It is worth mentioning that only the messages of a certain account cannot be synchronized, and the messages of others are normal. I wonder if it is related to the account or if there are other reasons?


Answers:
author: YY Brother
body: Hi [@Xie Yujie](/t5/user/viewprofilepage/user-id/5368031)

Welcome to our Community.

???????????????????? Slack ??? JSM Cloud ????????????????? Slack ???? Jira Cloud app????????????

Thanks,  
YY?

comments: author: Xie Yujie
body: Hi YY??

??????????????????????????????? JSM ? project ?


author: YY Brother
body: Hi Yujie?

???????users ? JSM licensed Agents? ???????????????

???????????????????? Root cause ???


author: Xie Yujie
body: Hi [@YY Brother](/t5/user/viewprofilepage/user-id/4083879) ?  
???? project setting ???????????????????? role ? Service Desk Customer ???  
????????????????????????????????????? Slack ??? JSM Cloud ????????????????????????? jsm project ??????? project ???????????????????????


author: YY Brother
body: ? ?????????


Tags: cloud

jira-service-management

jira-service-management-cloud
Setting a date field with automation
Asked by Dan Foster:

I am working on a piece of automation that will set a custom date field when a ticket transitions to a certain status.

The automation would take a number field (Quoted Turnaround Time, in days), add that number of business days to todays date, and set the custom date field.

For example an issue transitioned today with a quoted turnaround time of 10 business days would say today (May 6), plus 10 business days = May 20th.

I've been trying different variations of this automation but can't get it to work

{{now.plusBusinessDays{{Quoted Turnaround}}}}

Any help would be greatly appreciated


Answers:
author: Kalyan Sattaluri
body: Hello [@Dan Foster](/t5/user/viewprofilepage/user-id/5096702)

Correct syntax is:

{{now.plusBusinessDays(Quoted Turnaround)}}

provided "Quoted Turnaround" is the field name..

Please try and let us know. Accept answer if solution works. Thanks!

comments: author: Dan Foster
body: [@Kalyan Sattaluri](/t5/user/viewprofilepage/user-id/5312306) Thank you for your feedback, I tried that and unfortunately it did not work. I tried replacing the custom field name of "Quoted Turnaround" instead with the "customfield_XXXX" and unfortunately that did not work either.

![delivery.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/322206i3527468993D9F54D/image-size/large?v=v2&px=999 "delivery.PNG")


author: Kalyan Sattaluri
body: Please add a log statement after your trigger (before your If condition) and log {{Quoted Turnaround}} ... (or the custom field value if you know) so we know the value we are using is correct..


author: Dan Foster
body: Thanks again [@Kalyan Sattaluri](/t5/user/viewprofilepage/user-id/5312306) , I have added that to the audit log![log.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/322410iC5C38B4DA8BE0219/image-size/large?v=v2&px=999 "log.PNG")


author: Kalyan Sattaluri
body: Hmm, is this a number field or a text field.. do you happen know?

Can you please try to log below so we explicitly convert it to number?

{{now.plusBusinessDays(Quoted Turnaround.asNumber)}}


author: Dan Foster
body: [@Kalyan Sattaluri](/t5/user/viewprofilepage/user-id/5312306) Great find! The field was a text field, not a number field, I corrected to a number field and it's working now. Thank you very much!


Tags: cloud

jira-service-management

jira-service-management-cloud
Unable to Delete an Attached form in Jira Service Management
Asked by lbhender:

Hello Atlassian Community!

Our technicians are trying to delete an attached form in a Jira Service Management ticket but the "Delete" option is greyed out.

As an example, a technician needed to change the request type for an issue that had been submitted by a customer. He went through the process of moving it from one request type to another. Both have their own attached forms. Once the process completed, he then changed the request type in the Details area of the ticket (it did not change automatically). Then he added the attached form that went with the newly changed request type. Once he filled out the field, he wanted to delete the old form from the previous request type, but the option was greyed out.

We have also noticed that it is greyed out in all our tickets with various request types and attached forms. I found some suggestions related to internal forms but this is external. And it doesn't seem to matter if the form is internal or external, the option to delete is still not available.

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

Is there a setting somewhere that will make this option available?

Thank you for any assistance you all can provide!


Answers:
author: David Quiram
body: For others looking for an answer See: <https://community.atlassian.com/t5/Jira-Service-Management/Unable-to-Delete-Form-in-Service-Management-Ticket/qaq-p/2623947>

and please go vote for the feature request: <https://jira.atlassian.com/browse/JSDCLOUD-13604>

The workaround is:

1. Make the form external
2. Open the form for edits
3. Delete the form


Tags: cloud

jira-service-management

jira-service-management-cloud
ROADMAP
Asked by Bord.co:

I need to see the roadmap in weeks, its posible?


Answers:
author: Bord.co
body: THANKS DAVE!

I need that in jira product discovery, in the page of roadmap


author: Dave Rosenlund _Trundl_
body: Hello, [@Bord.co](/t5/user/viewprofilepage/user-id/5491350) ? Welcome to the community.

Yes. You can.

Use 'toggle' in the bottom right corner to change between Weeks, Months, or Quarters.

![Screenshot 2024-05-06 at 5.19.54?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/322184i7CA4F45BA2A58A70/image-size/large?v=v2&px=999 "Screenshot 2024-05-06 at 5.19.54?PM.png")

\~\~\~\~\~\~\~\~

Note: Timeline (aka Roadmap) is not available in Jira Service Management. Only in Jira Software.

I hope this helps.

-dave


Tags: cloud

jira-service-management

jira-service-management-cloud
"Upload Files" button in web interface
Asked by Elizaveta Sitnikova:

Good morning,

We've just migrated from Gitlab to Bitbucket Cloud and are curious if Bitbucket has an option to directly upload files into the repository via web interface without installing a local client application or using a command line? Gitlab has a "Replace" button which allows you to upload a new version of the file. Github has an "Upload Files" button with the similar functionality. But Bitbucket doesn't seem to have such an option.

Probably there is some add-on which could provide this functionality?

I would be really grateful for any information!


Answers:
author: Mateus T
body: Hi [@Elizaveta Sitnikova](/t5/user/viewprofilepage/user-id/5169374)!

Indeed, currently, Bitbucket does not provide any option to directly upload a file, if not through Git itself.

Although it is possible to create new text files from the UI, name and edit them, this does not provide an option to browser your local files to upload.

We do have an open Feature Request in order to add this ability to the platform:

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

Our development team will give a first-hand update through that ticket if any progress is made, so I suggest keeping a watch for it. Please note that all enhancements are implemented with this [policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) in mind.

Cheers,

Mat

comments: author: Capkan.Deniz
body: Hi Mateus,

what is the timeline here please? I am really wondering on why such a basic feature is missing.

Cheers,

Deniz


author: Mateus T
body: Hey [@Capkan.Deniz](/t5/user/viewprofilepage/user-id/3730631),

At the moment, we have no specific ETA on this feature. Our development team will update the public ticket if there is any progress so you can start watching it to get notifications for any updates.

I'd also advise reviewing our Features Implementation policy for more information on how features are prioritized and implemented:

\* <https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html>

Cheers,

Mat


author: Sivaji Kotta
body: Any update on this feature?


Tags: bitbucket-cloud

cloud
SSL Self Signed Certificate Error
Asked by Michael Behar:

We are getting the following error:  
fatal: unable to access 'https://.....git/': SSL certificate problem: self-signed certificate in certificate chain  
We are working inside a VM.  
How can I get a certificate to resolve this problem?  
thanks


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

Does this occur with a Bitbucket Cloud repo (does the URL of the repo start with <https://bitbucket.org/>)?

If so, is this VM behind a firewall? It is possible that the firewall intercepts the traffic, replaces the certificate, and then adds its self-signed certificate.

If that is the case, you will need to configure Git to trust this self-signed certificate.

1. Save the self-signed certificate on this machine
2. Then execute the command  

   ```
   git config --global http.sslCAInfo /path/to/your/certificate/cert.pem
   ```

where  
**/path/to/your/certificate** replace with the path of the certificate on your machine  
**cert.pem** replace with the name of the certificate file

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Need to Restart my Wifi to push or pull (everytime) since RSA key change
Asked by MichaelHoughton:

Since Bitbucket updated their RSA keys in May, I now need to reconnect to my wifi everytime I wish to push or pull on my repo.  

If I don't, then the push or pull just hangs.

Has anyone else experienced this. I am using Ubuntu.


Answers:
author: Saxea _Flowie_
body: I've have seen a similar issue, and if I remember correctly it had to do with ipv6 in my case. You could try push/pull from the command line using verbose SSH and might give you a better insight on what is happening.

\`GIT_SSH_COMMAND="ssh -vvv" git push\`


author: MichaelHoughton
body: Thanks [@Saxea _Flowie_](/t5/user/viewprofilepage/user-id/5230209) .  

I have done this. It appears to be a difference in the IP.  

The first time I try to connect, I get this message:  

Connecting to bitbucket.org \[2406:da00:ff00::22c5:2ef4\] port 22  

Nothing happens, the terminal just sits there and does nothing.  

I cancel this, and reconnect to my wifi. The next time, it does this:  

Connecting to bitbucket.org \[104.192.141.1\] port 22  

The second time it connects and pushes. You can see the IP is different.  

Would you have a solution by chance?

comments: author: Saxea _Flowie_
body: I think adding this to your \~/.ssh/config can help:

```
Host bitbucket.org
? ? HostkeyAlgorithms +ssh-rsa
? ? PubkeyAcceptedAlgorithms +ssh-rsa
? ? AddressFamily inet
```

The AddressFamily will make it use ipv4 only.

You will probably need the other two options, eventually when you upgrade the ssh client.


author: MichaelHoughton
body: Thank you! It looks like the following might have worked:  

Host bitbucket.org  
HostkeyAlgorithms +ssh-rsa  
AddressFamily inet


author: Saxea _Flowie_
body: Nice, glad to help!

You can mark it as solved to help others find the solution.


author: MichaelHoughton
body: Thanks [@Saxea _Flowie_](/t5/user/viewprofilepage/user-id/5230209) - yes 100%. You were great, thank you so much!


Tags: bitbucket-cloud

cloud
Cannot log in, account deactivated?
Asked by Tom Allnutt:

Hello, I tried to create an account and though it appeared successful (verified email), I cannot log in. I have tried the solutions here:

<https://confluence.atlassian.com/bbkb/we-couldn-t-log-you-in-error-message-1236932685.html>

Including:

\* Multiple browsers

\* Incognito/private mode

None of that works.


Answers:
author: Theodora Boudale
body: Hi [@Tom Allnutt](/t5/user/viewprofilepage/user-id/5282424) and welcome to the community!

There is an existing Bitbucket Cloud account with the email of your community account and it was indeed deactivated.

I went ahead and reactivated it, could you please try to log in now and let me know if it works?

Kind regards,  
Theodora

comments: author: Tom Allnutt
body: That worked! Thank you so much for the quick reactivation


author: Theodora Boudale
body: You are very welcome! Please feel free to reach out if you ever need anything else!


author: ?????
body: ???????, ?????? ?????? ? ?????????? ????? ????????????????? ????????, ??????????!


author: Muhammad Salman Nadeem
body: I faced same error , my bitbucket account has been deactivated without any reason or email


Tags: bitbucket-cloud

cloud
How to Sort Repositories by Alphabetical Order in Bitbucket Web UI
Asked by Jaime Cuevas:

How do I sort repositories by alphabetical order in the Bitbucket web UI?

As you can see below, the default sorting is not useful.

<br />

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


Answers:
author: Theodora Boudale
body: Hi Jaime,

I'm afraid that it is not possible to sort repositories alphabetically by name on that page. Sorting is only possible by the **Updated** field. Repositories are sorted by alphabetical order when viewing the repos of a specific project (go to **Projects** \> select a project).

We have a feature request for what you are asking:

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

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

comments: author: Jaime Cuevas
body: Thank you for clearing that up Theodora. I added a vote to the issue.


author: Jaime Cuevas
body: Also using the Projects view is a fine solution for me.


Tags: bitbucket-cloud

cloud
I am unable to access Bitbucket properly with my credentials. It opens first and then it got blank.
Asked by Senthamilselvan:

I am unable to access Bitbucket properly with my credentials.  
It opens first and then it got blank.


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

Do you get a blank page when you log in to Bitbucket Cloud website from browser?

If so, we have identified a bug causing this issue and created a bug report here: <https://jira.atlassian.com/browse/BCLOUD-22811> Our development team is working on fixing this issue.

Can you please check the workarounds listed in this bug report and let me know if any of them works for you?

Kind regards,  
Theodora

comments: author: Senthamilselvan
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086)   
We tried to fix this issue by readding user in the bitbucket repositories. it got works for the reporter.  
Thanks,  
Senthamilselvan  


author: Theodora Boudale
body: Hi [@Senthamilselvan](/t5/user/viewprofilepage/user-id/5107192),

Thank you for the update, it's good to hear that the issue was resolved.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
How to build a .net app in self hosted runner?
Asked by Jonabel Sierra Florian:

Hi, I'm new using bitbucket pipelines, I setup my self hosted runner in my windows machine (not docker) and in my machine I already have .net installed, but in the pipeline when it execute the "dotnet build" or "dotnet restore" it fails and says the following:

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

It seems like it's not realizing the machine already has dotnet installed.

<br />

I just want to build and publish my .net 6 projects.


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

Windows Runners use PowerShell to run pipeline steps on your Windows machine (host device). As long as a certain tool is installed and you can use it in PowerShell without a Bitbucket runner, it should be possible to use it with the Runners as well.

Have you installed the .NET SDK on this Windows machine?

Is the path of the .NET SDK installation added in the PATH environment variable of Windows?

If you clone your repo on this Windows machine (for testing purposes) and then in a PowerShell window navigate to the clone directory and run **dotnet restore**, does the command run successfully or do you get the same error?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Restrict custom pipelines to specific branches
Asked by Kacper O?ko:

Hi, I have a few custom branches in my repository as below.   
![Screenshot 2023-08-01 at 12.21.38.png](/t5/image/serverpage/image-id/272444i57FE50FAE39AB684/image-size/large?v=v2&px=999 "Screenshot 2023-08-01 at 12.21.38.png")  
and here's the bitbucket-pipelines.yml code:

pipelines:  
pull-requests:  
'\*\*':  
- parallel:  
- step: \*runDeploymentValidation

custom:  
deploy-to-sit:  
- step: \*deployToSit  
deploy-2:  
- step: \*deploy2  
deploy-3:  
- step: \*deploy3  
run-script:  
- variables:  
- name: SCRIPTNAME  
- name: ORGNAME  
- step: \*runApexScript

<br />

How can I restrict those pipelines so that in bitbucket I would be able to run them only from specific branches (e.g. **dev, uat, prod** )? Right now I can run those pipelines from all branches, even feature or bugfix branch as below.![Screenshot 2023-08-01 at 12.25.41.png](/t5/image/serverpage/image-id/272445i673054716952E345/image-size/large?v=v2&px=999 "Screenshot 2023-08-01 at 12.25.41.png")  


Answers:
author: Mateus T
body: Hi [@Kacper O?ko](/t5/user/viewprofilepage/user-id/5281866)

Welcome to the Atlassian Community!

If I understood you correctly, you would like to have only your main branches (e.g. **dev, uat, prod**) appear on the dropdown when triggering manual builds.

In this case, I'm afraid that this is not quite possible at the moment for manual builds, however, since this is a functionality you would like to see on our platform, I went ahead and raised a feature request with our development team, which you can check through the following link:

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

Our development team will give a first-hand update through that ticket if any progress is made, so I suggest keeping a watch for it. Please note that all enhancements are implemented with this [policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) in mind.

Thanks!

Mat

comments: author: Kacper O?ko
body: Hi Mateus,

It's a pity that it can't restrict main branches in a manual run. But thanks You raised a feature request I hope we will able to see this feature in action soon :)


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Self hosted linux pipeline runner not working started by cron
Asked by Johannes Bauer:

Hi,

I use a self hosted Linux pipeline runner on a Ubuntu 22.04 VM.

It was working fine until I updated the machine from Ubuntu 20.04 to 22.04.

I start the runner with crontab. This does not work anymore after the Ubuntu update.

If I start the runner manually it works fine, with crontab it shutsdown immediatelly.

There is no information in the runner logfile:

```
[2023-08-01 05:31:04,339] Runner version: 1.490
[2023-08-01 05:31:04,385] Runner runtime: linux-shell
[2023-08-01 05:31:07,506] Updating runner state to "OFFLINE".
[2023-08-01 05:31:09,279] Shutdown completed
```

The crontab entry looks like this (with omitted secrets)

```
31 5 * * * cd /opt/atlassian/bitbucket-pipelines-runner/bin && ./start.sh --accountUuid {...} --runnerUuid {...} --OAuthClientId ... --OAuthClientSecret ... --runtime linux-shell --workingDirectory ../temp?
```

Any idea what I'm doing wrong?


Answers:
author: Theodora Boudale
body: Hi Johannes,

Are there any error messages in the crontab logs with additional info as to why the runner is shutting down?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
How to run a scheduled pipeline with a complex cron expression
Asked by Jasraj Bedi:

I want to run a bitbucket scheduled pipeline just on weekdays, currently bitbucket scheduled pipelines does not let me enter a cron expression to do that.  

so the question is what is the preferred way to do it, and also is supporting complex cron expression in the roadmap?


Answers:
author: Mateus T
body: Hi [@Jasraj Bedi](/t5/user/viewprofilepage/user-id/4906100)!

Currently, the UI only allows for a few simple patterns, however, while using our [Rest API](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pipelines/#api-repositories-workspace-repo-slug-pipelines-config-schedules-post) you are able to provide any cron patterns!

I performed some internal tests and, I was able to create a schedule to run a build every weekday at 12:00 using the following pattern:

```
0 0 12 ? * MON-FRI *
```

Would you be able to test the schedules endpoint providing your pattern and let us know if that works?

Cheers,

Mat

comments: author: Jasraj Bedi
body: Hi [@Mateus T](/t5/user/viewprofilepage/user-id/4017437) thanks for the response, i was able to create a schedule with monday to friday with the rest api.  

Do you know if we would be able to do the same with UI someday? Is it on the roadmap?


author: Mateus T
body: Hi [@Jasraj Bedi](/t5/user/viewprofilepage/user-id/4906100)!

Awesome! Glad to know the API helped!

Currently, the ability to create more complex schedules is not on our [roadmap](https://www.atlassian.com/roadmap/cloud?selectedProduct=bitbucket), however, we do have an open Feature Request with our development team:

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

Our development team will give a first-hand update through that ticket if any progress is made, so I suggest keeping a watch for it. Please note that all enhancements are implemented with this [policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) in mind.

Cheers,

Mat


Tags: bitbucket-cloud

cloud