youngmon/atlassian-qna huggingface dataset:
Can I provide Jira customers access to Confluence?
Asked by Vera Valshonok:

I'd like our customers ( a couple of them ) to access Confluence in JSM, is there such possibility or only internal jira users can access confluence?


Answers:
author: Ananjan_Mishra
body: Hi [@Vera Valshonok](/t5/user/viewprofilepage/user-id/5174542)

As suggested by [@John Funk](/t5/user/viewprofilepage/user-id/7148), using the guest license feature is a great workaround.

If you're interested in exploring apps from the marketplace, you might want to check out our app, [**Share Confluence with External Users**](https://marketplace.atlassian.com/apps/1225074/share-jira-with-external-users-secure-share?hosting=cloud&tab=overview). It can perfectly meet your needs!

Feel free to r[each out](https://miniorange.atlassian.net/servicedesk/customer/portal/2/group/6) if you need more information. We're here to help!


author: John Funk
body: Hi Vera,

Confluence is a separate product and has it's own licensing. So the quick answer is yes you can, but it will cost additional money. However, there is a guest license that can be used for a user - it is limited to viewing just one Space.


Tags: cloud

jira-service-management

jira-service-management-cloud
Business trip in Jira
Asked by Nena Kruljac:

Hello,

the use case is:

1. Employees announce business trip to another city or country by car or plane or bus...

2. A manager approves or decline it

3. After approval, business support team books flight or rent-a-car and hotel...

4. Employee comes back from a business trip and has to provide data about it: receipts, start and end date and time, if car was used, than also car model, registration plates number, km before and after the trip, passengers (if any).

JSM (customer portal) could be used for 1-3 steps, but what about step 4 - how can customer enter after-the-trip-data from step 4 in customer portal to the previously created ticket?

JSW app could be used, but JSM seems better.

Buying additional apps is not an option

Hosting: Jira Cloud

Thank you, best regards, Nena


Answers:
author: Charlie Misonne
body: Hi Nena,

About step 4: do you expect the employees to fill out some extra fields? In that case you can use [forms](https://support.atlassian.com/jira-service-management-cloud/docs/use-forms-in-jira-service-management/). A form is a separate set of fields you can "attach" to a Jira issue. They can also be filled in by users on the portal.

Via an automation rule you could [attach the form automatically](https://community.atlassian.com/t5/Jira-Service-Management-articles/4-New-Form-Automation-Components-for-Jira-Service-Management/ba-p/2018674) to the issue when in step 4.

This is just an idea. You could also add an automatic comment and ask the user for all that data and let them answer via a simple comment and attachments.

kind regards,

Charlie

comments: author: Nena Kruljac
body: Hi Charlie,

thank you very much, it works.

Best regards, Nena


author: Charlie Misonne
body: Glad I could help!

Out of curiosity: did you go with the Form solution?


Tags: cloud

jira-service-management

jira-service-management-cloud
Can an automation start from a workflow Post Function
Asked by Ste404:

Hi All,

I have created an Event in Jira and in a Post function in a workflow I replaced the Generic Event with this new Automation Event.

BUT.. I can't find a way to start and automation with this event, is that possible in cloud?


Answers:
author: Valerie Knapp
body: Hi [@Ste404](/t5/user/viewprofilepage/user-id/4984517) , thanks for your question.

Please can you explain a bit what you want the automation to do?

You should be able, for example, from a custom event, to use the standard notification scheme funtionality to send a custom notification. If you are talking about, instead, using automation to 'hear' the custom event and do something, I think you are more in the realm of a scripted listener, using an app like ScriptRunner, but of course this would be at a cost.

What are you trying to achieve with the automation?

comments: author: Ste404
body: In a nutshell I am trying to replicate the 'Create another' function from Assets when creating objects but doing it in a workflow to pull info from an issue.

So I have a global looping transition (transitions to itself).

I created an 'Event' in the admin area of Jira.

In the Post function for the transition I added the new event there.

I 'thought' you could trigger an automation when a post event happens.

<br />

Kick off the transition from the issue (the Actions drop down).  
Transition screen appears, data is entered and pulled from the issue.  
On the transition screen there is a yes / no 'Create Another'  
When the transition screen closes the Post function runs  

Here I wanted an automation to run to create an object with all that information  
Check if the create another is yes or no  
If Yes then 'somehow' loop through the transition again.  

Falls on its face as I can't fire the automation from the Post function event.


Tags: cloud

jira-service-management

jira-service-management-cloud
Looping in automation until counter reaches 0
Asked by Ste404:

Hi all.

I have a workflow transition that transitions to itself. There is a screen where an agent can enter in some details and then it creates an object in Assets.

I want to control how many times this happens before the loop basically stops and the issue transitions to another status.

So if there is a variable with 6, it will loop through 6 times and then break out, is there any sort of post function or something I can use on in the workflow to reduce the counter to 0 or something, yes I am confused with this one!


Answers:
author: Fabian Lim
body: Hi [@Ste404](/t5/user/viewprofilepage/user-id/4984517)

For this one, I would use a custom field that is hidden that counts the number of times the transition is executed. Essentially you will subtract 1 to it in the post-function of the transition that calls itself. You will have to figure out how the initial value is populated though.

I hope this helps.

Fabian

comments: author: Ste404
body: Can you do maths in the post function?! will have to dig deeper in there, I thought I checked out the options for that.


author: Fabian Lim
body: You may have to look into some workflow plugins in the marketplace (e.g. JSU, JMWE, JWT) are the easy ones to setup.

Regards,

Fabian


author: Ste404
body: It is disappointing there is no Do Until type looping in automations, something that has a TONNE of use cases.


Tags: cloud

jira-service-management

jira-service-management-cloud
PIR primary incident link to a different itsm project
Asked by Pavith Dassanayake:

is it possible to link a PIR primary incident out of a different ITSM project ?


Answers:
author: Fabian Lim
body: Hi [@Pavith Dassanayake](/t5/user/viewprofilepage/user-id/5513272)

Welcome to the community!

My understanding is that it works only within the same project. I'm assuming you are planning to track PIR in a centralized project. You could use automation to trigger a creation of a PIR, link it to the incident and copy some of the fields from the incident, but I don't think it will capture the incident summary properly.

Regards,

Fabian


Tags: cloud

jira-service-management

jira-service-management-cloud
Can't remove demo customer account from JSM project
Asked by Andy:

Hi there,

I can't find the option to remove the demo accounts in my JSM project on this URL, for example,

https://\<MYSITE\>.atlassian.net/jira/servicedesk/projects/\<MYJSMPROJECT\>/**customers**

I can see the demo accounts alright but there is no option to remove them.

![Atlassian demo accounts.png](https://community.atlassian.com/t5/image/serverpage/image-id/327937iA2F8EAB90805C236/image-size/large?v=v2&px=999 "Atlassian demo accounts.png")  
There is supposed to be the three dots at the end of each line but there is not.  
Any advice please?  
Thank you.  
Andy


Answers:
author: Bruna Silva
body: Hello [@Andy](/t5/user/viewprofilepage/user-id/4986454),

Thank you for reaching out to Atlassian Community!

Allow me to share with you that, to remove portal-only accounts from your service project it'll depend on the **Channel access** permission. You can see this permission going to:

* For *Company-managed projects* : *Project settings* \> *Customer permissions* \> *Channel access*
* For *Team-managed projects* : *Project settings* \> *Channels* \> *Customer permissions* \> *Channel access*

If you have the **Restricted** option selected, then to remove customers from your project you'll have to follow these steps:

* For *Company-managed projects* : *Project settings* \> *People* \> Remove the customers you want
* For *Team-managed projects* : You can remove the customers from the *Customers* page

If you have the **Open** option selected in the **Channel access**, then you have an open portal on this project and it's necessary to remove the portal-only customers from your site to remove their access. To remove the customers from your site, you can follow the steps found in the document below:

* [Delete portal-only customers](https://support.atlassian.com/user-management/docs/delete-portal-only-customers/)

Please note that the steps are different depending on your *user management experience*.

If you have any other questions regarding this matter, please let us know.

Regards,  
**Bruna**

comments: author: Andy
body: Thanks Bruna. That worked for me!

Sorry for the late reply. Have a good day!


Tags: cloud

jira-service-management

jira-service-management-cloud
Bitbucket API-Token Authentication failure (Token is invalid or not supported for this endpoint.)
Asked by entwicklungen_a-f:

Hello

I try to makt the first steps with the Bitbucket API but i fail by the first step. (Frustration is maixmal)  
I try to make ue the sample of the documentation and try to use the curl-command:

curl -H "Authorization: Bearer ATATT..." <https://api.bitbucket.org/2.0/repositories/>\<emailadress X\>/\<repositoryname\>/commits

The result is: Token is invalid or not supported for this endpoint

So how i get the API token:

After i logged into bitbucket with user X, i went to the gear in the top right corner. there i went to "Atlassian account setting" and there to the security tab. on this page i was then able to access the API token creation \& management page. I then generated the API token there and used it for the curl command.  
I made the token url-capable beforehand (mapped the characters url-compliant). I used exactly the same email address as I used to create the api token.

What am I doing wrong here?

Best regards

Lorenzo


Answers:
author: Ben
body: G'day Lorenzo!

Welcome to the Bitbucket Cloud community :)

The URL format for API calls against our endpoints actually requires the use of your workspaceID for the repository path rather than your email address, and the call will fail if this is not followed - you can find the repository path via the URL reported in your browser when you browse the repository in question:

```
https://api.bitbucket.org/2.0/repositories/<workspaceID>/<repositoryname>/commits
```

I have tested using my own repository and was able to query against it with the use of a bearer token, here is an example of the command that I executed:

```
curl --request GET \
--url https://api.bitbucket.org/2.0/repositories/<workspaceID>/<repositoryname>/commits \
--header 'Authorization: Bearer hunbYYd.........'
```

Hope this helps.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
How to get JIRA ticket url from Bitbucket Pull Request
Asked by Anil Mishra:

I'm writing a plugin and wanted to pull all Jira ticket along with their url (multiple Jira instance are linked to my bitbucket data center). and export it

Currently I'm calling pull request api is which is returning internal url which can be resolved from browser but I'm looking for exact url or way to get Jira ticket url out of it.

https:/bitbucket-host/bitbucket/rest/jira/latest/projects/JIR/repos/icgjira/pull-requests/30/issues  
This just returning  
\[  
{  
"key": "BOP-967",  
"url": "<https://bitbucket-host/bitbucket/plugins/servlet/jira-integration/issues/BOP-967>"  
},  
{  
"key": "C1311-9",  
"url": "<https://bitbucket-host/bitbucket/plugins/servlet/jira-integration/issues/C1311-9>"  
}  
\]  
here both url belong to different Jira instance and I don't see any way to get Jira url for issue.  
Please help.  
Thanks,  
Anil


Answers:
author: Anil Mishra
body: I see some workaround by calling below bitbucket rest api

/rest/jira-integration/latest/issues?issueKey=C1311-9\&fields=url

```
"url":"https:\/\jira.atlassian.com/\/jira\/browse\/C1311-9"
```

Read url value from the response json, it will give Jira URL for provided ticket.

If anyone have more simpler solution or using Java API, kindly suggest.


Tags: bitbucket-server

server
Regarding "ami_block_device_mappings": gp2
Asked by Khan, Saiful:

Hello Team,

Just want to know is there any new AMI for bitbucket DC on AWS which has volume type gp3 instead of gp2  
"launch_block_device_mappings":gp3 and  
"ami_block_device_mappings": gp3


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

This is not an Atlassian question, you might want to ask it in an AWS forum instead (some members of the Atlassian Community may be able to help, but you will reach a much larger audience if you ask of an AWS forum instead of Atlassian)


Tags: bitbucket-server

server
I can't access the repository with the link I copied from the clone button.
Asked by Mounica Padisala:

I have copied the repository link from the clone button on the top right side of the page. I have sent it to my teammate but when I clicked the link. It is getting loaded but the repo is not opening. can you please help me with this?


Answers:
author: Ben
body: Hi Mounica,

The correct format for accessing a repository in the browser is as follows:

* <https://bitbucket.org/workspaceID/repository>

Copying the clone URL directly will not work, they can use the workspaceID/repository values from the clone URL but cannot use the clone URL in its entirety to access the repository in the browser - this is purely a URL used for performing GIT clone in a terminal/IDE.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

cloud
Bitbucket pipeline deploy failing with "Environment is red" but AWS logs do not agree.
Asked by Kevin Fink:

Our pipelines have been working for months, but suddenly stopped with the message "Environment is red". However, the logs for that environment in AWS show that everything deployed properly, with no warnings, much less errors. What is the pipeline checking here?

INFO: Checking deployment status in Elastic Beanstalk...  
? Deployment failed. Environment "XXX" is Red.


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

As outlined in our pipe [script](https://bitbucket.org/atlassian/aws-elasticbeanstalk-deploy/src/master/pipe/pipe.py#lines-202), we initiate a deployment check through AWS Elastic Beanstalk and determine the deployment status based on the response we receive.

In this specific instance, the information from your environment health indicates that the current status is 'Red,' which leads us to consider the deployment failed.

I suggest increasing the "WAIT_INTERVAL" so that the pipe can wait for a few more seconds than the default 10s to ensure your environment is ready.

Let me know how it goes.

Regards,  
Syahrul


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
credencial acces
Asked by Pitou Mahoungou:

Hello

I Cannot clone a repository to my conputer , there is a credential error.

can i have a help?


Answers:
author: Pitou Mahoungou
body: Hi here is the error message window

I try to be connected many , and not working

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

comments: author: Syahrul
body: Hi [@Pitou Mahoungou](/t5/user/viewprofilepage/user-id/5345870)

My guess is that you are authenticating with invalid credentials. Could you generate [App Password](https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/) and use these as your credentials and let me know if that helps?

Regards,  
Syahrul


author: Syahrul
body: G'day, [@Pitou Mahoungou](/t5/user/viewprofilepage/user-id/5345870)

Welcome to the community!

Could you share with me the error you received when cloning the repository? Having the error would help me determine why you fail to clone your repository.

Regards,  
Syahrul


Tags: bitbucket-cloud

cloud
Mandatory steps and/or mutiple pipelines
Asked by Hern?n Vignolo:

Hi there!

I'm wondering if there's any chance to control which are the mandatory steps in a pipeline. By *mandatory* I mean: I have 2 steps and I always want to run step 2 regardless of the step 1 final status. I know that the after-script config is an option, but I'm looking for something else.

For example, something like this:

```
image: python:3.10

pipelines:
  default:
    - step:
        name: Step 1
        services:
          - docker
        script:
          - echo "This step will run and might fail"
          - exit 1
    - step:
        name: Step 2
        services:
          - docker
        script:
          - echo "This step will run regardless of Step 1"?
```

Is there any config like mandatory: false for a given step?

Additionally, I wonder if there's a way to have more than just one pipeline (something like bitbucket-pipelines-2.yml), like in Github where I can create several ones in the .github/workflows directory and each one runs independently, and I can configure which pipeline must block a PR merge for example.

Thanks!


Answers:
author: Syahrul
body: G'day, [@Hern?n Vignolo](/t5/user/viewprofilepage/user-id/5345842)

Welcome to the community.

In a serial step process, when a step fails, the build exits with code 1, and the pipeline is considered to have failed. While Bitbucket Cloud doesn't provide a direct way to configure a step as 'mandatory,' it is possible to instruct the pipeline not to exit the process with a non-zero exit code. This allows the pipeline to proceed to the next steps, even if the step has failed.

This method utilizes "set +e" on the commands that you suspect may failed. For example:

```
image: python:3.10

pipelines:
  default:
    - step:
        name: Step 1
        services:
          - docker
        script:
          - set +e echo "This step will run and might fail"
    - step:
        name: Step 2
        services:
          - docker
        script:
          - echo "This step will run regardless of Step 1"?
```

This will force Step 2 to trigger even if the commands in Step 1 failed. We have a KB that explains this more in-depth at:

[Pipelines builds succeeds even on command failure](https://confluence.atlassian.com/bbkb/pipelines-builds-always-succeeds-even-on-exit-code-status-on-non-zero-1142437808.html)

Regarding having two bitbucket-pipelines.yml, this is unfortunately not possible but if you are looking into triggering it separately, you may consider using pipeline start conditions to specifically trigger specific pipeline build independently:

[Pipeline start condition](https://support.atlassian.com/bitbucket-cloud/docs/pipeline-start-conditions/)

I hope this helps.

Regards,  
Syahrul

comments: author: Hern?n Vignolo
body: Thanks!


Tags: bitbucket-cloud

cloud
Create your first pipeline button missing
Asked by Josh Grafman:

While following: [Configure your first pipeline \| Bitbucket Cloud \| Atlassian Support](https://support.atlassian.com/bitbucket-cloud/docs/configure-your-first-pipeline/), there is no button "Create your first pipeline". I cannot get access to any of the pipeline templates after exploring for quite a while. I could create the .yml from scratch, but I would rather start with a template.  

Pipelines are enabled on my repo, and I am an admin for the repo. What is going on?


Answers:
author: Ben
body: Hi Josh,

If Pipelines is already enabled from **Repository Settings \> Pipelines** , please disable it - clear your cache, and then access the Pipelines menu again from the left-hand sidebar. Are you able to click the **"Create your first pipeline"** button then?

If not, please try a different browser (or Incognito mode if using Chrome) with cache cleared to see if this makes any difference.

Let me know how this goes.

Cheers!

- Ben (Bitbucket Cloud Support)


Tags: bitbucket-cloud

bitbucket-pipelines

cloud
Auto merge not working even when pull request passed all checked without any error
Asked by vnaren26:

Hi Team,

I have opted into the "Allow automatic merge when builds pass" under the branch permission.

But when I create a pull request, and it runs the pipeline, all pipeline steps work fine, after that other member approve the PR, and my PR has passed all checks applied properly, but this PR does not merge automatically to the destination branch,

can you please suggest why it does not merge automatically as I supposed it should be merged when other member approved that PR?

![Screenshot 2023-10-20 at 4.56.47 PM.png](/t5/image/serverpage/image-id/287460iCC7988A99BD5EC00/image-size/large?v=v2&px=999 "Screenshot 2023-10-20 at 4.56.47 PM.png")


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

This option works as follows:

When you have all required merge checks except successful builds completed, you can select the **Merge** button in the pull request to request a merge of the PR. When the builds are completed, the PR will be merged automatically. You will also need to have the option **Prevent a merge with unresolved merge checks** checked, to prevent a merge with unresolved merge checks.

This option is useful when the builds take a long time to complete while all the other merge checks are completed. If your builds are completed successfully before all the other checks (like approvals), you can then merge the PR after the other checks are completed.

You can read more info in this blog post:

* <https://bitbucket.org/blog/automatic-merging-when-builds-pass>

Please feel free to reach out if you have any questions.

Kind regards,  
Theodora


author: Saxea _Flowie_
body: Hi [@vnaren26](/t5/user/viewprofilepage/user-id/5345758)

The auto merge feature of [Flowie](https://flowie.app/docs/en/plugins/merge) works in the way you are expecting.

Please feel free to reach out if you need any assistance configuring it.


Tags: bitbucket-cloud

branch

cloud

permission