youngmon/atlassian-qna huggingface dataset:
Portal Restriction Customers
Asked by Lianne Geerlings:

We have currently two portals . One for Team A and another one for Team B.

We noticed that Team A customers are sending requests through portal B, which is causing delays in responding to them.

Is there a way to restrict access for Team A customers so they cannot create requests in the wrong portal? Or can we make the other one invisible for them?


Answers:
author: Marcus Jones
body: Hi Lianne,

You should be able to restrict that at the project level. In project A you could navigate to project settings \> Customer Permissions and edit your channel access to Restricted so that only people directly invited to the project can submit requests. This will cover all channels including portal/email/widget. Make sure you add your project A customers to the project so they can submit requests, and be sure no customers from project B are in project A. You'll need to do the same but inverse for project B where you restrict it, add your project B users and make sure none of the Project A users are in project B. You'll also want to navigate to your customer access settings via the gear icon top right corner and then products. Navigate to Customer Access under Jira Service Management in the left column of that page. You will want to make sure the box next to "Customers can access and send requests from the portal without logging in" is NOT checked.

comments: author: Lianne Geerlings
body: Perfect! Thank you very much.


Tags: cloud

jira-service-management

jira-service-management-cloud
How to move attachment document from jira to confluence
Asked by Saqib Dar:

Hi,

how to move jira issue attachment to confluence at the time of transition?

Both apps are datacenter instance

regards,

saqib


Answers:
author: Eugenio Onofre
body: Hi [@Saqib Dar](/t5/user/viewprofilepage/user-id/4563680)

You can use the 'Send web request' action component in the automation rule to create the Confluence page and pass the content accordingly.

Refer to Confluence REST API documentation here for more information and examples:

<https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content/#api-wiki-rest-api-content-post>

Please do not forget to accept this answer in case it helps you resolve your question so it can help other community members in the future.

Regards,  
Eugenio


Tags: attachment

confluence

jira-service-management

jira-service-management-server

server
Can I have 1 ITSM project for several customer
Asked by eric_podico:

Can I have 1 ITSM project for several customer organizations?

How can I be sure, that each customer organization see only the Jira ticket made for them and not those of other organization?

How can I assign a ticket that I create myself to one and only one customer organization?


Answers:
author: Dan Breyen
body: We are using 1 JSM project with multiple customers. A customer is going to be able to create and view tickets for their organization in the portal. That's the power of having customers use that portal. If I create a ticket for them, I can assign the specific organization to that ticket.

I have some customers that work for multiple organizations, and with the Organization Dropdown in the portal, they can choose which organization they want to see based on their credentials.

It may help you to make some user accounts that you have access to, so you can reassure yourself that it's working that way.

Hope that helps.


Tags: cloud

jira-service-management

jira-service-management-cloud
JSM Customers information sync to Assets
Asked by Patrick Vijgeboom:

Hi all,

We have hundreds of customers in JSM and we want some information of these customers synced to an Assets database. We were informed by a support partner to use Integrate Microsoft Entra ID and Assets but our customers accounts are not in our Microsoft Entra.

Are there solutions on the market or solutions from Atlassian to create a link between JSM and Assets for syncing.

We are using Atlassian Cloud


Answers:
author: Eugenio Onofre
body: Hi [@Patrick Vijgeboom](/t5/user/viewprofilepage/user-id/4923125)

Hope you are doing well.

There is no default functionality that could potentially solve your question without development effort.

I would suggest checking the Atlassian Marketplace and seeing if any of the options available work.

Please do not forget to accept this answer in case it helps you resolve your question so it can help other community members in the future.

Regards,  
Eugenio


author: Rodney D_Souza
body: What exactly is your "Assets DB" i.e. what technology and location?

comments: author: Eugenio Onofre
body: Atlassian Assets is a product from Atlassian, part of JSM Enterprise Subscription.


Tags: jira-service-management
Automation - Description contains "value,value,value...". Is this possible?
Asked by Terry Dance:

New to Jira and we have an automation that looks for a code in the description. Each code has its own "else-if" section, but theres a "catch all" else-if created to look for 20+ codes, to then update a field if description contains one of those codes.

It has been written like,

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

Should this even work? From what I can tell it isnt working at all. Is there a correct way to write this out? Or will they need their own else-ifs, or should I turn the current else-if block into a "at least one condition matches", and separate them out there?


Answers:
author: Sayed Bares [ServiceRocket]
body: [@Terry Dance](/t5/user/viewprofilepage/user-id/5385711) separating them out might not be ideal if you have a long list.

I would suggest using [{{smart values}} condition](https://support.atlassian.com/cloud-automation/docs/jira-automation-conditions/#--smart-values---condition) instead:

* Set **First value** to **{{issue.description}}**
* Set **Condition** to**contains regular expression**
* Set **Regular expression** to **(xxx\|yyy\|...\|zzz)** *xxx, yyy, zzz are your number* **![regex.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/296791iFF4D046DC5DC440F/image-size/large?v=v2&px=999 "regex.jpg")**

To know more about OR operator in regex you can refer to <https://www.ocpsoft.org/tutorials/regular-expressions/or-in-regex/>

comments: author: Terry Dance
body: Awesome, thank you!


Tags: cloud

jira-service-management

jira-service-management-cloud
Service project linked to confluence space
Asked by Aaron Micallef:

Hey Guys,

Just wanted to understand 100% the permission point of view when you link a confluence space to a service management project, I have a space with permissions in place based on AD group and there is a group with view only and another with view/edit respectively.  

Side note there are restrictions on each and every page done by the users.

When it comes to connect this space to a service project would the permission based upon the confluence still apply or would people in the service desk take over with the service project permission? for some reason I got a bit confused about this.

Cheers Aaron


Answers:
author: Mayuresh Kamble
body: Hi [@Aaron Micallef](/t5/user/viewprofilepage/user-id/5359754) ,

If a user is restricted from a Confluence page, they won't be able to access it even if they have broader access through Jira Service Management.

Hope this answers your question.

Regards,  
Mayuresh

comments: author: Aaron Micallef
body: hi [@Mayuresh Kamble](/t5/user/viewprofilepage/user-id/5095826)

thanks for this answer so basically it is up to the confluence space permission and restrictions. that is what we wanted, because there are pages that users should not have permission too.


Tags: cloud

jira-service-management

jira-service-management-cloud
How send the attachments files from Jira to service now with scriptrunner?
Asked by Angel Ferreira:

Hi!

I want to send the files in issue from Jira to Service Now on Cloud, Is possible with scriptrunner? and how?

Thanks


Answers:
author: Ram Kumar Aravindakshan _Adaptavist_
body: Hi [@Angel Ferreira](https://community.atlassian.com/t5/user/viewprofilepage/user-id/4528620)

For your requirement, you can use the ScriptRunner Console to send REST requests to the external service, i.e. Service Now.

Please refer to the example from the [Adaptavist Library](https://library.adaptavist.com/entity/use-external-api?tab=dataCenter) on how to invoke and pass requests to external services.

I hope this helps to answer your question. :-)  

Thank you and Kind regards,  
Ram

comments: author: Ram Kumar Aravindakshan _Adaptavist_
body: Hi [@Angel Ferreira](/t5/user/viewprofilepage/user-id/4528620)

Has your question been answered?

If yes, please accept the answer provided.

Thank you and Kind regards,

Ram


Tags: attachment

data-center

jira-service-management

jira-service-management-server

rest-api

scriptrunner

server
Issues Translations
Asked by Marcos Lourenco:

Hi Community,

I work with Spanish-speaking clients, but my team is mostly English-speaking. I'm looking for a free tool to translate Jira tickets automatically, regardless of the language the client uses. This would allow my team to reply in English while displaying their responses in Spanish to the clients.

I've researched paid options, but I'd like to confirm if this functionality exists in any free tools.

Thanks for your help!

Best regards,

Marcos


Answers:
author: Mayuresh Kamble
body: Hi [@Marcos Lourenco](/t5/user/viewprofilepage/user-id/4971503) ,

Have you tried this add-on [Issue Translator Free](https://marketplace.atlassian.com/apps/1226140/issue-translator-free?hosting=cloud&tab=overview) ? I think it matches you requirement.

Regards,  
Mayuresh

comments: author: Marcos Lourenco
body: Hi [@Mayuresh Kamble](/t5/user/viewprofilepage/user-id/5095826)

Thanks for your answer. Looks like this one will work well. I'm testing it.

Regards.


Tags: cloud

jira-service-management

jira-service-management-cloud
Why do I suddenly need SSH?
Asked by ic2:

After a couple of uninterrupted and working Pulls (the most recent interruption that costed us a few hours was the introduction of app passwords, which I had to create twice again so far when it stopped working, thank you very much for this 'safety feature') , the latest surprise was the message:

*The authenticity of host 'bitbucket.org can't be established. (etc)*

After again a long time of trial and error entering obscure commands in obscure 1980 style command prompts, I got a working SSH key which was apparently the solution and vould again pull the changes of the solution of my colleague. Let's see how many times/days it works this time before the next error or issue....

Does anyone know why I got this? I changed nothing and my colleague didn't either. What changed and why?

It would be really great if we could synchronize code without having to spend time every time solving unsolicited changes like this.


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

The protocol used is determined by the remote repo URL in your clone.

If you run **git remote -v** in your clone and the output looks like the below, then SSH will be used.

```
origin git@bitbucket.org:workspace/repo.git (fetch)
origin git@bitbucket.org:workspace/repo.git (push)
```

If the output of **git remote -v** shows a URL like the below, then HTTPS will be used:

```
origin https://BitbucketUsername@bitbucket.org/workspace/repo.git (fetch)
origin https://BitbucketUsername@bitbucket.org/workspace/repo.git (push)
```

This info is saved in the **.git/config** file of a user's clone.

The only possible reasons I can think of for this issue are   
a) someone switched the remote URL of that clone from an HTTPS one to SSH  
b) the directory of a previous clone was deleted, and someone made a new clone of the repo using an SSH URL

If you want to change the remote URL in a clone, you can use the following command:

```
git remote set-url origin <repo_url>
```

where   
**origin** replace with the name of your remote, if different  
**\<repo_url\>** you can use either the HTTPS URL of the repo or the SSH one, depending on what you prefer to use.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

ssh
Bitbuket Jenkins connection failed with autentication error
Asked by Kavitha Ramakrishnan:

Team,

We integrated bitbucket and Jenkins. As per the new update from bitbucket .. we made changes in the jenkins credentials window with username and app passsword. but still jenkins execution is failed with "authentication failed error" This is critical


Answers:
author: Theodora Boudale
body: Hi [@Kavitha Ramakrishnan](/t5/user/viewprofilepage/user-id/4775639),

I see that you created a support ticket as well for issues with cloning a repo from Jenkins. I would suggest focusing on the support ticket, in order to avoid any confusion and misunderstandings that may arise from discussing and investigating the same issue in two places.

When the issue is resolved, please feel free to share the root cause and resolution here if you have some time, for any other users who may come across your post facing the same issue.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
ERROR: SonarQube server [] can not be reached
Asked by Kirupa Cse:

Getting Error "ERROR: SonarQube server \[\] can not be reached" While Triggering Pipeline .  
But I can access "<http://PrivateIp:9000/>" From my browser .

Both the gitlab runner \& sonarqube hosted on same machine .

Configured all the steps accordingly .

Gitlab.yaml

```
sonarqube-check:  stage: scan  image:     name: sonarsource/sonar-scanner-cli:latest    entrypoint: [""]  variables:    SONAR_USER_HOME: "${CI_PROJECT_DIR}/.sonar"  # Defines the location of the analysis task cache    #GIT_DEPTH: "0"  # Tells git to fetch all the branches of the project, required by the analysis task    SONAR_PROJECT_KEY: "<YOUR PROJECT KEY>"      SONAR_PROJECT_NAME: "$CI_PROJECT_NAME"      SONAR_PROJECT_VERSION: "$CI_BUILD_ID"    cache:    key: "${CI_JOB_NAME}"    paths:      - .sonar/cache  script:    - pwd    - docker run --rm -e SONAR_HOST_URL="" -e SONAR_LOGIN="" -v "/home/projects/project1:/usr/src"      sonarsource/sonar-scanner-cli:latest      sonar.projectKey=""
```

[**sonar-scanner.properties**](http://git.intra.aricent.com/e2co/recordkeeper/-/blob/sonarqubetest/sonar-scanner.properties)

```
SONAR_HOST_URL=""SONAR_LOGIN=""sonar.project.settings=sonar-project.properties
```

[**sonar-project.properties**](http://git.intra.aricent.com/e2co/recordkeeper/-/blob/sonarqubetest/sonar-project.properties)

```
SONAR_PROJECT_KEY=e2coSONAR_PROJECT_NAME=e2coSONAR_PROJECT_VERSION=1.0sonar.qualitygate.wait=true#sonar.sources=.sonar.sourceEncoding=UTF-8
```

Can any one suggest what is problem \& how it could be resolved


Answers:
author: lissyaka
body: [@Kirupa Cse](/t5/user/viewprofilepage/user-id/4972077) hi.

Maybe it's a good idea to use [SonarCloud pipe for this case](https://bitbucket.org/sonarsource/sonarcloud-scan/src/master/).  

```
- pipe: sonarsource/sonarcloud-scan:1.4.0  variables:    EXTRA_ARGS: -Dsonar.projectDescription=\"Project with sonarcloud-scan pipe\" -Dsonar.eslint.reportPaths=\"report.json\"    SONAR_SCANNER_OPTS: -Xmx512m    DEBUG: "true"
```

Cheers.


Tags: bitbucket-server

gitlab

server
Import Repository not working from same Bitbucket Account
Asked by Devesh Sharma:

Importing existing Repository which is already in same bitbucket account, to different Project not working. It is giving same error, even if I have generated "App Password" for Authentication.

1. 15:27:50 git import for: \<repo_url_removed\>
2. 15:27:50 Cloning \<repo_url_removed\>
3. 15:27:50 Cloning into bare repository '\<workspace-id\>/test'...
4. 15:27:50 remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.
5. 15:27:50 remote: See our community post for more details: <https://atlassian.community/t5/x/x/ba-p/1948231>
6. 15:27:50 remote: App passwords are recommended for most use cases and can be created in your Personal settings:
7. 15:27:50 remote: <https://bitbucket.org/account/settings/app-passwords/>
8. 15:27:50 fatal: Authentication failed for '<https://bitbucket.org/checkaninvoice/india.invoiceuploader/src/master/>'
9. 15:27:50 Remote Git clone failed: \<class 'bitbucket.apps.asyncx.tasks.ImportException'\>: Command failed. Return value: 128

Any Idea? It was working couple of months ago.

Thanks


Answers:
author: Theodora Boudale
body: Hi [@Devesh Sharma](/t5/user/viewprofilepage/user-id/1686564),

This error shows when the credentials are incorrect.

When you try to import a repository, if you check the field **Requires authorization** , you will see two fields for **Username** and **Password**.

The **Username** should be the Bitbucket Username of the account that you generated the app password. You can find it listed here after logging in to the account: <https://bitbucket.org/account/settings/> It should not be your email address, but the username listed on that page.

After you ensure that the username is correct, if you still get the same error, I would suggest generating a new app password for the account (**Repositories: Read** permissions should be enough for this operation), in case you edited the app password accidentally.

In case you have multiple Bitbucket accounts, please make sure to use the credentials of an account that has access to the repo.

Please feel free to let me know how it goes.

Just a heads up, I removed the repo url from your post to protect your privacy.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud

import
Search doesn't work after upgrade to 8.1.1
Asked by Peter S.:

Hi,

After upgrade to the latest version of Bitbucket server, search doesn't work anymore. We've tried all the recommended suggestions to resolve it:  

* Rebuilding the indexes by deleted nodes as per: <https://confluence.atlassian.com/bitbucketserverkb/rebuild-the-bundled-elasticsearch-indexes-for-bitbucket-server-833988382.html>
* Verified connection to elasticserach and password, both ok
* deleting indexes with curl \`curl -u bitbucket -k -X DELETE <http://localhost:7992/bitbucket-search>\`

Nomatter what we try this error persist in the logs:

```
at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.launchJob(CaesiumSchedulerService.java:435)
at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeClusteredJob(CaesiumSchedulerService.java:430)
at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeClusteredJobWithRecoveryGuard(CaesiumSchedulerService.java:454)
at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeQueuedJob(CaesiumSchedulerService.java:382)
at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeJob(SchedulerQueueWorker.java:66)
at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeNextJob(SchedulerQueueWorker.java:60)
at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.run(SchedulerQueueWorker.java:35)
at java.lang.Thread.run(Thread.java:750)
2022-06-22 12:15:46,584 ERROR [Caesium-1-2] c.a.b.i.s.i.IndexingSynchronizationService Upgrading index failed, unable to continue, operator intervention is required.
2022-06-22 12:15:46,585 WARN [Caesium-1-2] c.a.b.i.s.c.cluster.ClusterJobRunner Job execution failed. Rescheduling. Job key: com.atlassian.bitbucket.internal.search.indexing.jobs.StartupChecksJob Job id
```


Answers:
author: Peter S.
body: Hi, we are still experiencing this issue, any help would be highly appreciated.


Tags: bitbucket-server

server
Bitbucket Self hosted runner failing
Asked by Adrian Chung:

Runner matching labels:  
- linux  
- self.hosted  
Runner name: Runner1  
Runner labels: self.hosted, linux  
Runner version:  
current: 1.330  
latest: 1.330

Status 404: {"message":"pull access denied for sox/atlassian/pipelines-auth-proxy, repository does not exist or may require 'docker login': denied: requested access to the resource is denied"}

The runner is online but when we kick off the runner task the above 404 occurs


Answers:
author: Patrik S
body: Hello [@Adrian Chung](/t5/user/viewprofilepage/user-id/4971796) ,

Welcome to Atlassian Community!

From your description and the error you have shared, it seems like you might have been affected by the following incident :

* <https://bitbucket.status.atlassian.com/incidents/lvdd80wzndqt>

A fix for that incident was already deployed, so could you please try running your pipeline again and let us know if you are still facing the same error?

Thank you, [@Adrian Chung](/t5/user/viewprofilepage/user-id/4971796) .

Kind regards,

Patrik S


Tags: bitbucket-cloud

cloud
Repository build - checklist
Asked by Denny Pujo:

Hi, in my repository lists, there is a column to shows the build status.  
if the build is successful, then it will have a green checklist in that column.  

I have set up the pipeline for 3 of my repositories. and all are having the build successful. but, in my repository list, its only 1 of the repository that is having the green checklist, while the other 2, dont have any checklist.  

why is the behavior? how should I define the build, so that it will be shown in the repository list that the build is successful?

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


Answers:
author: Patrik S
body: Hello [@Denny Pujo](/t5/user/viewprofilepage/user-id/4946259) ,

Thank you for reaching out to Atlassian Community!

The Builds column checkbox will take into consideration the most recent commit to the main branch. So in case the most recent commit in your currently configured main branch did not trigger a pipeline, you will not see a checkbox for success or fail in that column.

In case you want, you have the option to change the main branch of a given repository by going to \[*Your Repository* \]*\> Settings \> General \> Repository details \> Expand ADVANCED \> Main branch .* You will be able to select any of your current branches, and once you change it to another branch, the *Builds* column will be updated accordingly in your Repository list view.

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

Thank you, [@Denny Pujo](/t5/user/viewprofilepage/user-id/4946259) .

Kind regards,

Patrik S

comments: author: Denny Pujo
body: Thanks. this is working now. But why the Main Branch setting is located separatedly?  
In the \[repository setting\] -\> \[branching model\] there are only dev and PROD, so I thought that the successful build needs to be in one of those branches. it would be really make sense, if we can also set the main branch in the \[branching model\]


author: Patrik S
body: Hey [@Denny Pujo](/t5/user/viewprofilepage/user-id/4946259) ,

Happy to hear that it worked!

As for your question about the location of the *Main branch* option, I understand that it would be easier/ more intuitive to change the main branch directly from the *Branching Model* page instead of on the *Repository details* page, so I went ahead and created a feature request for it :

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

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 in mind: <https://confluence.atlassian.com/support/implementation-of-new-features-policy-201294576.html>

Thank you, [@Denny Pujo](/t5/user/viewprofilepage/user-id/4946259) .

Kind regards,

Patrik S


author: Denny Pujo
body: okay thank you. I have voted it


Tags: bitbucket-cloud

cloud