youngmon/atlassian-qna huggingface dataset:
Resolution Marked 'Done' issue
Asked by shivani shirguppi:

![Screenshot 2024-03-27 105351.png](https://community.atlassian.com/t5/image/serverpage/image-id/314727i2C3908F1EBB34B8F/image-size/large?v=v2&px=999 "Screenshot 2024-03-27 105351.png")After changing the status to 'Page go live' the resolution is being marked as 'Done'. But I don' want it to be as 'Done' because there is one more status after 'Done' i.e., 'Published' there it should be marked as 'Done'. How this can be resolved?![Screenshot 2024-03-27 105351.png](https://community.atlassian.com/t5/image/serverpage/image-id/314726iBEF66D6C95079033/image-size/large?v=v2&px=999 "Screenshot 2024-03-27 105351.png")


Answers:
author: Kishan Sharma
body: Hi [@shivani shirguppi](/t5/user/viewprofilepage/user-id/5241115)

There might be a post function configured in your workflows transition to update Resolution field. You will have to remove the post function from the transition being used to move to "Page go live" status and add it to the transition being used to move to "Published" status.

comments: author: shivani shirguppi
body: Thanks [@Kishan Sharma](/t5/user/viewprofilepage/user-id/554991)


Tags: cloud

jira-service-management

jira-service-management-cloud
Canned response export
Asked by Sampath:

Team

Please share the steps how to export canned response in jira server environment


Answers:
author: Asha Goyal
body: Hello [@Sampath](/t5/user/viewprofilepage/user-id/3886406)

Kindly refer below link for support of Canned respose.

<https://appfire.atlassian.net/servicedesk/customer/portal/11/user/login?destination=portal%2F11>

Thanks


author: Kishan Sharma
body: Hi [@Sampath](/t5/user/viewprofilepage/user-id/3886406)

Natively this functionality is not available at this time. There's a suggestion raised with Atlassian - [Enhancement to Canned Response Management - Export or Manage/View All Option](https://jira.atlassian.com/browse/JSDSERVER-6605)

I would suggest you to vote for it and watch it for further updates. However, one user was able to export the canned responses via REST API, you can find more details in the comment on the suggested link I previously shared.


Tags: data-center

jira-service-management

jira-service-management-data-center
How to get reporter email using REST API
Asked by Marcelo Mella:

I have a Service Desk configured to receive tickets from 2 different companies  
acmecorp.com and acmeinc.com. They have different SLA.  
I need to differentiate users from one company and the other, but i can't access email information to see the domain that the user belongs.  
Any workaround?


Answers:
author: Kseniia Trushnikova
body: Hi [@Marcelo Mella](/t5/user/viewprofilepage/user-id/5379658),

Try this:

```
https://yoursite.atlassian.net/rest/api/3/issue/<ISSUEKEY-12345>?fields=reporter
```

This request will return the emailAddress attribute as well as other reporter's properties: <https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-get>

comments: author: Marcelo Mella
body: Thanks for the suggestion Kseniia, but the response doesn't include emailAddress

```
{
"expand":"renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations",
"id":"10000",
"self":"xxx",
"key":"xxx",
"fields":{
"reporter":{
"self":"xxx",
"accountId":"xxx",
"avatarUrls":{
"48x48":"xxx.png",
"24x24":"xxx.png",
"16x16":"xxx.png",
"32x32":"xxx.png"
},
"displayName":"Marcelo Mella",
"active":true,
"timeZone":"America/Santiago",
"accountType":"atlassian"
}
}
```


author: Kseniia Trushnikova
body: [@Marcelo Mella](/t5/user/viewprofilepage/user-id/5379658), sorry for misleading you. I checked this API request and got my email back:

```
{  "expand": "renderedFields,names,schema,operations,editmeta,changelog,versionedRepresentations",  "id": "10000",  "self": "https://xxx.atlassian.net/rest/api/latest/issue/10000",  "key": "SUP-1",  "fields": {    "reporter": {      "self": " ",      "accountId": " ",      "emailAddress": " ",      "avatarUrls": {        "48x48": " ",        "24x24": " ",        "16x16": " ",        "32x32": " "      },      "displayName": "Kseniia Trushnikova",      "active": true,      "timeZone": " ",      "accountType": "atlassian"    }  }}
```

It appears that my Jira general configuration has the parameter **User email visibility** set to 'Show to logged in users only' which allows me to retrieve email addresses via the API.

While I was looking for information on this issue, I came across the article that you might find useful: <https://confluence.atlassian.com/jirakb/how-to-display-the-email-address-of-the-reporter-on-a-jira-issue-1188416840.html>. It describes how to get reporter email address with Automation. Will it work for you?


Tags: cloud

jira-service-management

jira-service-management-cloud
Infinite loading when creating a pipeline
Asked by Emilie Duchesne:

Hello,

We are trying to create a pipeline in one of our projects but when I commit the .yml it loads endlessly without ever succeeding. The script works in another project and I don't get any error message.

Do you have a suggestion?

![Capture.PNG](/t5/image/serverpage/image-id/249810iE57E535DA9AA894B/image-size/large?v=v2&px=999 "Capture.PNG")


Answers:
author: Riley Venable
body: 1. Check if the pipeline is enabled for the specific project. Make sure to go to your repository settings, then navigate to the Pipelines section, and finally, click on "Settings" to enable pipelines.   

2. Check the script in your bitbucket-pipelines.yml file. Make sure that the script is correct and that all of the values are set up properly. You can copy and paste the script from a working project if you need to.   

3. Check the predefined variables. You can either fill in the variable values in-line or select them from the predefined variables. Make sure to check if the values are properly set up.   

4. Run your build again. You can try running your build again to see if the issue has been resolved. If none of these steps work, try reaching out to Atlassian support for further assistance.

comments: author: Emilie Duchesne
body: I finally found my problem. In my project I have to add a ticket to the comment. As I didn't find out how to edit the comment myself when I commit with the pipeline I had to disable the option.


Tags: bitbucket-cloud

cloud
Acceso a los datos del repositorio l?mite de solicitudes autenticadas
Asked by jpleteli:

Acceso a los datos del repositorio se puede ampliar, a m?s de 1000?

Que se debe hacer para poder para aumentar el l?mite de solicitudes autenticadas?


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

I believe that you referring to the rate limits listed on the page below, is that correct?

* <https://support.atlassian.com/bitbucket-cloud/docs/api-request-limits/>

If so, I'm afraid there is no way to increase these limits. Authenticated calls are measured against the user ID of the user that is used for authentication. If you are using access tokens, the rate limit is applicable per token.

In order not to hit these limits:

* you can make fewer requests per hour
* if you are running the calls from a script, you could split the calls to multiple users, or split them to multiple access tokens, so that each user or each token makes less than 1000 requests per hour

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
new runner doesnt want to start
Asked by Nieznaj, Piotr:

Hello y'all,

Iam running a bitbucket runner in a kubernetes cluster.

It has been working fine until I needed to re-apply the job today.

When starting it up, I get this error:  
A?=?  
\[bb-runner-j4b5t\]\[runner\] + ./entrypoint.sh  
\[bb-runner-j4b5t\]\[runner\] Error: Unable to access jarfile ?d??y  
A corrupt file has been uploaded ?  
This is the image iam getting:

docker-public.packages.atlassian.com/sox/atlassian/bitbucket-pipelines-runner

Appreciate all and any help, cause now it refuses to start and our builds are standing still.


Answers:
author: Mike Clarke
body: I'm experiencing this problem right now. But instead my error message look like this: 'Unable to access jarfile OaUtHCliEnTiD'. I have tried the steps Riley suggested multiple times and even tried to create a completely new runner multiple times. Anyone an idea?


author: Riley Venable
body: Based on the error message you received, it seems like the jarfile has been corrupted. You may want to try removing and re-deploying the Kubernetes object spec for the Bitbucket Pipelines Docker-based Linux Runner in your cluster. Here are the steps you can follow:   

1. Use \`kubectl delete\` command to delete the current deployment of the runner in your cluster.   

2. Confirm that the runner has been deleted by running \`kubectl get\` command.   

3. Reapply the job by running the Kubernetes object spec file that you used before.   

4. Check the logs to confirm that the runner has started successfully. If the issue persists, you may want to consider using a different image for the runner or contacting Atlassian support for further assistance.

comments: author: Nieznaj, Piotr
body: Yeah, tried that without any luck.

I ended up setting up a whole new runner in bitbucket and configuring my job according to that. It worked.

Thanks for your reply!


author: Siva Abbannagari
body: Did you figured this out i get exactly same error?


Tags: bitbucket-cloud

cloud
Open JDK 11 and open search
Asked by Robert Moore:

I'm in the process of installing a new instance of bitbucket 7.21.10 using the installer method and im trying to use openjdk 11

* i've updated set-jre-home.sh
* i've Updated search_config.sh
* i've run setup_search.sh

when i run start-bitbucket.sh i still get a warning that newer versions of opensearch require java 11 and the version i'm using does not meet the requirement /opt/atlassian/bitbucket/7.21.10/jre

what am i missing?


Answers:
author: Robert Moore
body: this is using the installer method

comments: author: Gonchik Tsymzhitov
body: Looks like time to use jre 11


Tags: bitbucket-server

server
Rest API does not return file from downloads folder
Asked by Janne Jussila:

When running below request nothing is returned

curl --request GET \\ --url '<https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/downloads/{filename>}' \\ --header 'Authorization: Bearer \<access_token\>'

Access rights should be right since running

curl --request GET \\ --url '<https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/downloads>' \\ --header 'Authorization: Bearer \<access_token\>'

returns JSON describing contents of downloads folder including the file I'm trying to fetch.

Also running request to

curl --request GET \\ --url '<https://api.bitbucket.org/2.0/repositories/{workspace}/{repo_slug}/src/master/README.md>' \\ --header 'Authorization: Bearer \<access_token\>'

returns repo's README.md as expected.

Any idea what's wrong on downloads folder GET request?


Answers:
author: Mark C
body: Hi [@Janne Jussila](/t5/user/viewprofilepage/user-id/5187706),

Welcome to the community.

Would it be possible for you to try to use the CURL command below instead?

```
curl -s -L --request GET --header 'Authorization: Bearer <access_token>' https://api.bitbucket.org/2.0/repositories/workspace_id/repo_name/downloads/filename.txt --output filename.txt
```

Let me know how it goes.

Regards,  
Mark C

comments: author: Janne Jussila
body: Hi Mark,

I have tried with --output test.txt and also w/ -O. After these I do have file, but it's empty.

I can see from logs that no data is actually received.

OOPS.....

didn't notice that your proposed curl had -s -L at start...

now it works. Thank a lot,

-janne


Tags: bitbucket-cloud

cloud
Pipeline: Got Fatal error by Allowed memory size
Asked by Ramon Costa:

Hi everybody,

I've configured a pipeline for a Symfony app with PHP Unit tests and Behat tests.

In first place, when after having run composer install, I did following:

php bin/console cache:clear

In that step, I've got an error of Allowed memory. As I couldn't get rid off it, I removed cache:clear step temporaly.

But in further steps, when I prepare database in order to run behat tests, in fixtures loading, the Allowed Memory error came again.

```
Fatal error: Allowed memory size of 134217728 bytes exhausted
```

My pipeline is something like that:

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

The pipeline output is:

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

I've already raised the memory limit and step size (2x) as well as I've gave more memory to MySql docker service to 2GB (default was 1GB)

What can I do to solve that?

Thanks in advance

Greetings


Answers:
author: Ramon Costa
body: By the way, I've workaround this adding additional param -d memory_limit=-1 in some places like:

- php -d memory_limit=-1 /usr/local/bin/composer install

- php -d memory_limit=-1 vendor/bin/phpunit

- php -d memory_limit=-1 vendor/bin/behat


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Binary file cannot be viewed in diff
Asked by HNA-EXTERNAL:

A few lines of binary content are in a plain text file that is useless. (But I don't want to remove it).

Is there any way that I can compare plain text files with binary info in the diff view?


Answers:
author: Ben
body: G'day!

Welcome to the Bitbucket Cloud community! :)

So that we may assist you further, can you please clarify what is meant by "compare plain text files with binary info"?

The purpose of diff is to show the difference between two files, so if there are changes made in a plaintext file - you should be able to view any content of that plaintext file from within this view. May you share a screenshot?

Cheers!

- Ben (Bitbucket Cloud Support)

comments: author: HNA-EXTERNAL
body: This is a original file view in notepad++. Just the last is binary. And other lines are text.

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

If I upload that original file, view of commit diff is like below a picture.

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

And if I upload a modified file that is removed binary line, view of commit diff is like below a picture.

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

The binary line is useless for me, so, I want just bitbucket recognizing that original file as text. As a result, I want to see like below picture.(In vscode git-diff extentions)

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

(Red line is text diff view of binary data, and it is useless binary diff view, but it's not a problem because that line is also useless infomation to me.

I want to see diff view like last one.


author: Ben
body: Hey,

Sorry for the delay. Just to clarify - you are viewing the diff for a file with the .fac extension that contains binary data which is not being formatted properly in the diff view within Bitbucket Cloud, correct?

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Unable to log in to bitbucket
Asked by James Johnstone:

Getting the following error message

We couldn't log you in {#toc-hId--469852550}
--------------------------------------------

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.

Have tried Firefox and Edge on Windows, and Firefox and Safari on Mac. Tried normal and incognito for each. Same error every time.

Tried deleting cache/cookies. Disabling all addons. Nothing seems to make a difference.


Answers:
author: Syahrul
body: G'day, [@James Johnstone](/t5/user/viewprofilepage/user-id/5187193) and welcome to the community!

It looks like your account was inactive, so I have reactivated it, which should unblock you from logging in.

Could you try to log in again and let me know how it goes?

Cheers,  
Syahrul

comments: author: James Johnstone
body: Yep, that looks like it did the trick.

Thanks Syahrul :)


author: Rrrr
body: So much time wasted by all searching for a solution.

Please [vote](https://jira.atlassian.com/browse/BCLOUD-22664) to have them provide a better error message:

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


Tags: bitbucket-cloud

cloud
"Deceptive site ahead" - Chrome
Asked by Betsy Gamrat:

This is a very simple straight HTML site - it uses JavaScript (jQuery) to load page content. Bootstrap for layout.

It includes a lot of external links to news resources, but most are reputable (I have not checked them thoroughly).

If I use https:// it works fine.

![Screen Shot 2023-04-03 at 9.08.16 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/249631iEC18A72EE39862EC/image-size/large?v=v2&px=999 "Screen Shot 2023-04-03 at 9.08.16 PM.png")


Answers:
author: marc -Collabello--Phase Locked-
body: Newer Chrome versions automatically display a warning if a site is in http, or in mixed http/https mode.

comments: author: Betsy Gamrat
body: I checked for http vs https - changed a few, but I am still seeing the warning.

There's one warning in the console.

![Screen Shot 2023-04-06 at 10.01.06 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/250401i50A83CD6E509E941/image-size/large?v=v2&px=999 "Screen Shot 2023-04-06 at 10.01.06 PM.png")

This is the JavaScript (jQuery) - this is a student built site, the JavaScript loads the main page content.

```
const parsedUrl = new URL(location.href),    page = parsedUrl.searchParams.get("page") ?? "video";const url = "pages/" + page + ".html";$("#main-content").load(url,function(response, status, jqXhr){    if (status === "error") {        this.textContent = "Page not found, please try again";    }});
```

The error is inconsistent - I am seeing it on MacOS Cataline 10.15.7 (19H2026), but I don't see it all the time on other devices.


Tags: bitbucket-cloud

cloud
How to see what jobs are running on Bitbucket pipeline Self-hosted runners
Asked by David Cheng:

Hi, we have 2 self-hosted runners set up at the workspace level for a project. we have multiple (3) repos that are sharing the runners. Is there a view that allows me to see what jobs are running on each runner and what jobs are queued up? Since the runners are shared across repositories it's a bit hard to tell what's occupying the runner and preventing other pipelines from building. Also, with two runners does that mean we can have at most 2 steps running in parallel at the same time?


Answers:
author: Someshwaran C
body: please integrate the feature as soon as possible.


author: Patrik S
body: Hello [@David Cheng](/t5/user/viewprofilepage/user-id/4977179) ,

Thank you for reaching out to Atlassian Community!

I'm afraid that Bitbucket Cloud currently does not have an aggregated view of which pipeline is assigned to each runner at a given time. Currently, you would have to visit the pipelines page of each repository to confirm which of them have pipelines running. We do have a feature request opened to implement a dashboard to help visualize the usage of runners, which you can access at the following link :

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

We encourage you to add your vote there and also mark yourself as a watcher to receive first-hand updates whenever there's any progress on the implementation of that feature.

As for your questions about parallel steps, each runner can run only one step at a time. In this case, if you have 2 runners, you would have a maximum of two steps running in parallel. When a step is triggered and no runner is available, the step will be queued until a runner completes its current step and becomes available.

Thank you, [@David Cheng](/t5/user/viewprofilepage/user-id/4977179) !

Patrik S


Tags: bitbucket-cloud

cloud
Do Docker start-up scripts run in a containerized pipeline?
Asked by joe:

If a container starts up with CMD or ENTRYPOINT, will that CMD or ENTRYPOINT run in the background or another shell while the pipeline script is running?

**More specifically:**

I have a Dockerfile that ends like this:

```
CMD /cmd.sh
```

I want to use the container built from this Dockerfile as an environment to run my pipeline script in.

Will my CMD run in the background or another shell as my pipeline is running?

I don't want it to -- I just want to run the pipeline script.

But I need to know if I need to update the CMD script so that it won't run when the pipeline starts.

**What I've Tried**

I've looked for details in the official documentation on the subject and listed processes as a step in the pipeline.

Thanks.


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

Welcome to Atlassian Community!

When a build is triggered in pipelines, it will start the build container to run your script commands. The **docker run** command that is executed under the hood in pipelines to start the container utilizes the [--entrypoint flag](https://docs.docker.com/engine/reference/run/#entrypoint-default-command-to-execute-at-runtime) to override any CMD or ENTRYPOINT you have defined in the image itself.

This means that pipelines will ignore any entry point/cmd you have defined in the image itself, and will always overwrite it with **/bin/sh**which is the shell session where the commands you have included in the script part of your YML file will be executed.

Hope that helps to clarify your questions :)

Thank you, [@joe](/t5/user/viewprofilepage/user-id/3700089) !  
Patrik S

comments: author: joe
body: Thanks [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) . Can you post a link in the official documentation that indicates this?


author: Dainius Tamo?i?nas
body: [@Patrik S](/t5/user/viewprofilepage/user-id/4603309) is it documented anywhere? I went through docs multiple times in multiple days and didn't notice such thing


author: Patrik S
body: Hello [@joe](/t5/user/viewprofilepage/user-id/3700089) and [@Dainius Tamo?i?nas](/t5/user/viewprofilepage/user-id/5305295) ,

This was indeed not yet documented in our public docs, so I went ahead and published an article in Bitbucket Cloud Knowledge Base sharing that information :

* [Bitbucket Pipelines does not execute the build image's ENTRYPOINT/CMD script](https://confluence.atlassian.com/bbkb/bitbucket-pipelines-does-not-execute-the-build-image-s-entrypoint-cmd-script-1299910012.html)

Thank you for reporting this!

Patrik S


Tags: bitbucket-cloud

bitbucket-pipelines

cloud

docker