youngmon/atlassian-qna huggingface dataset:
Lookup Issue
Asked by Kunal Kumar:

How do I select lookup issue as an Action in Jira automation?


Answers:
author: Ash Yadav
body: Hi [@Kunal Kumar](/t5/user/viewprofilepage/user-id/5183825) , welcome to the Atlassian Community!

Can you elaborate a bit more in regards to what you're looking to achieve or maybe share a use case?

The lookup issues action is available in Automation as can be seen below:

![Screenshot 2023-03-30 175708.png](https://community.atlassian.com/t5/image/serverpage/image-id/248836i85889595DF6AB9D3/image-size/large?v=v2&px=999 "Screenshot 2023-03-30 175708.png")

You will however need to use smart-values as mentioned by Bill in the previous answer.

If you need further assistance, let me know.

Kind Regards,

Ash

comments: author: Kunal Kumar
body: I do not see this option in my JIRA automation


author: Ash Yadav
body: Are you sure you're looking at the action instead of the trigger?

Can you please send me a screenshot of your current automation rule?

Kind Regards,

Ash


author: Bill Sheboy
body: Hi [@Kunal Kumar](/t5/user/viewprofilepage/user-id/5183825)

Please look at the documentation for this feature to learn how to use it: <https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--lookupIssues-->

Kind regards,  
Bill

comments: author: Bill Sheboy
body: Are you using Jira Cloud or Server/Data Center?

If you are using Server/Data Center, automation does not support Lookup Issues.

Instead the bulk-handling option is available for the scheduled trigger or for branches: <https://confluence.atlassian.com/automation/run-a-rule-against-issues-in-bulk-993924653.html>


Tags: cloud
Else If Condition
Asked by Kunal Kumar:

How to use the Else if condition, don't seem to get that option in my JIRA automation


Answers:
author: Jimmy Seddon
body: Hi [@Kunal Kumar](/t5/user/viewprofilepage/user-id/5183825)

Welcome to the Community!

You will need to start by adding an If block:

![IfBlock.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/248751iF58ECCB98E2EFB8A/image-dimensions/250x431?v=v2 "IfBlock.JPG")

Next, add an Else block:

![ElseBlock.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/248752i77AB4FDCD68F1425/image-dimensions/251x498?v=v2 "ElseBlock.JPG")

Once you have added the Else block you will have the option to add an Else If in between the two:

![ElseIfBlock.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/248753i99ED6E29AF9F557C/image-dimensions/252x546?v=v2 "ElseIfBlock.JPG")

I hope that helps!

comments: author: Mauricio Heberle
body: I noticed a strange behaviour which I am not sure is intended.

In Global automation, I am trying to edit within a AQL Branch, but the if/else condition wont show up. Only if try to add it before the branch and still, it doenst allow me to write a AQL sentence, only select a field

![Captura de Tela 2023-03-31 a?s 10.50.34.png](https://community.atlassian.com/t5/image/serverpage/image-id/249098i74AD21B74A8EF57E/image-size/large?v=v2&px=999 "Captura de Tela 2023-03-31 a?s 10.50.34.png")

This is in Global Automatiin as you can see. When attempting to write the sentece, I just cant do anything.

![Captura de Tela 2023-03-31 a?s 10.51.22.png](https://community.atlassian.com/t5/image/serverpage/image-id/249100iBEC49CA5D41F1B61/image-size/large?v=v2&px=999 "Captura de Tela 2023-03-31 a?s 10.51.22.png")

When inside the branch, the if/else wont appear. Is this ok or a bug, [@Jimmy Seddon](/t5/user/viewprofilepage/user-id/512822) ?


author: Jimmy Seddon
body: Hey [@Mauricio Heberle](/t5/user/viewprofilepage/user-id/4973359),

I see a number of people have asked about this in the past and they all point to this: <https://jira.atlassian.com/browse/AUTO-67>

It appears it's a known limitation that "Else" logic isn't available from within branches.

Sorry I don't have a better answer for you.


author: Mauricio Heberle
body: Thank you


Tags: cloud
Description field is always empty on transfer
Asked by Philipp Hagen:

We work with Jira Service Management and always copy customer orders to our internal Jira projects, which works without any problems. In the service desk, we want to copy the description field with an automation into a new internal field and the internal description is filled with a template. Filling in the description with our template works, but unfortunately when copying the description from the service desk to the new field, it is always transferred empty


Answers:
author: Philipp Hagen
body: ![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/248665iB4B7AF46A064376D/image-size/large?v=v2&px=999 "image.png")


author: Philipp Hagen
body: ![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/248662iC98BBD08CE9E6CA4/image-size/large?v=v2&px=999 "image.png")![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/248663i76D97F34F2BFA3A9/image-size/large?v=v2&px=999 "image.png")![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/248664i3F450DAECC66BB84/image-size/large?v=v2&px=999 "image.png")
How to utilize OR condition within multiple components
Asked by Kunal Kumar:

I have a reqmt wherein I need to check multiple fields if they are EMPTY upon new issue creation and if yes, then send an email to the reporter. How do I add multiple conditions in the same rule such that they use the OR condition for checking the fields ( email should be sent even if any one of the field amongst the multiple fields is EMPTY) . Currently the rule only seems to take AND conditions and only If all the specified fields are EMPTY , sends and email.


Answers:
author: Bill Sheboy
body: Hi [@Kunal Kumar](/t5/user/viewprofilepage/user-id/5183825) -- Welcome to the Atlassian Community!

First thing, using automation rules requires both learning and experimentation. I encourage doing both to see what can help to solve your needs, and when you get stuck to then post a question to the community.

To get you started on creating your rule, please review this documentation and examples:

* <https://www.atlassian.com/software/jira/guides/expand-jira/automation>
* <https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/>
* <https://www.atlassian.com/software/jira/automation-template-library>

For your specific question, you may try an advanced compare condition, and use the conditional logic to build an expression for this test, using the or() function: <https://support.atlassian.com/cloud-automation/docs/jira-smart-values-conditional-logic/#or>

**Please note**: The or() function only takes two parameters. If you need to test more things you need to chain them together, such as with:

```
{{#if(or(A,or(B,C)))}} At least one thing was true {{/}}
```

Kind regards,  
Bill
"Timeout after 10 minutes" & "Error fetching remote repo 'origin'" errors
Asked by Marko Blagus:

We have migrated Bitbucket from Server to Cloud and now we have integrated Bitbucket Cloud with Jenkins Server.

In pipelines/automatic jobs, sometimes we get:

--no-tags --force --progress -- [git@bitbucket.org:workspace/repo-name.git](mailto:git@bitbucket.org:veroduco/pipeline-library-ducobuild.git) +refs/heads/\*:refs/remotes/origin/\* # timeout=10

ERROR: Timeout after 10 minutes

ERROR: Error fetching remote repo 'origin'

Credentials should be good because when rerunning the pipeline at another time the checkout succeeds.

Also, it happens when some users try to do it manually.

Right now, we only know its' happening on this repository.


Answers:
author: Patrik S
body: Hello [@Marko Blagus](/t5/user/viewprofilepage/user-id/5440617) ,

and welcome to the Community!

I see you have raised an internal support ticket to report this issue and one of my colleagues will be assisting you on that soon.

In order to avoid any confusion that may arise from discussing the same issue in multiple different places, I would suggest focusing the investigation on the support ticket

Once the issue is solved, if you feel comfortable, feel free to share the solution that worked for you in this post so other community users may also try the same solution if they encounter a similar error.

Thank you, [@Marko Blagus](/t5/user/viewprofilepage/user-id/5440617) !

Patrik S

comments: author: Marko Blagus
body: Hello [@Patrik S](/t5/user/viewprofilepage/user-id/4603309)

Sure, lets focus on support ticket.

Thank you.

Best regards,

Marko Blagus


Tags: bitbucket-cloud

cloud
create a dashboard to present the test maturity model integration status summary
Asked by bradoo:

I was required to create a maturity model integration status summary dashboard for a bunch of product features and a series of checklist of maturity model integration.


Answers:
author: Patrik S
body: Hello [@bradoo](/t5/user/viewprofilepage/user-id/5502943) !

This question was posted in Bitbucket's Atlassian Community, where we can assist you with specific questions related to Bitbucket or Pipelines.

That being said, I'm not sure if I completely understand your request, so could you share more details on your specific questions related to Bitbucket, so we can assist you further?

Thank you, [@bradoo](/t5/user/viewprofilepage/user-id/5502943) !

Patrik S


Tags: bitbucket-cloud

cloud
Google Chat Integration Error
Asked by aftabnaveed:

When trying to integrating google chat with Bitbucket thrugh the Bitbucket plugin I get this error

#### Error {#toc-hId-344028808}

Problem installing the app. The app failed to be installed: Error calling installed at URL <https://bitbucket-bot-production.appspot.com/bitbucketinstall>: 403 Client Error: Forbidden for url: <https://bitbucket-bot-production.appspot.com/bitbucketinstall>

What can be going wrong here?


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

thank you for reaching out!

Based on your description I assume you are talking about the [Google Chat app for Bitbucket](https://marketplace.atlassian.com/apps/1232541/google-chat-app-for-bitbucket?hosting=cloud&tab=overview).

That app/integration is developed and maintained by the Google team, and I see in the comments of that app other users facing similar errors as yours. In this case, I would recommend reaching out directly to Google's support as they are the maintainers of that integration.

Google Chat App developers have provided the following email address for support in [their Atlassian Marketplace profile](https://marketplace.atlassian.com/vendors/1215440/google-chat-app-developer) :

* cpe-ti-jira-developer@google.com

Thank you, [@aftabnaveed](/t5/user/viewprofilepage/user-id/145237) !

Patrik S


Tags: bitbucket-cloud

cloud
Can we use bitbucket's browser API (internal api) into our custom code
Asked by mohan yadav:

Hi,

I am using bitbucket rest API but there are some functionality which does not exist in rest API 2.0. So for example I want to know if there will be any conflicts before creating PR.  
But on bitbucket UI we can see while/before creating PR for any conflicts.

So can I use "<https://bitbucket.org/!api/internal/repositories/>.............." as below

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


Answers:
author: Patrik S
body: Hello [@mohan yadav](/t5/user/viewprofilepage/user-id/5418092) ,

I've recently responded to your [previous post](https://community.atlassian.com/t5/Bitbucket-questions/Re-Need-rest-API-endpoint-to-detect-pull-request-merge-c/qaq-p/2707104/comment-id/104519#M104519) with a suggestion to use the [Compare two commits diffstat endpoin](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-commits/#api-repositories-workspace-repo-slug-diffstat-spec-get)t to get the conflict status of the files comparing two branches.

Although it's possible to execute manual requests to internal API endpoints, we do not recommend relying on them. Unlike the public endpoints, they may change at any time without prior notice.

Thank you, [@mohan yadav](/t5/user/viewprofilepage/user-id/5418092) !

Patrik S


Tags: bitbucket-cloud

cloud
Create a pull request does not set Author as a PR owner
Asked by mohan yadav:

Hi   
I am using oauth2 with client key and secret and want to create PR with author (some other user)  
<https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-repositories-workspace-repo-slug-pullrequests-post>  

This end point creates PR and set PR owner/author based on my authenticated account username but I want PR owner/Author that I set in "author" parameter.

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


Answers:
author: Patrik S
body: Hey [@mohan yadav](/t5/user/viewprofilepage/user-id/5418092) ,

thank you for reaching out!

As stated in the [Create a pull request endpoint](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-pullrequests/#api-repositories-workspace-repo-slug-pullrequests-post) documentation you have linked, the author of the pull request created by using that endpoint will be the authenticated user or the request :
> Creates a new pull request where the destination repository is this repository and the author is the authenticated user.

So, it will select the author solely based on the authentication credentials and not on the content of the payload of the request.

Could you share with us more details about your use case to create a pull request on another user's behalf?

Thank you, [@mohan yadav](/t5/user/viewprofilepage/user-id/5418092) !

Patrik S

comments: author: mohan yadav
body: [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) we built a system where user adds their selected remote git/bitbucket files from a feature branches into build( user can add multiples feature branch items/files into a single build) and our system check for PR conflicts, approver and merge the PR) an and finally all PR checks our system deploy added file into target DB.  

So we want PR owner who added specific file so that they can receive email about PR comment, approval, denied etc action .   

So as per API parameter it should save Author details as a owner of PR.


author: Patrik S
body: Hello [@mohan yadav](/t5/user/viewprofilepage/user-id/5418092) ,

thank you very much for sharing your use case with us.

I went ahead and created a feature request with our development team for that API endpoint to consider the Author from the payload, instead of just the authenticated user:

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

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, [@mohan yadav](/t5/user/viewprofilepage/user-id/5418092) .

Patrik S


Tags: bitbucket-cloud

cloud

rest-api
Need rest API endpoint to detect pull request merge conflicts before creating pull request
Asked by mohan yadav:

Need rest API endpoint to detect pull request merge conflicts before creating pull request as below , so if we are going to take bitbucket UI automatically detect conflicts file before creation PR.   

Please let me know which endpoint should I use to detect conflicts before creating PR.  

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


Answers:
author: Patrik S
body: Hey [@mohan yadav](/t5/user/viewprofilepage/user-id/5418092) ,

thank you for reaching out to Community!

You should be able to "preview" a file conflict in a merge by using the diffstat endpoint and comparing the two branches of the pull request:

* [Compare two commit diff stats](https://developer.atlassian.com/cloud/bitbucket/rest/api-group-commits/#api-repositories-workspace-repo-slug-diffstat-spec-get)

In the path of the URL you can either provide the commits you wish to compare, or the branch names.

For the conflicted files, the output will show the field *"status": "merge conflict."*

You can find more details and examples in this other similar question here in Community:

* [Bitbucket Cloud - Check if a pull request has conflicts](https://community.atlassian.com/t5/Bitbucket-questions/Re-Bitbucket-Cloud-Check-if-a-pull-request-has-conflicts/qaq-p/2362500/comment-id/93815#M93815)

Thank you, [@mohan yadav](/t5/user/viewprofilepage/user-id/5418092) !

Patrik S  


Tags: bitbucket-cloud

cloud

rest
Send an email to all Bitbucket users
Asked by Blake Duffey:

Is there a way to send email to all Bitbucket users (ala system maintenance, etc.?)

Are there other channels for this kind of information?


Answers:
author: Laurie Sciutti
body: Hey [@Blake Duffey](/t5/user/viewprofilepage/user-id/5251861) \~ a site-wide banner might be a better approach: <https://confluence.atlassian.com/bitbucketserver/add-a-system-wide-announcement-banner-973479805.html>

comments: author: Blake Duffey
body: Thanks much - will try this and see the reaction.


Tags: bitbucket-data-center

bitbucket-server

data-center

server
Unable to run 'npm run build' in docker using craco
Asked by Prithvi Sathiya:

Im trying to build a simple react based docker image in the bitbucket pipelines. Here is snippet of the yaml file:

```
image: python:3.10
definitions:
- step: &BuildPush
    name: Build
    size: 2x
    services:
      - docker
    script:
      - pip install --upgrade pip && pip install docker-compose
      - export DOCKER_BUILDKIT=1
      - cd frontend && docker build -t espace.jfrog.io/mcs/mcs-react:latest .

```

The same \`docker build\` command works in my local laptop. But it seems to hang (and eventually fail) when running on pipelines, during the \`npm run build\` step within the Dockerfile, due to some memory error. However, when running locally, I can see it doesn't use too much memory, and i even ran the pipeline with "2x" size. Here is the error after about 10 min of runtime:

#13 677.5 The build failed because the process exited too early.  
230
#13 677.5 This probably means the system ran out of memory or someone called  
231
#13 677.5 `kill -9` on the process.  
232
#13 677.5  
233
#13 ERROR: process "/bin/sh -c npm run build" did not complete successfully: exit code: 1  
234
------  
235
> [builder 7/7] RUN npm run build:  
236
------  
237
process "/bin/sh -c npm run build" did not complete successfully: exit code: 1

Any idea what is causing this?


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

I suggest adding the following docker service definition to give more memory to the docker service container. Using 2x only without explicitly increasing the docker container memory will not work as the default given is only 1 GB.

```
definitions:  services:    docker:      memory: 2147

<Rest of your YAML>
```

We have documentation that touches explicitly on the docker memory limit that I highly suggest you check out at:

[Docker memory limit](https://support.atlassian.com/bitbucket-cloud/docs/run-docker-commands-in-bitbucket-pipelines/#Docker-memory-limits)

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
repo size
Asked by Srikanth Komanduru:

From Repository settings ---\>Retrive Size i see 1.27GB and when i pull the code and do du -sh i get another number which is correct. could you please help me and can you help me from where Retrive size is getting.


Answers:
author: Patrik S
body: Hello [@Srikanth Komanduru](/t5/user/viewprofilepage/user-id/5502597) ,

and welcome to the community!

To compare the size of your local clone with Bitbucket you can use the following command instead :

```
git count-objects -vH
```

This will output the size pack, which is the compressed version of the repository that is stored by Git.

However, you may still see differences when comparing the local repo size with the remote size, and they are expected as Bitbucket also has to store additional metadata related to your repository.

If you see a big discrepancy in the size, there are some scenarios that can explain that:

* **Large files pushed to the repo** : if you have pushed large files to the repo in the past, and have now removed them from the history using git reset or a tool like BFG, it may be the case that the garbage collection that happens from time to time hasn't yet been run in your repo. In this case, we from support can help trigger the garbage collection manually if you share the masked *workspace/repository_name* with us
* **Large files that were part of pull requests** : if after the GC the repository size does not reduce, it may be the case that commits where those large files were originally pushed were part of pull request, which protects these commits from being removed by GC (learn more on [Repository size remains the same after deleting large files and running garbage collection (GC) on the remote)](https://confluence.atlassian.com/bbkb/repository-size-remains-the-same-after-deleting-large-files-and-running-garbage-collection-gc-on-the-remote-1189791619.html). In such a scenario, the solution would be to delete the pull request, so the commits in question could be garbage collected.

I hope that this information helps. Let me know in case you have any questions.

Patrik S


Tags: bitbucket-cloud

cloud
Can't integrate with the Slack
Asked by Kemal:

When I try to follow the documentation, I stuck at the very first step which is "go to Settings\> Slack Settings"  

my slack settings for the bitbucket cloud just shows a load animation then "Oops, the app failed to load."


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

Can you try to install the integration on a different web browser and incognito windows just to make sure that it's not a browser or browser add-on issue that is preventing the integration installation?

Let me know how it goes.

Regards,  
Syahrul

comments: author: Kemal
body: Hi Syahrul!  

I've did what you suggested, and the result is same.  

Regards,  
Kemal


author: Syahrul
body: Hi Kemal,

Thanks for the update. I am still inclined to focus on the local environment since I can't reproduce the issue. Have you tried using a different network, such as a mobile hotspot or a different machine, to see if the issue is reproducible?

Let me know how it goes. I'll help you raise a support ticket if it's still happening.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud