youngmon/atlassian-qna huggingface dataset:
Create JIRA issues using MS power automate HTTP post
Asked by philip_o:

I am working on creating a flow from power automate that will create new JIRA issues/tickets, with every new submitted form. I have a power automate flow that runs, but on the JIRA automate side, I do not know how to extract the dictionary data e.g.(summary and description) and add them to the respectful JIRA fields to create the issue ticket.

I have tried smart tags to no avail e.g. **{{fields.summary}},** so it appears that I am doing something wrong.

The structure of the automations is:

1. When a form is submitted
2. Get the response and Post to JIRA to create and issue.

this is my MS power automate flow:

![PA flow.png](/t5/image/serverpage/image-id/321518iF2D70DD4D7F6CD4D/image-size/large?v=v2&px=999 "PA flow.png")

**I would like to be able to extract the data from the html body and add them to the create issues fields.**

![jira automate.png](/t5/image/serverpage/image-id/321519i095D92E5EF90AE42/image-size/large?v=v2&px=999 "jira automate.png")


Answers:
author: Kalyan Sattaluri
body: Hello [@philip_o](/t5/user/viewprofilepage/user-id/5488278)

Hard to see your payload from Power Automate, but In your Jira rule, for Incoming webhook trigger, before you create new story, introduce new log of statements.

For that, Add Components -\> New Action -\> Search for Log Action.. Do that 3 times and put below smart values.

{{webhookData}}

{{webhookData.fields.summary}}

{{webhookData.fields.description}}

Then, trigger your rule from Power automate. Hope it helps.

comments: author: Tushar swamy
body: I am getting error that you don't have permission to create issues


Tags: api

cloud

jira-api

jira-automate

jira-service-management

jira-service-management-cloud

post

power-automate
Access has been denied by admin, but I am the admin
Asked by Stefan Bartelski:

I am trying to get into our account but I get a message that I was denied access by the admin. However, I AM the admin, so how do I get in?


Answers:
author: Laurie Sciutti
body: Hello [@Stefan Bartelski](/t5/user/viewprofilepage/user-id/5487394) \~ this is a very active Community. My guess as to why you hadn't received a response yet is that a lot of Community members are currently attending the Team '24 conference. That said, are you the *site* admin? Org admin? Your administrative rights dictates what level of product admin rights you have. Ref: <https://support.atlassian.com/user-management/docs/give-users-admin-permissions/#Improved-user-management-experience>

comments: author: Stefan Bartelski
body: Thanks for the answer. To be honest, I am not sure which admin I am. We are just using the one tool, Service Management. I am using the autofill values to login, which seems to work until Jira decides that I should be denied access. Just not sure how I can get around this. I will wait until more people come back from their junket ;-)

Stefan


author: Laurie Sciutti
body: [@Stefan Bartelski](/t5/user/viewprofilepage/user-id/5487394) \~ try clearing your browser cache and try to log in again.


author: Stefan Bartelski
body: Good idea, I had not thought of that. I will try that shortly :-D


author: Stefan Bartelski
body: Hmm, nobody replying to this. Not like other communities where responses are almost immediate. Probably have to stop using this tool. :-(


Tags: jira-service-desk-cloud

jira-service-management

jira-service-management-cloud
Calculation between Actual start date and Actual end date in Jira
Asked by omar.wehbe:

Greetings Atlassian Community,

I have 2 questions:

1. Is there a gadget that I am missing in the dashboard (a default one) that will make the calculation automatically between the Actual Start date and Actual End date fields in Jira tickets on a certain board? The project cycle duration does the calculation between the ticket created and status change which is something i do not want to do.

2. I am currently exporting my tickets to Google sheet and add a formula that does the calculation between the Actual start date and actual end date of the projects and it returns the number of days.

Is there an automation I can do to make my life easier where i can calculation that difference in Jira itself?


Answers:
author: Dexter de Vera
body: Hi [@omar.wehbe](/t5/user/viewprofilepage/user-id/5457431) ,

You can create automation to calculate the range.

Requirement field type:

Actual Start date - datetime field

Actual End date - datetime field

Create new field -Total (Name it) - number field

Create an Automation:

Trigger: issue updated - Actual Start date, Actual End date

Action: edit field - Total (Name it)

Put this smart value: {{issue.Actual End date.diff(issue.Actual Start date).days}}

You can chance the smart value(days) base on weeks, hours, minutes etc.

Hope it helps

comments: author: Dexter de Vera
body: {{issue.Actual End date.diff(issue.Actual Start date).days}}


author: Thomas Runchina
body: How would it look like, if I want the days on weekend excluded and instead of days in hours?


author: omar.wehbe
body: i DOubt this is correct. there shouldnt be any spaces. can you please assist ?


author: omar.wehbe
body: thanks a lot !


Tags: cloud

jira-service-management

jira-service-management-cloud
Not receiving email requests
Asked by Emilio Garcia-Calitz:

Hi

We are testing Jira Service Management and have created a project.

It appears that not all Emailed requests are being received.

For example - we sent x2 from our internal system emails and x2 external (protonmail/gmail) emails to a project email and the only 1 of the 4 emails arrived.

It seems intermittent as a previous internal test email came through without an issue.

Does anyone have an idea of where we could look to resolve the issue?

We just want to ensure that it is not being supressed on Atlassian's side.

Thanks

Emilio


Answers:
author: Andy Heinzer
body: Hi [@Emilio Garcia-Calitz](/t5/user/viewprofilepage/user-id/5487417)

I did not locate any suppressions of users on your domain. However it sounds like the problem is in regards to emails you have sent to an address you are expecting Jira Service Management to check. From Community I cannot see that level of detail about your environment or your configuration.

In this case, I have created a support case on your behalf over in <https://getsupport.atlassian.com/servicedesk/customer/portal/23/JST-995667>

From there if you can approve data access, then perhaps someone from our support team can investigate this further to better understand what might be happening here.

Andy

comments: author: Emilio Garcia-Calitz
body: Perfect - thank you. I've granted data access. Appreciate the support so far.


Tags: atl-rvw

cloud

jira

jira-service-management

jira-service-management-cloud
IP Allowlisting, how to allow the Server to Cloud Migration Tool to connect?
Asked by Nick Daniel:

Hello,

After recently enabling the IP Allowlisting feature of our Bitbucket Cloud workspace, the Cloud Migration Tool/Assistant in Confluence Server no longer works. It is able to create the new repositories, but the migration fails for each repo, leaving only empty repos in the Cloud workspace.

The migrations worked before the IP Allowlisting several times, migrating quite a few projects and repositories.

I've tried allow-listing a lot of different atlassian IP address blocks from the docs, but none of them seem to resolve the issue. I would prefer not to have to disable IP Allowlisting every time I need to run the migration tool---ideally there is just an IP block that I can allow so that the tool can talk to the locked-down workspace.

Thanks in advance for any help here!  
Nick  

Log message:  
c.a.b.p.b.j.MigrationJobPollerDelegate job failed with error Error occurred for EP/my-repo-name during git push. com.atlassian.bitbucket.scm.NotAuthorizedScmException: The requested remote repository does not exist, or you do not have permission to access it  
java.util.concurrent.ExecutionException: com.atlassian.bitbucket.scm.NotAuthorizedScmException: The requested remote repository does not exist, or you do not have permission to access it


Answers:
author: Patrik S
body: Hello [@Nick Daniel](/t5/user/viewprofilepage/user-id/931177) and thank you for reaching out to the Community!

From the error message you reported, seems like the Migration tool is able to reach Atlassian infrastructure, but the IP allow listing is likely blocking the connection from that particular server.

This can happen if the IPs of your Server instance were not added to the IP Allow listing on your bitbucket workspace.

In this case, could you please confirm you have added all the IPs from your Server instance (from where you are migrating) to your workspace's allowed IPs?

We also have the following article with detailed instructions on how to prepare for migration, with regard to firewalls an IP allow listing, that might be of help :

* [Preparing your firewall to migrate using Bitbucket Cloud Migration Assistant](https://confluence.atlassian.com/bbkb/preparing-your-firewall-to-migrate-using-the-bitbucket-cloud-migration-assistant-1229036256.html)

If you have any questions, feel free to ask!

Thank you, [@Nick Daniel](/t5/user/viewprofilepage/user-id/931177) !

Patrik S


Tags: bitbucket-cloud

cloud
Could not install apps
Asked by IT Service:

Hello,

we want to install Bitbucket Cloud Migration Tool but it is not possible any more.

How can we do that manually on our server?

Thanks

St Schoppel


Answers:
author: Ben
body: G'day!

May you please clarify what is meant by "it is not possible any more" - when you try to install the add-on for the BCMA tool from the Marketplace, do you get some kind of error message?

Apps are only able to be installed by admins so please also confirm the installer has the necessary privileges to do so.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-server

migration-customer-care

server
Unable to install Bitbucket server
Asked by Saikiran Rekulakunta:

Hello Team,

We are trying to install Bitbucket for our testing, we are currently using bitbucket version 8.6.1 with Git version 2.37.5 but we are getting an error :

A fatal error has occurred  
The following problem occurred, which prevents Atlassian Bitbucket from starting:

SpringMVC dispatcher \[springMvc\] could not be started

Could you please help us resolve the issue

Thanks and Regards,  
Saikiran


Answers:
author: Saikiran Rekulakunta
body: I have checked that but still the same issue


author: Charlie Misonne
body: Here is an article describing multiple possible causes for your issue: <https://confluence.atlassian.com/bitbucketserverkb/bitbucket-datacenter-showing-error-springmvc-dispatcher-could-not-be-started-while-starting-up-779171477.html>

If this is a fresh install it is likely that the user running Bitbucket does not have sufficient permissions. See cause #1 but check the other ones too.


Tags: bitbucket-server
I want to use the atlassian/aws-ecs-deploy pipe, but.....
Asked by evanmorgan:

I'm not sure how to configure/define where my docker hub image hosts the image to be deployed?


Answers:
author: Patrik S
body: Hello [@evanmorgan](/t5/user/viewprofilepage/user-id/761526) and thank you for reaching out to Community!

You can define the image used by the containers in your ECS deployment by creating a task definition json file and pushing it to your repository. You can find the task definition template in AWS's documentation :

* <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-definition-template.html>

Then you need to configure the pipe's variable TASK_DEFINITION with the path of the task definition json file within your repository.

The following example considers a task-definition.json file in the root of the repository :

```
script:
  - pipe: atlassian/aws-ecs-deploy:1.7.0
    variables:
      AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
      AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
      AWS_DEFAULT_REGION: 'us-east-1'
      CLUSTER_NAME: 'my-ecs-cluster'
      SERVICE_NAME: 'my-ecs-service'
      TASK_DEFINITION: 'task-definition.json'
```

You can find more details and examples of using the atlassian/aws-ecs-deploy on its official documentation:

* <https://bitbucket.org/product/features/pipelines/integrations?p=atlassian/aws-ecs-deploy>

Thank you, [@evanmorgan](/t5/user/viewprofilepage/user-id/761526) !

Patrik S


Tags: aws

bitbucket-cloud

bitbucket-pipelines

cloud
What is the best way of moving projects & repositories from multiple server instances to data center
Asked by Matt:

I'm trying to figure out how to migrate multiple servers running bitbucket server with projects and repositories onto a new bitbucket data center environment. Cloud is not an option for me and as most solutions seem to show cloud migration procedures I am a little stuck.

I thought the best way was to use the REST API method

curl -u \<adminusername\> -s -n -X POST -H 'Content-type: application/json' -d '{"repositoriesRequest":{"includes":\[{"projectKey":"\*","slug":"\*"}\]}}' <http://localhost:7990/rest/api/1.0/migration/exports> \| jq .

but I cannot seem to get it to do anything. I get no job started and it doesn't return a job id, just goes back to the prompt with no errors.


Answers:
author: Matt
body: As a follow up, I'm running bitbucket in a docker container to test it.

The command I am running is

curl -u myusername:mypassword -s -n -X POST -H 'Content-type: application/json' -d '{"repositoriesRequest":{"includes":\[{"projectKey":"\*","slug":"\*"}\]}}' <http://dockercontainerhostname:7990/rest/api/1.0/migration/exports> \| jq .

It returns

{  
"errors": \[  
{  
"context": null,  
"message": "You are not permitted to access this resource",  
"exceptionName": "com.atlassian.bitbucket.AuthorisationException"  
}  
\]  
}


Tags: bitbucket-server

server
I am unable to access remote repository from bitbucket even though I added correct rsa public key
Asked by Sachin Mittal:

The fingerprint for the RSA key sent by the remote host is  
SHA256:46OSHA1Rmj8E8ERTC6xkNcmGOw9oFxYr0WF6zWW8l1E.  
Please contact your system administrator.  
Add correct host key in /c/Users/mittas1/Onedrive - Invesco/.ssh/known_hosts to get rid of this message.  
Offending RSA key in /c/Users/mittas1/Onedrive - Invesco/.ssh/known_hosts:1  
RSA host key for bitbucket.org has changed and you have requested strict checking.  
Host key verification failed.  
fatal: Could not read from remote repository.  
I also added known_hosts with below format:  
bitbucket.org ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDuqwoHsoDTJOdBZqmPgI4DtwFM4XERICBQDYdWVe/s0FklTUMH+mO4bDpNSK7kfo8kZdObiqjkhzwAMUiTRqQY8HHeW80xL72mUelrmFWBpTIzZ1pM1+ppKc0cTDuLZmCxZKz/Zi5OYqyqsSdbPvVgyp3yepsmwXLDhWy3YSRIlap585jUYzyUlOzAZoyMgbE2KeyYvcVAgqLvTcLmucJcFXYqtIxXiNlVpduOPZ+WdnYjpwhzn219Z+DN2DlId0d739yo+ikCpVRHU/bJzgh6rTATEAlMGWW+DwAr0FdFR6jdDu+JZ55dvu9jHpuc255PIXXrmA0fidePA+7XxWL  
\[altssh.bitbucket.org\]:443 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDuqwoHsoDTJOdBZqmPgI4DtwFM4XERICBQDYdWVe/s0FklTUMH+mO4bDpNSK7kfo8kZdObiqjkhzwAMUiTRqQY8HHeW80xL72mUelrmFWBpTIzZ1pM1+ppKc0cTDuLZmCxZKz/Zi5OYqyqsSdbPvVgyp3yepsmwXLDhWy3YSRIlap585jUYzyUlOzAZoyMgbE2KeyYvcVAgqLvTcLmucJcFXYqtIxXiNlVpduOPZ+WdnYjpwhzn219Z+DN2DlId0d739yo+ikCpVRHU/bJzgh6rTATEAlMGWW+DwAr0FdFR6jdDu+JZ55dvu9jHpuc255PIXXrmA0fidePA+7XxWL  
104.192.141.1 ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDDuqwoHsoDTJOdBZqmPgI4DtwFM4XERICBQDYdWVe/s0FklTUMH+mO4bDpNSK7kfo8kZdObiqjkhzwAMUiTRqQY8HHeW80xL72mUelrmFWBpTIzZ1pM1+ppKc0cTDuLZmCxZKz/Zi5OYqyqsSdbPvVgyp3yepsmwXLDhWy3YSRIlap585jUYzyUlOzAZoyMgbE2KeyYvcVAgqLvTcLmucJcFXYqtIxXiNlVpduOPZ+WdnYjpwhzn219Z+DN2DlId0d739yo+ikCpVRHU/bJzgh6rTATEAlMGWW+DwAr0FdFR6jdDu+JZ55dvu9jHpuc255PIXXrmA0fidePA+7XxWL  


Answers:
author: Theodora Boudale
body: Hi [@Sachin Mittal](/t5/user/viewprofilepage/user-id/4568447),

We recently added two new host keys in Bitbucket Cloud, we rotated the RSA host key and removed the DSA host key.

The RSA key you have in your known_hosts file is not the one Bitbucket Cloud is using, which is the reason for the error you see.

You need to remove these entries from your known_hosts file and you can copy-paste in your known_hosts the entries from the site below:

* <https://bitbucket.org/site/ssh>

There are the new SSH host keys that Bitbucket Cloud is currently using.

Please feel free to let me know how it goes and if you need further assistance.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Do I need "bitbucket post webhooks" specifically for Jenkins to bitbucket connections?
Asked by Colin_McDermott:

We are using bitbucket post webhooks addon for some webhooks for some projects from bitbucket to Jenkins.

I can't see what this addon does that isn't standard bitbucket functionality. So I am looking to remove it (recognising that this addon probably does provide some features. We don't need them). We were using the "free" version then was forced to upgrade to paid

Curious if anyone else has removed this addon and if they have any experience with it.


Answers:
author: Weronika Spaleniak Appfire
body: Hi [@Colin_McDermott](/t5/user/viewprofilepage/user-id/4842323) ,

Which functionalities of the plugin do you use?

Bitbucket does offer a good webhooks solution, but the amount of trigger events is quite limited. All depends on what's useful in your use case. For example, in [Webhook to Jenkins](https://marketplace.atlassian.com/apps/1211284/webhook-to-jenkins-for-bitbucket?hosting=datacenter&tab=overview) solution we added manual triggering of jobs, project-level settings, and additional configuration options.

If you'd like to chat more, feel free to reach out to [me](mailto:weronika.spaleniak@appfire.com). I'd love to hear more about your use case of using webhooks and maybe can advise something. Full disclosure- I do work for Appfire.


Tags: bitbucket-server

server
I am having trouble importing repositories from Github here not so easy anymore
Asked by Maria Campbell:

I was trying to import a repository and did it wrong. Now I have a project with nothing in it, and an empty repository I don't want. I want to import one!!! Any help would be great. This is why i don't like using BitBucket. So i use it for archiving inactive repos I don't want to completely delete. Thanks. It used to be so easy to do back in the day. Now it is not.


Answers:
author: Maria Campbell
body: I actually figured it all out. I figured out that it was a matter of removing myself from the person's workspace. Which I figured out after a little bit.


Tags: bitbucket-cloud

cloud
There is not personal settings for my Bitbucket account
Asked by TuLe:

Hi, I've just set up a new Bitbucket account. But there is no "personal settings" so I cannot update my SSH key info. What's wrong with my account?

![Screenshot 2023-07-16 at 13.03.32.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/269152iDFAB09D5AB3D48E9/image-dimensions/238x361?v=v2 "Screenshot 2023-07-16 at 13.03.32.jpg")


Answers:
author: Kseniia Trushnikova
body: Hi [@TuLe](/t5/user/viewprofilepage/user-id/426053),

To add an SSH key to your user account, select **Settings** \> **Personal settings** \> **Security** \> **SSH keys**.

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

comments: author: TuLe
body: Oh, thank you. I managed to update the SSH keys.


author: TuLe
body: [This article](https://support.atlassian.com/bitbucket-cloud/docs/set-up-personal-ssh-keys-on-macos/#Provide-Bitbucket-Cloud-with-your-public-key) contains outdated information. It should be updated.

"At bitbucket.org, select your avatar (Your profile and settings) from the navigation bar at the top of the screen.

Under **Settings** , select **Personal settings**."


author: Hugo Juarez Sanchez
body: I agree this should be updated and underlined in the article.


Tags: bitbucket-cloud

cloud
Bitbucket 2.0 PR difference api gives 404 when called from C# web application
Asked by Marilyn Pulinthitta:

I am using bitbucket's PR difference endpoint to get the differences for a PRID , it works on postman but the same call returns 404 via code.

I have checked the URL, Headers also has access token

URL : <https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/pullrequests/{pull_request_id}/diffstat>'

This api runs via Postman though. Also on checking the http response message, request message absolute is a different uri : <https://api.bitbucket.org/2.0/repositories/>{workspace}/{repo_slug}/diffstat/{workspace}/{repo_slug}:30cff0b24f9a%0D6f7a3ddc9d21?from_pullrequest_id=1\&topic=true


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

As per the Bitbucket API documentation, the endpoint [Get diffstat for a Pull Request](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-repositories-workspace-repo-slug-pullrequests-pull-request-id-diffstat-get) will return an HTTP Status Code 302 redirecting to [Repository Diff stat](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-commits/#api-repositories-workspace-repo-slug-diffstat-spec-get) with the commits that correspond to the Pull Request.

By default Postman follow redirects, so when you originally make a request to the pull request endpoint, bitbucket will respond with a redirect URL, and Postman will automatically make a new request to this redirect URL.

What might be happening is that your C# application is not configured to follow redirects. In this case, you might need to find any setting available on the tool you are using to enable follow redirects (HTTP 3xx responses), or you will need to make a second call to the API endpoint returned in the response message you shared in the description.

Hope that helps! Let me know in case you have any questions.

Thank you, [@Marilyn Pulinthitta](/t5/user/viewprofilepage/user-id/5268948) !

Patrik S


Tags: bitbucket-cloud

cloud