youngmon/atlassian-qna huggingface dataset:
Automations to Create issue types across different projects
Asked by Jeff Lombard:

I have created a automation that triggers when I change the status of a issue in Jira Service Management Project. It will create a new issue in our standard Jira Project.

I want the Assignee in the Service Management Project to be the Reporter in the Jira Project, so I used the following JQL to Set the Reporter

* {{issue.assignee.displayName}}

I am getting an error that says the user is inactive. In my test I am the Assignee and I am a admin in both projects. I am not sure why this is happening.

* I have checked my account in both projects and it is active.
* I do not have inactive accounts in either project.
* I have necessary permissions in both projects to be assigned as a reporter


Answers:
author: Mark Segall
body: Hi [@Jeff Lombard](/t5/user/viewprofilepage/user-id/4896470) - Who is the automation rule actor? That's the account that will require permissions for setting the reporter on the target project. If it is Jira Automation, you will need to ensure that the **Project Role (atlassian-addons-project-access)** is accounted for in the permission scheme of the target project.

comments: author: Jeff Lombard
body: Yes, **atlassian-addons-project-access.**Is listed in the permission scheme of both projects.

Below are some screenshots of the fields I am setting and the error message I get. When I remove the "Reporter" mapping from the rule everything works fine and creates the new issue as expected. The "Reporter" on the new ticket shows as "Automation for Jira" when successful.

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


author: Mark Segall
body: Thank you for the screenshot. This adds much more context. The issue is that you're trying to populate with the display name. You only need {{issue.assignee}}

Additionally, you don't even need the smart value. From the ? menu on the right, you can simply select copy and then select what field you're copying from.


author: Jeff Lombard
body: That did the trick! Thank you for catching that.


Tags: cloud

jira-service-management

jira-service-management-cloud
How to Prevent Email Signatures and Social Media Icons from Being Added as Attachments in Tickets?
Asked by Daniel Nelson:

Hi

I'm encountering an issue in Jira Cloud where email signatures, along with social media icons etc, are being included in the ticket details and the icons are also being added as attachments. These icons often appear oversized and clutter the ticket view especially with multiple replies.

Could anyone advise on how to configure Jira to filter out or strip these signatures and icons so they are not included in the tickets and as attachments? Additionally, if there are ways to prevent the icons from appearing oversized when they are included, that would be very helpful.


Answers:
author: Zoey Wang
body: Hi [@Daniel Nelson](/t5/user/viewprofilepage/user-id/5472568)

Here is a workaround provided by Atlassian.

[Delete unwanted attachments from JSM requests using Automation](https://confluence.atlassian.com/jirakb/delete-unwanted-attachments-from-jsm-requests-using-automation-1235853531.html)

Please note:
> Attachments once deleted can't be recovered. Please adjust the regex to suit your use case scenario and test it in your sandbox environment before using it in production.  


Tags: cloud

jira-service-management

jira-service-management-cloud
Need help creating a new End User Offboarding Form
Asked by Kuntal Pathak:

Hello,

Need help creating an end user offboarding form in Jira Service Desk, something like this:

Common Requests - Offboard and Existing Account - Raise this request on Behalf of :  
Summary  
Office Location -

Select a System  
Tell us why you need an account  
Attachment - Browse  

Send

Thank you.

Kuntal Pathak


Answers:
author: Rebekka Heilmann _viadee_
body: Hi [@Kuntal Pathak](/t5/user/viewprofilepage/user-id/5472520) and welcome to the Community,

there is an excellent documentation for forms: <https://support.atlassian.com/jira-service-management-cloud/docs/use-forms-in-jira-service-management/>

You could also setup a Request Type without the use of forms and use custom fields instead.

What part exactly do you need help with?

comments: author: Kuntal Pathak
body: Thank you Rebekka, I am new to Jira, is there a way to find out if my account is an admin? I do not see these form creation options.

Regards,

Kuntal.


Tags: cloud

jira-service-management

jira-service-management-cloud
Get file content in JSON format
Asked by mgnavarrete:

Is there any way to get the content of a file in JSON format as it was in Bitbucket Server? I don't mind if has different values but I need it in JSON format so the result of the query can be parsed.


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

The Bitbucket Cloud API for retrieving a file's content returns the raw contents of the file:

* <https://developer.atlassian.com/cloud/bitbucket/rest/api-group-source/#api-repositories-workspace-repo-slug-src-commit-path-get>

You can get the file metadata in JSON format, but I'm afraid it is not possible to retrieve the content in JSON.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

jira-cloud
Filter issue type on automation trigger
Asked by Emiliano Visioli:

Hi all,

I have a project which involve several issue type.

I configured an automation based on a status transition trigger but as there are several issue type, the rule starts a lot of times because the status is used in all of them.

Is it possibile to pre-filter a trigger? I set a condition on issue type to apply the actions only on a specific issue type (and it works) but as I said in the log I can see that this rule is launched many times (with "no actions performed).

My goal is to engage the trigger only for a specific issue type from the very beginning.

Here the first part of the rule with the conditions:

![Screenshot 2024-04-09 153731.png](/t5/image/serverpage/image-id/317231iD496E302A9ACBEB7/image-size/large?v=v2&px=999 "Screenshot 2024-04-09 153731.png")

In addition, I've noticed that it took almost 25 seconds to complete the automation, that is a huge amount of time. Could be possible to reduce it?


Answers:
author: YY Brother
body: Hi [@Emiliano Visioli](/t5/user/viewprofilepage/user-id/5269731)

Welcome to our community.

Could you please try Issue Type equals condition directly?

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

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

Thanks,

YY?

comments: author: Emiliano Visioli
body: Hi YY?,

thank you, with this change, the speed has definitly increased.

But I guess is not possible to "pre-filter" a trigger as the conditions are applied after the trigger is engaged.

Thank you,  
Emiliano


author: YY Brother
body: Hi [@Emiliano Visioli](/t5/user/viewprofilepage/user-id/5269731)

The automation rule builder block is triger -\> condition -\> action. So we can't limit a condition before a trigger.

Thanks,

YY?


author: Kalyan Sattaluri
body: The major criteria for your rule's time to execute is:

* Your subsequent steps in the rule (your first steps are not whats bogging the rule down), and
* the load on your infrastructure at the time of your rule trigger (if its peak hour and a lot of people are accessing / working in jira when your rule is run, it will be slower and nothing to do with your rule specifically) and
* the hardware on your premises

Some of these things you cannot control such as load / hardware and I would not bother, if its a concern, try executing the rule in off / peak hours and check the time.. If its better, also see if you can change the trigger to scheduled so that you control when rule is run. Again, depends on use case but big picture, I wouldnt worry too much about execution time unless it 5 mins or so.


Tags: data-center

jira-service-management

jira-service-management-data-center
Format rendered of a file does not work with yml files
Asked by mgnavarrete:

Is there any reason why "?format=rendered" of "Get file or directory contents"endpoit does not work with "yml" or Jenkinsfiles for instances? When I get the file content of a "md" or "csv" file it works properly but if I do it with yml or Jenkinsfile I get a 500 error code and that breaks all pipelines I have


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

I looked into this and the **?format=rendered** query is supported only with files of these extensions:

* <https://support.atlassian.com/bitbucket-cloud/docs/readme-content/#Extensions-and-Languages>

I created a request to update the documentation for this API endpoint and include this info.

You should be able to get the raw contents of a file by omitting the ?format=rendered query.

Kind regards,  
Theodora


Tags: bitbucket-cloud
Need to check the app password permission using an API?
Asked by yashodperera:

I need to check provided app password have needed permission do we have the proper way of doing it via APIs?


Answers:
author: Patrik S
body: Hello [@yashodperera](/t5/user/viewprofilepage/user-id/5216608) ,

Welcome to the Atlassian Community!

App passwords were designed to be easily created and revoked, and I'm afraid currently it's not possible to review the permissions/scopes of an existing app password, neither in the UI nor via API. We already have a feature request to implement this functionality, which you can access with the link below :

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

I would suggest you to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with [this policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) in mind.

Thank you, [@yashodperera](/t5/user/viewprofilepage/user-id/5216608) !

Patrik S

comments: author: yashodperera
body: [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) Thank you for the detailed answer.


Tags: bitbucket-cloud

cloud
Error: remote: Invalid username or password fatal: Authentication failed for {URL}
Asked by PC00837852:

Error: remote: Invalid username or password  
fatal: Authentication failed for {URL}

No matter what I do, I get this message. I have already cleared all of the credentials saved in Windows Credentials Manager. I have updated my username/password on atlassian, I have uninstalled/reinstalled source tree several times, and I am just out of ideas.

Could you please suggest the solution


Answers:
author: Patrik S
body: Hello [@PC00837852](/t5/user/viewprofilepage/user-id/5216362) ,

Welcome to the Atlassian Community!

Based on the error message you are receiving, I suspect you might be using the account password (the password used to log in on the UI) to authenticate on Sourcetree, and this is the reason why it's currently failing.

Since earlier last year, account passwords can no longer be used for git activity and API calls, and [app passwords](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/) should be used instead.

In this case, I would suggest try [creating an app password](https://support.atlassian.com/bitbucket-cloud/docs/create-an-app-password/) , and then using your bitbucket username and the app password as the credentials for authentication.

You can try that suggestion and let us know how it goes.

Thank you, [@PC00837852](/t5/user/viewprofilepage/user-id/5216362) !

Patrik S


Tags: bitbucket-cloud

cloud

sourcetree
Running webpack serve on multiple ports within pipeline
Asked by Tamsin:

I have a react app, which has been build using micro frontends. I am trying to run cypress tests as part of a bitbucket pipeline, but I can't get my app to run within the pipeline. To start the app I use lerna, which in turn starts each micro frontend using webpack, on a different port. So basically runs the command below but with different ports

```
webpack serve  --port 8505
```

It works fine locally, but in the pipeline I get errors like this:  

    node:internal/process/promises:288
    triggerUncaughtException(err, true /* fromPromise */);


    RpcIpcMessagePortClosedError: Cannot send the message 
    - the message port has been closed for the process 1149.

    at /opt/atlassian/pipelines/agent/build/node_modules/fork-ts-checker-webpack-plugin/lib/rpc/rpc-ipc/RpcIpcMessagePort.js:47:47
    at process.processTicksAndRejections (node:internal/process/task_queues:81:21) {
    code: undefined,
    signal: undefined
    }

I wonder if there is something I need to know about using \`webpack serve\` within the pipeline environment? My pipeline which builds and deploys using webpack works fine, so it must be something specific to serve? Thanks!


Answers:
author: Tamsin
body: To answer my own question - the build container was running out of memory. I reduced the memory used by the docker and mysql services, and added size: 2x to the build step


Tags: bitbucket-cloud

cloud

webpack
User does not receive any Atlassian Notification (Jira / Confluence / Bitbucket)
Asked by Julien Drouvin:

Hello,

One of my users does not receive any email notifications.  
I verified multiple configurations:

* The user's personal settings are correctly configured to receive notifications  
  ![image.png](/t5/image/serverpage/image-id/256392iC3561D84B9F90484/image-size/large?v=v2&px=999 "image.png")![image (1).png](/t5/image/serverpage/image-id/256393i15670E946329AC55/image-size/large?v=v2&px=999 "image (1).png")![image (2).png](/t5/image/serverpage/image-id/256394iC51479F808C8FFEB/image-size/large?v=v2&px=999 "image (2).png")
* I used the **Jira Notification Helper** and it indicates that the user should receive an email
* We verified that no email restrictions are in place on the user's mailbox
* We verified if the mail server receives any incoming email whenever a notification event is triggered for that user and it does not.

Did someone experience that kind of behavior?  
If yes, how did you get it fixed?

Regards,  
Julien


Answers:
author: Theodora Boudale
body: Hi Julien,

I see that you created a support ticket and the issue has been resolved there.

If you ever need assistance with a similar issue, you can either create a support ticket, or ask the affected user to raise a community question themselves (this way Atlassian staff can see the email of the affected user and help them).

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

confluence-cloud

jira-cloud
How to use pagination to get more than 50 data sets of information while using Bitbucket API.
Asked by kompal.sithta:

I am trying to retrieve the list of users in a workspace using the Bitbucket API for List of users in a workspace

I am sending my get request to the following URL -  
<https://api.bitbucket.org/2.0/workspaces/{workspace-name}/members>  
This returning only 50 users but there are more than that.  
I want to know how to get the users using pagination or any other method.  
Thanks,  
Kompal


Answers:
author: Naveen Kumar_Appfire
body: HI [@kompal.sithta](/t5/user/viewprofilepage/user-id/5079083)

In the above REST API output there is a Next parameter. Use that next parameter to get the rest of the users.

![Screenshot 2023-05-10 at 11.53.31 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/256259i3942DD1245F57B94/image-size/large?v=v2&px=999 "Screenshot 2023-05-10 at 11.53.31 AM.png")


Tags: bitbucket-cloud

cloud
Bug in bitbucket.io
Asked by Cat_Kutay:

I think the httpd version on the server is behind. We are using bitbucket in class, and the w3c validator process comes back with

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

eg try (I cannot paste!!???!) <https://budyari.bitbucket.io>.


Answers:
author: Patrik S
body: Hello [@Cat_Kutay](/t5/user/viewprofilepage/user-id/4198641) ,

Thank you for reaching out to the Community!

I was able to successfully load the link you shared using Chrome version 113.0.5672.92, so I suspect this might be a local browser issue.

Could you try updating your browser to the latest version or trying to use a different browser and check if the issue persists ([Bitbucket supported browsers](https://confluence.atlassian.com/bbkb/which-web-browsers-does-bitbucket-support-1168845119.html#:~:text=Supported%20browsers&text=Bitbucket%20Cloud%20supports%20the%20latest,latest%20stable%20version%2C%20if%20necessary.))? Also, does the same error happens when you open the page using the browser's incognito mode?

Let me know if you have any questions.

Thank you, [@Cat_Kutay](/t5/user/viewprofilepage/user-id/4198641) !

Patrik S

comments: author: Cat_Kutay
body: I have 60 students, most with same problem

The error message does not relate to browser, it is w3c validator access to the URL on bitbucket.io

<https://validator.w3.org/>

Works on github.io


author: Patrik S
body: Hello [@Cat_Kutay](/t5/user/viewprofilepage/user-id/4198641) ,

Thank you for the clarification!

From the HTTP status code returned ([HTTP 426](https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/426)), the server (bitbucket.io) is refusing the connection because the client (w3.org validator) is using an old/unsupported protocol.

In this case, I would suggest reporting this to w3.org, as they have a [Report issue](https://validator.w3.org/nu/about.html#issues) link available on the website. They will have more logs and details on what protocol upgrade is necessary on their side to allow the connection with bitbucket.io.

Thank you, [@Cat_Kutay](/t5/user/viewprofilepage/user-id/4198641) !

Patrik S


author: Cat_Kutay
body: Ah thank you, have done, error message not helpful!


Tags: bitbucket-cloud

cloud
How do I set the deployment environment based on the destination branch
Asked by Mach Dinh-Vu:

In this example, I know the destination environment from $BITBUCKET_BRANCH in my step *set-deployment-environment.*I set my environment variable $ENV_NAME, but deployment will not accept an environment variable as I believe this needs to be a string.

```
pull-requests:
  release/*:
    - step: *set-deployment-environment
    - step: 
        <<: *ansible-build-deploy
        name: Deploying to environment
        deployment: $ENV_NAME
```

Can anyone suggest a solution?


Answers:
author: Patrik S
body: Hello [@Mach Dinh-Vu](/t5/user/viewprofilepage/user-id/4156442) ,

Thank you for reaching out to Atlassian Community!

Unfortunately, it's currently not possible to define a dynamic environment in the YML file using environment variables. The deployment environment of the step needs to be a fixed static value that was previously created under the Deployments section of Repository Settings. We do have an open feature request to implement the ability for deployment environments to be configured dynamically/using env variable, which you can find below :

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

I would suggest you to add your vote there, since this helps both developers and product managers to understand the interest. Also, make sure you add yourself as a watcher in case you want to receive first-hand updates from that ticket. Please note that all features are implemented with [this policy](https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html) in mind.

Thank you, [@Mach Dinh-Vu](/t5/user/viewprofilepage/user-id/4156442) !

Patrik S


author: patrickv_slalom
body: You can set the deployment environment in steps and stages. To accomplish deployment environments per merge branch, I added stages. It solves the build/deploy scenario for branches (see *branches* **:** below).

Unfortunately, it doesn't help if you want to pick a deployment environment based on target branch in the case of a Pull Request.

**Suggestion**: Not ideal, but you could accomplish it with branch naming conventions (e.g. release/prod-\* would set the deployment to production).

```
pipelines:
  pull-requests:
    'release/dev-*':
      - stage:
          name: Pull Request Validation Build
          deployment: dev
          steps:
            - parallel:
              - step: *security_scan
              - step: *build
            - step: *terraform_plan
    'release/prod-*':
      - stage:
          name: Pull Request Validation Build
          deployment: prod
          steps:
            - parallel:
              - step: *security_scan
              - step: *build
            - step: *terraform_plan
  branches:
    development:
      - stage:
          name: Build and deploy
          deployment: dev
          steps:
            - parallel:
              - step: *security_scan
              - step: *build
            - step: *terraform_plan
            - step: *terraform_apply
```


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
I cannot login
Asked by Omer Saad:

I keep getting this error. Deleted browing data, cache, cookies....

"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."


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

The Bitbucket Cloud account with the same email as your community account was deactivated, which I think is the reason for the error you were seeing. I went ahead and reactivated it, could you please try to log in now and let me know how it goes?

Kind regards,  
Theodora

comments: author: Omer Saad
body: Thank you so much, that seems to have resolved the login screen issue! I wish there was a clearer error screen than what I was seeing.


author: Theodora Boudale
body: Hi Omer,

That's good to hear and you are very welcome, I will pass along your feedback.

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Unable to login Bitbucket - We couldn?t log you in
Asked by ahsanalisheikh:

Hi, this is Ahsan,  
I am not able to login into "bitbucket" with my email  
can you please check what's the problem with my account.  

Even I have tried to open on a different browser and on another machine also but it always says

"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."


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

I see that you created a support ticket for this issue as well; your request is being reviewed by my team internally. We will reach out via the support ticket for an update.

Kind regards,  
Theodora

comments: author: ahsanalisheikh
body: Hi [@Theodora Boudale](/t5/user/viewprofilepage/user-id/818086) thank you for the reply.  

Waiting for the resolution.

Kind Regards,  
Ahsan Ali


Tags: bitbucket-cloud

cloud
cannot clone using ssh
Asked by Adarsha Shrestha:

Hey! I am having the same problem when I try to run

```
$ ssh -T git@bitbucket.org
```

I receive:

```
authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled
```


Answers:
author: Erez Maadani
body: Hi [@Adarsha Shrestha](/t5/user/viewprofilepage/user-id/5214548)

The above message actually means that you managed to create an SSH connection using your SSH key from your computer to bitbucket.org so you are in the right direction.

Problems with cloning can vary from wrong urls, missing permissions, misconfiguration of SSH keys on server side and more.

What is the error message that you get when trying to clone?


Tags: bitbucket-cloud

cloud