youngmon/atlassian-qna huggingface dataset:
Email FWD - set assignee to original sender
Asked by l.clipsom:

We have a ticket creation email staff can email directly, ticket@\[domain\].com, this automatically creates a ticket and assigns the sender as the assignee, this works great.   
We still have lots of emails coming to our generic mailbox asking for support which we currently forward to this ticket@\[domain\].com email address, though it sets us as the assignee and we have to manually go in and change this  

I know it's possible from experience in other ticketing platforms but is there any way to have it detect forwarded emails and set the assignee as the original email creator? Even if it's through automation.   
I may not have been looking hard enough but I couldn't see anything about his searching the community or feature requests


Answers:
author: Anusha A
body: Hi Team,

Welcome to the Atlassian Community support and Thanks for your question!

I understand that you would like the sender of an email to be set as the assignee of the created issue in Jira Service Management Cloud.

Here's an example automation rule that sets the sender of an email as the assignee, and moves the reporter field to 'anonymous':

![Screenshot 2024-06-03 at 4.00.49?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/327496iB058539E15D3F333/image-size/large?v=v2&px=999 "Screenshot 2024-06-03 at 4.00.49?PM.png")![Screenshot 2024-06-03 at 4.01.08?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/327497i0E18CE3379F71361/image-size/large?v=v2&px=999 "Screenshot 2024-06-03 at 4.01.08?PM.png")![Screenshot 2024-06-03 at 4.16.31?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/327495i2ED75A1345DA755D/image-size/large?v=v2&px=999 "Screenshot 2024-06-03 at 4.16.31?PM.png")  
Hope that helps.  

Regards,

Anusha A


Tags: cloud

jira-service-management

jira-service-management-cloud
automation to identify duplicates based on multiple fields
Asked by Simon Morris:

I want to have an automation process to identify any duplicate submissions within our Service Management project, ideally based on three key fields (however 2 would be the minimum), these being,

\* (1) is the unique file reference (ClaimID - Number Field)

\* (2) Postcode - (Postcode field)

\* (3) Escalation Type - (This is a dropdown list to give a reason for the ticket submission)

I cant seem to locate where/or how to refer to the above as none are visible when I use any of the searches or JQL, - Apologies in advance, as I am learning, managing and processing all on the fly!!

<br />

So any help would be gratefully received and thanks in advance!!


Answers:
author: Trudy Claspill
body: Hello [@Simon Morris](/t5/user/viewprofilepage/user-id/5508521)

Welcome to the Atlassian community.

Are those the field names that are shown to the end user in the customer portal form they fill out? Or are those the field names you see when you are looking at the issue details view as an Agent within Jira Service Management?

Can you show us screen images that show how you are trying to find those fields when you are trying to write JQL or create a search?


Tags: cloud

jira-service-management

jira-service-management-cloud
Agent can only see dropdown list of queues, not the queue column
Asked by John Kalla:

One of our agents can only view one queue at a time using a dropdown list. He can't see the queue column with all the queues.

As far as I can tell, he has the same permissions and settings as I do. We're both admins and agents.

How can he see the queue column?


Answers:
author: Mihai Schwarz
body: Hi [@John Kalla](/t5/user/viewprofilepage/user-id/1224246) ,

Tell your agent to expand the list and click on "Keep Menu Open".

comments: author: John Kalla
body: Ah, thank you! I don't know why I didn't see that earlier...


Tags: jira-service-desk-data-center

jira-service-management

jira-service-management-data-center

queue
Virtual Agent Web Request
Asked by Neal Painter:

Hi Everyone.

I am looking into the web requests that the virtual agent can send as part of an intent flow and I'm not sure what options are available to use in the conditions section.

Based on the example preset condition I understand how to set it up for the http response status, but looking at the documentation it seems like it is possible to have different flows depending on the body of the response.

Does anyone know how to set that up or how that would work?

Thanks :)


Answers:
author: Samir Patel
body: Hi, I have same question. Did you find any documentation on conditions section? Thanks

comments: author: Neal Painter
body: No. annoyingly I have have had to give up on that for the moment :(


Tags: cloud

jira-service-management

jira-service-management-cloud

virtual-agent
status dosnt shown in portal
Asked by Kamil Askerov:

Salam, I have problem with statuses in portal. Have 2 projects (Jira Service Management types). In 1 of this project customers can see the statuses and in other one customers - cant. I see all permisssion - same setting in both projects. Also in workflow "Show transition in the customer portal" check box are checked. What can be the problem?

P. S. Different thing that this 2 projects have is 1 automation for atachment is differnt in project , where the statuses are not shown.


Answers:
author: Mihai Schwarz
body: Hi [@Kamil Askerov](/t5/user/viewprofilepage/user-id/5483207) ,

Make sure that in the Project Settings -\> Requests Types and from there, edit a request type (edit fields) and on the top bar you have Fields and Workflow Statuses. Make sure each status is mapped.

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

Please make sure you vote this answer as accepted if this solved your issue.

comments: author: Kamil Askerov
body: [@Mihai Schwarz](/t5/user/viewprofilepage/user-id/853676) hi. Thank you for your response. All statuses are mapped. ![statuses.png](https://community.atlassian.com/t5/image/serverpage/image-id/326676iC75AF7D0441FEF9B/image-size/large?v=v2&px=999 "statuses.png")


author: Mihai Schwarz
body: Then make sure that on both projects you have the statuses mapped.

Additionally make sure that they are using the same workflow or the mapped issue type on the request type uses the right workflow.


author: Kamil Askerov
body: [@Mihai Schwarz](/t5/user/viewprofilepage/user-id/853676) all same.


author: Mihai Schwarz
body: [@Kamil Askerov](/t5/user/viewprofilepage/user-id/5483207) - make sure that you've raised a request using the Customer Portal (with a client account) on both projects, transition those tickets to the same status using the Agent View and check using the customer account if you can see the status, if not, check the configuration on both projects starting with the Request Type, fields, etc.


author: Kamil Askerov
body: [@Mihai Schwarz](/t5/user/viewprofilepage/user-id/853676) from the other side when changing statuses - automatically automation work. (From Jira side changed automatically JSM side) But not shown in portal the statuses. Don't know what happen.


author: Kamil Askerov
body: [@Mihai Schwarz](/t5/user/viewprofilepage/user-id/853676) I also create customer and login with that account and not see the statuses, but see the statuses in other projects.


author: Kamil Askerov
body: I cant disable that automation now because there are working now. Please give me some idea how to solve this problem, atlassian community.


Tags: cloud

jira-service-management

jira-service-management-cloud
Stage option in custom branch
Asked by Vadym Polietaiev:

In structure with custom where possible to use -stage option (multi-step deployment)?  

pipelines:  
custom:  
dev:  
- step:  
\<\<: \*save-env-variables  
deployment: development  
- step: \*restart-api  
....  
branches:  
dev:  
- step: \*build-api  
- parallel:  
- step: \*deploy-api  
- step: \*deploy-services  

Also how to change VS Code bitbucket scheme to correctly work with "stage option" which in beta? Or maybe exist shema for beta version?  


Answers:
author: Patrik S
body: Hello [@Vadym Polietaiev](/t5/user/viewprofilepage/user-id/4673599) !

And thanks for reaching out to Atlassian Community!

It's definitely possible to use stages in custom-triggered branches to have multi-step deployments.

From your example YML file, I see you are also leveraging YML anchors to define the steps, so let me share with you an example using a custom-triggered pipeline containing a normal step, and a deployment stage using step anchors :

```
definitions:
  steps:
    - step: &deploy
        name: Deploy
        script:
          - echo "Deploying"
    - step: &restart-services
        name: Restart services
        script:
          - echo "Restarting services"

pipelines:
  custom:
    dev:
      - step:
          name: Build and test
          script:
            - echo "Building and testing"
      - stage:
          name: Deploy to test environment
          deployment: test
          steps:
            - step: *deploy
            - step: *restart-services
```

You can find additional examples of using stages in our official documentation below :

* [Use stages for deployments \| Bitbucket Cloud](https://support.atlassian.com/bitbucket-cloud/docs/stage-options/#Use-Stages-for-deployments)

Also, while creating/editing your YML file, if you would like to validate if the syntax is correct before pushing it to the repository, I recommend using the [Bitbucket Pipelines validator tool](https://bitbucket-pipelines.atlassian.io/validator), so if there is any syntax error in the YML file you can catch it beforehand.

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

Thank you, [@Vadym Polietaiev](/t5/user/viewprofilepage/user-id/4673599) !

Patrik S


Tags: bitbucket-cloud

cloud
re-cloning same repository after deleting all original solution files.
Asked by mcbw3:

I deleted all my local files for a solution that was cloned. I tried to re-clone the same repository afterwards but keep getting a Git failed message. I re-installed Git, but get the same error message.


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

We would need some additional info in order to be able to help you:

* Are you using Git from a terminal application or from a Git GUI client?
* If it is a Git GUI client, which one is it?
* What is the full output of the clone command? (Please make sure to sanitize username, workspace-id, and repo name if they show in the output)
* What output do you get if you execute the command **git --version**?

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Link Bitbucket Server to a JIRA Server and a JIRA Cloud (two JIRAs at same time)
Asked by Federico Soria:

As we are in a migration process by steps in some time will have two JIRAs working, for that we want to know if it is posible link from Bitbucket Server to two JIRAs at same time.

Bitbucket Server \< -- \> JIRA Server \& JIRA Cloud  


Answers:
author: Robert Wen_ReleaseTEAM_
body: Hello [@Federico Soria](/t5/user/viewprofilepage/user-id/5330649) ! Welcome to the Atlassian Community!

In the case of your Bitbucket Server to Jira Cloud, your Jira Cloud product needs to be on the Premium plan for you to create Application Tunnels.


Tags: bitbucket-server

server
Stuck with "we couldn't log you in"
Asked by J83:

Tried several times. No way to log in - may it be possible that my account (J83) is deactivated?

Kind regards,

Jacob


Answers:
author: Syahrul
body: G'day, [@J83](/t5/user/viewprofilepage/user-id/5330529)

Welcome to the community!

It looks like your Bitbucket account was inactive, so I went ahead and reactivated your account. Could you try to log in again and let me know how it goes?

Regards,  
Syahrul


author: J83
body: Looks pretty much like this Problem:

<https://community.atlassian.com/t5/Bitbucket-questions/Cannot-log-in-stuck-at-quot-we-couldn-t-log-you-in-quot/qaq-p/2290789>

Maybe some Atlasian Member may reactivate it? [@Patrik S](/t5/user/viewprofilepage/user-id/4603309)


Tags: bitbucket-cloud

cloud
How to pass big amount of deployment variables across steps
Asked by Vadym Polietaiev:

I have big amount of variable for each deployment (more then 200 for each), how to pass all deployment variable through steps correctly?  

option with export each variable into artifact is not ok when you have good amount of variables.  
(also it is not very good to remember that besides of add to bitbucket deployment page new variable, you need to add export of it in to artifact in the pipline file).  

I try to use printenv output on deployment step into artifact (for future source of this artifact file in needed step), but some variable have space, some could be array.   
So it is not very confident and secure way (with parsing artifact file to correct all this moments before source).  

Exist some correct way to do it?  


Answers:
author: Theodora Boudale
body: Hi Vadym,

You could use the **stage** option in your yml file to group steps, and then specify a deployment environment for the stage.

For example, if you have a pipeline like the following, the deployment variables of **staging** will be available to both the second and the third step of the pipeline.

```
pipelines:
  default:
    - step:
        name: Build and test
        script:
          - sh ./build-app.sh
    - stage:
        name: Deploy to staging
        deployment: staging
        steps:
          - step:
              name: Deploy
              script:
                - sh ./deploy-app.sh
          - step: 
              name: Run end-to-end tests
              script:
                - sh ./run-e2e-tests.sh
```

You can read more about stages here:

* <https://support.atlassian.com/bitbucket-cloud/docs/stage-options/>

Does this work for you? Please feel free to reach out if you have any questions.

Kind regards,  
Theodora

comments: author: Vadym Polietaiev
body: yes, I am now trying to somehow use this for this case, but limitation on parallel step make this very problematic.


author: Theodora Boudale
body: Hi Vadym,

Parallel steps are indeed not supported for stages yet. We have this feature request in our issue tracker, you can add your vote and feedback to it to express your interest:

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

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Cannot login, my gmail account has been closed!
Asked by bvidmar:

I used my organization gmail account to log in but now that I am retired my gmail account has been closed. Please help me to log in!


Answers:
author: Mark C
body: Hi [@bvidmar](/t5/user/viewprofilepage/user-id/3640399)  

Thank you for reaching out to the community.  

Unfortunately, you will need to reach out to your previous organization admins to either reactivate the email so that you can log in or reach out to us by raising a support ticket at [support.atlassian.com](https://support.atlassian.com/contact/#/) by asking us to change your email address.  

You can check our knowledge-based article on [How to update Bitbucket Cloud email address.](https://confluence.atlassian.com/bbkb/how-to-update-bitbucket-cloud-email-address-1155477708.html)  

Regards,  
Mark C


Tags: bitbucket-cloud

cloud
Unable to get UUID for a specific user
Asked by Sruthi_Nadimpally:

Hi team,   

I'm trying to automate pull request creation (through jenkins job) using curl command but unable to retrieve the UUID of a specific user.   

I've tried multiple queries (which include) to get the UUID but none seems to worK:  

\[jenkins@linuxslave-jenkins demandware\]$ curl -X GET --user "REDACTED:xxxxxM" <https://api.bitbucket.org/2.0/teams?role=members>  
{"type": "error", "error": {"message": "Resource not found", "detail": "There is no API hosted at this URL.\\n\\nFor information about our API's, please refer to the documentation  
\[jenkins@linuxslave-jenkins demandware\]$ curl -X GET -H "Content-Type: application/json" -u "REDACTED:9Fxxxxx" "<https://api.bitbucket.org/2.0/users/REDACTED>"  
{"type": "error", "error": {"message": "REDACTED"}}\[jenkins@linuxslave-jenkins demandware\]$  
\[jenkins@linuxslave-jenkins demandware\]$  
\[jenkins@linuxslave-jenkins demandware\]$ curl -X GET --user "REDACTED:xxxxx" <https://api.bitbucket.org/2.0/teams?role=member>  
{"type": "error", "error": {"message": "Resource not found", "detail": "There is no API hosted at this URL.\\n\\nFor information about our API's, please refer to the documentation at: <https://developer.atlassian.com/bitbucket/api/2/reference/>"}}\[jenkins@linuxslave-jenkins demandware\]$  

<br />

++**Can you please help me in providing the right query to get the UUID of users in a workspace?**++


Answers:
author: Caterina Curti
body: Hi [@Sruthi_Nadimpally](/t5/user/viewprofilepage/user-id/5129242),  

I recently wrote this guide: <https://community.atlassian.com/t5/Bitbucket-articles/Retrieve-the-Atlassian-Account-ID-AAID-in-bitbucket-org/ba-p/2471787>

When working with the Bitbucket REST APIs, I would recommend using the Atlassian Account IDs (AAID) instead of UUIDs.

Cheers,  
Caterina


author: Ben
body: Hi Sruthi,

The [teams endpoint has been deprecated](https://developer.atlassian.com/cloud/bitbucket/bitbucket-api-teams-deprecation/) in favor of the [workspaces endpoint](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-workspaces/#api-workspaces-workspace-members-get), therefore any calls to the teams API will fail as it is non-existent.

The correct command would be as follows:

```
curl -X GET --user username:AppPassword https://api.bitbucket.org/2.0/workspaces/workspaceID/members
```

**NOTE:** You will need to replace username/AppPassword/workspaceID with actual values.

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Execute a GC
Asked by H?ctor Fenoll Malonda:

Hi

Please run garbage collection on our repository (sa\*\*\*\*\*\*\*\*23)

Could you execute it at 00:00 GMT?

I'm opening this request because since I can't create a support case for them to execute it.

Thanks, best regards


Answers:
author: Ben
body: Hi H?ctor,

I have executed a gc and this has reduced the repo size down to 535mb.

I would suggest executing the following command to identify large files in your repository and then either [remove these or convert these to GIT LFS](https://support.atlassian.com/bitbucket-cloud/docs/use-bfg-to-migrate-a-repo-to-git-lfs/) to store them outside of the repository:

```
git rev-list --objects --all \
| git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' \
| awk '/^blob/ {print substr($0,6)}' \
| sort -r --numeric-sort --key=2 \
| numfmt --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest
```

The reason for this is that any large binary files in your repository will have these files stored in full with each subsequent commit and can quickly inflate repository size.

Please let me know if further assistance is required.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: atl-rvw

bitbucket-cloud

cloud
Pipe aws-eks-kubectl-run fails when namespace set as part of the config
Asked by Vish:

Current configuration that i use for deployment  

```
- pipe: atlassian/aws-eks-kubectl-run:2.4.0
  variables:
  CLUSTER_NAME: $CLUSTER_NAME
  KUBECTL_COMMAND: 'apply'
  KUBECTL_APPLY_ARGS: '-k'
  RESOURCE_PATH: $DEPLOYMENT_PATH
```

The DEPLOYMENT_PATH points to an overlay kustomization configuration that includes namespace.yml file defining the namespace to be applied as part of this config.  

```
namespace/<namespaceName> created (server dry run)
Error from server (NotFound): error when creating "<$DEPLOYMENT_PATH>": namespaces "<namespaceName>" not found
Error from server (NotFound): error when creating "<$DEPLOYMENT_PATH>": namespaces "<namespaceName>" not found
Error from server (NotFound): error when creating "<$DEPLOYMENT_PATH>": namespaces "<namespaceName>" not found
? spec file validation failed.
```

I need a way to apply the changes along with creation of namespace thru the pipe.

P.S: I can replicate the issue in kubectl when i pass \`--dry-run=server\` flag.


Answers:
author: Igor Stoyanov
body: [@Vish](/t5/user/viewprofilepage/user-id/5330180) hi. We released a [new version 2.5.0 of the aws-eks-kubectl-run pipe](https://bitbucket.org/atlassian/aws-eks-kubectl-run/src/2.5.0/), which now supports disable validation and pre-execution script features.

```
  - pipe: atlassian/aws-eks-kubectl-run:2.5.0    variables:      CLUSTER_NAME: 'my-kube-cluster'      KUBECTL_COMMAND: 'apply'      RESOURCE_PATH: 'nginx.yml'      DISABLE_VALIDATION: 'true'
```

```
  - echo 'script logic' > .my-script.sh  - chmod 005 my-script.sh  - pipe: atlassian/aws-eks-kubectl-run:2.5.0    variables:      CLUSTER_NAME: 'my-kube-cluster'      KUBECTL_COMMAND: 'apply'      RESOURCE_PATH: 'nginx.yml'      PRE_EXECUTION_SCRIPT: '.my-script.sh'
```

Regards, Igor

comments: author: Vish
body: That is awesome!. Thank you for this quick turn around.


author: Igor Stoyanov
body: [@Vish](https://community.atlassian.com/t5/user/viewprofilepage/user-id/5330180) hi. According to the question you provided there is the response for your case with using DISABLE_VALIDATION variable:

```
script:  - pipe: atlassian/kubectl-run:3.4.0    variables:      KUBE_CONFIG: $KUBE_CONFIG      KUBECTL_COMMAND: 'apply'      RESOURCE_PATH: 'nginx.yml'      DISABLE_VALIDATION: 'true'
```

Regards, Igor

comments: author: Vish
body: Hey [@Igor Stoyanov](/t5/user/viewprofilepage/user-id/4550492) , That's available \`kubectl-run\` pipe but don't see that in any documentation for \`aws-eks-kubectl-run\` latest version.


author: Igor Stoyanov
body: [@Vish](/t5/user/viewprofilepage/user-id/5330180) hi. Thanks for your remark. We will try to implement the same idea in this pipe and notify you when new version will become available.  

Regards, Igor


author: Vish
body: Similar issue with different pipe is captured [here](http://?https://community.atlassian.com/t5/Bitbucket-questions/Atlassian-kubectl-run-by-default-runs-with-dry-run-enabled/qaq-p/2204607).


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
git log not showing all commits when running from pipeline
Asked by Maoz zadok:

hello,

In my case \`release-1.0.2\` is my first release, when running the \`git log main release-1.0.2.. --all --no-merges --decorate --pretty="format:%D%n - %s"\` command from my PC, I get the entire log, and when running from the pipeline I get an error

error:

+ git log main release-1.0.2.. --all --no-merges --decorate --pretty="format:%D%n - %s" > changelog.txt  
2
fatal: ambiguous argument 'release-1.0.2..': unknown revision or path not in the working tree.  
3
Use '--' to separate paths from revisions, like this:  
4
'git <command> [<revision>...] -- [<file>...]'


Answers:
author: Theodora Boudale
body: Hi Maoz,

When a Pipelines build runs, the behavior of the git clone command is determined by the type of pipeline and the way it was triggered. For example, for a branch pipeline that is triggered automatically only that branch is cloned with a default depth of 50. It is possible to specify full depth for a step and then check out another branch if needed:

* <https://support.atlassian.com/bitbucket-cloud/docs/git-clone-behavior/#Depth>

I can give you advice specific to your use case if you let me know the following:

* Is release-1.0.2 the name of a branch or a tag in this repo? If it is a tag, does it exist on a commit of the main branch?
* Does this pipeline run on a branch definition, on a tag definition, on a pull requests definition, on a default definition, or a custom definition? (reference: <https://support.atlassian.com/bitbucket-cloud/docs/pipeline-start-conditions/>)

Kind regards,  
Theodora

comments: author: Maoz zadok
body: thanks so much for your response, release-1.0.2 is a tag on a commit from the main branch.

The pipeline runs on a branch definition (main).

    pipelines:
     branches:
       main: .....

In my case adding \``depth: full`\` solved the issue.

    clone:  depth: full


author: Theodora Boudale
body: That's good to hear Maoz, thank you for the update. Please feel free to reach out if you ever need anything else!


Tags: bitbucket-cloud

cloud