youngmon/atlassian-qna huggingface dataset:
Deploying .Net core application using Bamboo
Asked by Sanjay:

Hi,

I have a .net core application that I build using bamboo successfully. But now whenever I try to deploy it using bamboo, I am getting

Error Code: ERROR_SITE_DOES_NOT_EXIST  

More Information: Site 'Default Web Site' does not exist. Learn more at: <http://go.microsoft.com/fwlink/?LinkId=221672#ERROR_SITE_DOES_NOT_EXIST>.  

Error count: 1.

I want to deploy this application as a web site and not as a web application. Am I missing some setting?

Regards

Sanjay Shenvekar


Answers:
author: Jimmy Seddon
body: Hi [@Sanjay](/t5/user/viewprofilepage/user-id/2552992),

It sounds like you are trying to do a web deploy of your site using Bamboo. If I remember correctly the site needs to exist before you can web deploy to it. So you either need to incorperate that as a task (a check to see if the site exists and create it if it doesn't). Or you will need to make sure to create the website head of letting Bamboo run the deployment job.

I hope that helps.

-James

comments: author: Sanjay
body: I am running below inline query as the script to deploy the application on IIS

"C:\\Program Files\\IIS\\Microsoft Web Deploy V3\\msdeploy.exe" -verb:sync -source:package="${bamboo.build.working.directory}\\\*\*\*\*.zip" -dest:auto,ComputerName="destserver/MsDeployAgentService",AuthType='NTLM'

The site is already exist on the destination server with the application pool.

The only thing I am expecting here is to deploy the published contents into the specific folder.

Although I don't know how to mention the exact folder in the script above


author: Jimmy Seddon
body: Hi [@Sanjay](/t5/user/viewprofilepage/user-id/2552992),

We always use the \<Package_Name\>.deploy.cmd file that gets included in the zip package when we publish the web deploy package locally instead of performing it the way you have listed above.

Based on the error what you might want to check is to make sure that the user account that is running the Bamboo server service has the proper access rights to the destination web server since that is the user that will be running this job. That might be a reason you are seeing that the site doesn't exist.

I hope that helps.

-James


author: Sanjay
body: Hi James,

I am the admin and I do all the deployment on servers (including prod deployments). hence the access should not be an issue

Of course the Default web site is not there. As I mentioned earlier, i would like to create a Web site and not a web application inside default web site
Bamboo Release Version is appending (2)
Asked by Erik Anderson:

We have a plan that recently started appending (2) to the release version e.g. 1.0-BUILD9_(2)

Our release version is set to ${bamboo.maven.version}-BUILD${bamboo.buildNumber} and the ${bamboo.buildNumber} is BUILD9.

What could be causing it to append a (2) to the release?


Answers:
author: Jimmy Seddon
body: Hi [@Erik Anderson](/t5/user/viewprofilepage/user-id/3273112),

Welcome to the Community!

Anytime I have seen that happen it has been because someone tried to create a release with the same name/number as a release that already exists. You should check to make sure that someone isn't creating multiple releases from the exact same build.

I hope that helps.

-James
How to connect to jira cloud from my hosted bamboo?
Asked by Luis Mendez:

I have bamboo installed in ubuntu oracle on port 4500. When I try to connect to Jira Cloud or Bitbucket Server I get the following error.

![image.png](/t5/image/serverpage/image-id/56297iE1CBCE23FCDCC477/image-size/large?v=v2&px=999 "image.png")

I read in a post that could be because my bamboo does not run in ports 80 and 443. In that case if I do not want to go to those ports, what solution could you give me?


Answers:
author: Ellie Z _they_them_
body: Hi [@Luis Mendez](/t5/user/viewprofilepage/user-id/2985132)

Thank you for reaching out to the Atlassian Community!

Unlike Jira Cloud, Bitbucket Cloud does not need an Application link, although both need Bamboo to be available on port 80 or 443. Bamboo's default port -- 8085 -- may also work as well. Please see *[Link to server products from Cloud](https://confluence.atlassian.com/cloud/link-to-server-products-from-cloud-744721656.html)* and *[Functional differences in Atlassian](https://confluence.atlassian.com/cloud/functional-differences-in-atlassian-cloud-744721664.html)* [Cloud](https://confluence.atlassian.com/cloud/functional-differences-in-atlassian-cloud-744721664.html) for more detail.

To use Bitbucket Cloud for your source code repository, you can add a Linked repository through **Administration \> Linked repositories**.

----

Please note: Due to a change in the Bitbucket Cloud API for compliance with GDPR privacy regulations, we currently cannot link Bitbucket Cloud repositories to Bamboo. As part of the update, a variable containing information that Bamboo expects in the JSON response from Bitbucket was removed.

This resulted creation of new Linked repositories of type "Bitbucket Cloud" failing with 401 (Unauthorized) exceptions. You may see an "Invalid username" error message in the Bamboo UI.

As a workaround, we recommend creating Linked repositories of type **[Git](https://confluence.atlassian.com/bamboo/git-289277007.html)** or **[Mercurial](https://confluence.atlassian.com/bamboo/mercurial-289277014.html)** to connect to your [Bitbucket Cloud](https://confluence.atlassian.com/bamboo/bitbucket-cloud-289277000.html) repositories.

For more information, please follow our public bug report:

* [BAM-20455 - Cannot save Bitbucket cloud repository](https://jira.atlassian.com/browse/BAM-20455)

We have been working with the Bamboo developers to create a hotfix for this issue, which we expect to be available next week.

----

We sincerely apologize for any inconvenience this may cause. Please do not hesitate to reach out if you have any questions or concerns.

Regards,  
Elias Zeidan \| Bamboo Support

comments: author: Luis Mendez
body: Thanks you [@Ellie Z _they_them_](/t5/user/viewprofilepage/user-id/50795) . I will be using one of these ports,  
7990, 8060, 8080, 8085, 8090, 8443, specified in this link:

[Available ports for connecting to external applications](https://confluence.atlassian.com/cloud/functional-differences-in-atlassian-cloud-744721664.html?_ga=2.140903730.1602830080.1559649590-142481033.1552478028 "Available ports for connecting to external applications")


Tags: atl-bam-20455
Failing task since return code of [E:\bamboo-home6_2\temp\250740737-250806273-255852637-ScriptBuildT
Asked by rnaveen:

Failing task since return code of \[E:\\bamboo-home6_2\\temp\\250740737-250806273-255852637-ScriptBuildTask-3094521643080156511.bat\] was 255 while expected 0


Answers:
author: Nic Brough -Adaptavist-
body: We don't know what your build scripts are trying to do, but a 255 return code is a failure. You'll need to look at the logs of the build and hope your script logs where it is failing.

comments: author: rnaveen
body: we are triggering .exe through bamboo.. and after some time of execution we are getting above exception. do you think its related to code side issue or bamboo issue ?


author: Nic Brough -Adaptavist-
body: It's the code. Bamboo is running a build task, that task is telling Bamboo "I failed, with error number 255". You need to look at why that task is failing.
How to get deploymentResultId using REST API?
Asked by Dmitrij Kultasev:

How can I get deploymentResultId for specific deployment?


Answers:
author: Daniel Santos
body: Hello [@Dmitrij Kultasev](/t5/user/viewprofilepage/user-id/1701308)

I hope you are doing great!

Let me share a couple of steps you can use to get this information knowing just the plan associated with a given deployment.

1. Get the \<PLAN_KEY\> and run the following request:

   ```
    curl -u <USER>:<PASSWORD> \
         -X GET -p <BAMBOO_URL>/rest/api/latest/deploy/project/forPlan?planKey=<PLAN-KEY> \
         | jq -r '.[] | "Name: " + .name + "\tdeploymentId: " + (.id|tostring)'
   ```

   It should give you a result like:

   ```
    Name: <DEPLOYMENT_NAME>? ? ? ?deploymentId: <DEPLOYMENT_ID>
   ```

2. Get the \<DEPLOYMENT_ID\> and run:

   ```
   curl -u <USER>:<PASSWORD> \
        -X GET -p '<BAMBOO_URL>/rest/api/latest/deploy/project/<DEPLOYMENT_ID>' \
        | jq -r '.environments[] | "Name: " + .name + "\tenvironmentId: " + (.id|tostring)'
   ```

   As a result, you should get:

   ```
    Name: <ENVIRONMENT_NAME>? ? ? environmentId: <ENVIRONMENT_ID>
   ```

3. Following the same idea, get the \<ENVIRONMENT_ID\> and run:

   ```
   curl -u <USER>:<PASSWORD> \
        -X GET -p '<BAMBOO_URL>/rest/api/latest/deploy/environment/<ENVIRONMENT_ID>/results' \
        | jq -r '.results[] | "Version" + .deploymentVersionName + "\tdeploymentResultId:" + (.id|tostring)'
   ```

   This one should give you the deploymentResultId you need:

   ```
    Version: release-XX deploymentResultId: <ENVIRONMENT_RESULT_ID>?
   ```

   <br />

   ??Please notice that the above request use both [jq (command-line JSON processor)](https://stedolan.github.io/jq/) to simplify filtering the results.

I hope that helps.

comments: author: Dmitrij Kultasev
body: [@Daniel Santos](/t5/user/viewprofilepage/user-id/502125) that's not what I needed. That's the ID I'm looking for to be used in [/deploy/result/{deploymentResultId}](https://docs.atlassian.com/atlassian-bamboo/REST/6.1.0/#d2e2590) .

I might go wrong direction, but I want to find last successful deployment for specific plan.

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


author: Daniel Santos
body: Hi [@Dmitrij Kultasev](/t5/user/viewprofilepage/user-id/1701308)

Please give the steps above a chance. They will give you exactly a list of **deploymentResultId**s for a given environment.

This is the relationship between the plan and a given deploymentResultId**:**

* **Build plan \>\> Deployment Project Id \>\> Deployment Environment Id \>\> deploymentResultId**

I just tested these steps again. They should give you exactly what you want.  
Please let me know if you face any issues to follow them.


author: Dmitrij Kultasev
body: yes, that works. Sorry.


author: Daniel Santos
body: No worries, sorry for not being clear in my first message.  
I see you in the next thread!
Deployment variables
Asked by Asim AlTwaijri:

Hello,

i'm trying to use deployment variables as follows:

```
 image: node:8.12.0 

 definitions:
 steps:
 - step: &build-stg-angular
 caches:
 - node
 script: # Modify the commands below to build your repository.
 - credentials="${server_username}@${server_ip}"
 - npm install
 - npm run build-stg -- -c ${client}



 pipelines:
 custom:
 asim-stg:
 - step: *build-stg-angular
 - step:
 name: Deploy to staging server.
 deployment: asim-stg
 script:
 - echo "Deploying"
```

but it doesn't recognise the variables!


Answers:
author: Marcin Gardias
body: I think you want to address Bitbucket Pipelines community, not Bamboo

comments: author: Asim AlTwaijri
body: Oh- sorry


author: Asim AlTwaijri
body: <https://community.atlassian.com/t5/Bitbucket-Pipelines-questions/deployment-variables-not-working/qaq-p/1096367>


Tags: bitbucket-pipelines
API call /{environment id}/results only give you the details of the last 10 deployments?
Asked by gloriatie:

I'm trying to get all of the deployments of a particular environment, but I noticed that my results only show the last 10 deployments. Does anyone know how to get the history of deployments further back than the last 10?


Answers:
author: Marcin Gardias
body: This is paginated resource; you can use start-index and max-results parameters to get older results

for instance http://myBamboo/..../{environmentId}/results?start-index=10\&max-results=25

comments: author: gloriatie
body: Is there a call to get all of the old results/ max results in general?


Tags: deployment
How can I send the ticket I've created in Slack to an Epic/Board?
Asked by Joseph Vang:

I'm creating a workflow in slack in our support channel. I have a button that create a Jira ticket for each request.   

When the ticket is created, I want it to send it to a certain Epic/Board. I was told I would have to make a filter and build the board with that issue filter.


Answers:
author: Dennis Leon
body: Hello,

To send a Jira ticket created in Slack to a specific Epic/Board, you'll need to set up a Jira filter that captures all the issues you want to appear on that board. Here's a step-by-step guide to help you with the process:

Create a Jira Filter:  
Go to your Jira dashboard and create a new filter that specifies the criteria for issues to be included in your Epic/Board.

For example, you can use the JQL (Jira Query Language) to create a filter like project = XYZ AND issuetype = Epic to capture all epics in project XYZ.

<br />

Build the Board with the Issue Filter:  
Navigate to the board where you want to add the issues.  
Go to the board settings and select 'General'.  
In the 'Filter' section, select the filter you created earlier.  
Automate the Process:  
Use Jira's automation rules to automatically add issues to the Epic/Board/[Affordable Care Act](https://www.health-insurancemarket.com) based on the filter.  
Create a rule with the trigger "Issue created".  
Add an action to modify the issue, such as setting the 'Epic Link' field to the ID of your desired epic.  
Integrate with Slack:  
Ensure that your Slack workspace is connected to your Jira Cloud instance.  
Use the /jira connect command in Slack to connect your Jira project to a Slack channel.  
When creating a ticket in Slack, make sure it meets the criteria of the filter so that it will be automatically added to the board.  
By following these steps, you should be able to streamline the process of sending tickets from Slack to a specific Epic/Board in Jira.

comments: author: Joseph Vang
body: I was able to send my tickets to an Epic/Board by just making the Epic Number a parent. Then assign the Parent inside Jira Cloud the value of the Epic Number.

Thanks Dennis for the help/insight!

![Screenshot 2024-05-23 at 4.47.48?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/325728i2E947BFB09209EBC/image-size/large?v=v2&px=999 "Screenshot 2024-05-23 at 4.47.48?PM.png")


Tags: cloud

jira-service-management

jira-service-management-cloud
Hide field from Request form to issue view
Asked by Badet Cl?ment:

Hello,

I would like to use my custom field "Template Description" on the request form when I create an issue, but I don't want to show it when I view the issue (because I use an automation to replace my description (system) with my template description).

Currently, when I create a new ticket, I have two descriptions: my Template Description and my Description (a copy of what I wrote in my template).

Jira says that all fields from the request form are displayed. Do you have any idea how I can resolve this?

Thank you,

Cl?ment


Answers:
author: Vijay Dadi
body: Hello [@Badet Cl?ment](/t5/user/viewprofilepage/user-id/5501378) ,

If it is custom field, you can remove that field from Issue View / Issue Edit screens. That should do the magic. Hope that helps !

Vijay

comments: author: Badet Cl?ment
body: I don't find my field in Issue view, i can't remove it (in require type) :

![2024-05-21 09_32_53-\[TKT-3054\] test cba - Ignimission Jira.png](https://community.atlassian.com/t5/image/serverpage/image-id/324948iDA6C1F40A7C4F134/image-size/large?v=v2&px=999 "2024-05-21 09_32_53-[TKT-3054] test cba - Ignimission Jira.png")![2024-05-21 09_37_57-Helpdesk Ignimission - Request types - Service project - Ignimission Jira.png](https://community.atlassian.com/t5/image/serverpage/image-id/324950iAD30FF9A33843FD2/image-size/large?v=v2&px=999 "2024-05-21 09_37_57-Helpdesk Ignimission - Request types - Service project - Ignimission Jira.png")![2024-05-21 09_39_31-Helpdesk Ignimission - Request types - Service project - Ignimission Jira.png](https://community.atlassian.com/t5/image/serverpage/image-id/324951i41D5417C177EBC78/image-size/large?v=v2&px=999 "2024-05-21 09_39_31-Helpdesk Ignimission - Request types - Service project - Ignimission Jira.png")


author: Vijay Dadi
body: Not from here. You have to remove it from screen configurations.

Settings --\> Issues --\> Screens


author: Badet Cl?ment
body: My custome field is only associate with my Creat screen, not associat to my View screen :

![2024-05-21 10_19_23-Associate field TemplateDescription to screens - Ignimission Jira.png](https://community.atlassian.com/t5/image/serverpage/image-id/324967i5749ED9AD6CD8C54/image-size/large?v=v2&px=999 "2024-05-21 10_19_23-Associate field TemplateDescription to screens - Ignimission Jira.png")

I just want to hide my template in the details issue view


Tags: cloud

custom-field

issue-view

jira-service-management

jira-service-management-cloud

required-field
Is it possible to restrict JSM access only to customers who have a Jira account?
Asked by Ana Luiza Chagas:

Hi Team!  

My organization and I are looking for ways to restrict access to one of our Jira Service Management Cloud service channels so that only customers who have Jira accounts can access it.  

Does anyone know if this is possible or have you seen something similar?  

Thank you in advance for your help!


Answers:
author: Mikael Sandberg
body: Yes, that is possible. It all depends on who you give access to your project. So you could just give access to the group that also gives your customers access to Jira.

comments: author: Ana Luiza Chagas
body: Could you explain this alternative to me better? We have a portal that can be opened and another that only users who have a Jira account can access

Thanks!


author: Mikael Sandberg
body: As [@Rodney D_Souza](/t5/user/viewprofilepage/user-id/5220781) mentioned you can either set the project to be open or restricted, and this controls who can submit requests to this project by email, widget, or the portal. If you set the customer permissions to restricted you can manage the access by going to Project settings \> People and the users that are listed as having the role Service Desk Customers will have access to your project.


author: Ana Luiza Chagas
body: Hi Team!

I was able to restrict one of the portals, in project settings \> people, by adding a group of users and assigning them the Service Desk Customers permission.  
Therefore, customers who are not part of this group and who do not have this permission will not be able to access the other portal :)

Thanks for your help [@Mikael Sandberg](/t5/user/viewprofilepage/user-id/853579) and [@Rodney D_Souza](/t5/user/viewprofilepage/user-id/5220781)


author: Rodney D_Souza
body: How about adding "jira-software-users" as the only people with a Project role of 'Service Desk Customer' under the 'People' section of your project settings?

Of course, your JSM portal should also be set to restricted, not open.

comments: author: Ana Luiza Chagas
body: Could you explain this solution better to me? Would I have to invite users again after restricting access to the portal?

Thanks!


author: Rodney D_Souza
body: Each portal (project) can be set individually to either be open, or restricted. So, you can leave your open project as-is, just modify the other one.


author: Ana Luiza Chagas
body: Right! but would I need to add the users back to the portal after the restriction? Isn't there a way to restrict it to only users who don't have a Jira account?


Tags: access

cloud

jira-service-management

jira-service-management-cloud
Automation rule to add labels for subtask based on issue type of the parent
Asked by Simon Sahli:

Hi Atlassian community,  

do you know if it possible to have an automation rule that adds a specific label when creating a subtask based on the **issue type of the parent task** ?  

We are having several issue types in one project, but all of these issue types have the same subtask issue type. Thus is is not really possible to filter for subtask only from a specific parent issue type (as far as I know).  
Thus the idea would be to automatically add a label, with an automation rule, whenever a new subtask is created that allows to filter for this.  

If not possible then I am wondering if it might be a good idea (best practice) to have a separate issue type for each subtask and not one subtask issue type for all parent task.  
Would that be a good idea in general? Any downsides?  

Best regards,  
Simon


Answers:
author: Kalyan Sattaluri
body: Hello [@Simon Sahli](/t5/user/viewprofilepage/user-id/5214924)

{{issue.parent.issuetype.name}} smart value gives you the Issue type of the parent of the sub task.

So you could write a rule, which looks for when sub-task is created, once triggered, you can check the issue type of parent and add you label. Like below screenshot.

Please note, screenshot is of data center but cloud steps should be the same..

If your requirement is diff, please clarify.

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


author: Simon Sahli
body: Hi [@Kalyan Sattaluri](/t5/user/viewprofilepage/user-id/5312306)  
thanks a lot, that is exactly what I needed!  
The automation functionality with the Atlassian Cloud is just awesome!  

In the Cloud it is even simpler than in DC, I just needed to have the smart value {{issue.parent.issuetype.name}} and compare it directly with the name if the parents issue type and it worked as expected.   
See  

![AutomationRule_Labels.png](https://community.atlassian.com/t5/image/serverpage/image-id/324945i6F467DACAB4AF3AB/image-dimensions/371x344?v=v2 "AutomationRule_Labels.png")  

I am happy and thanks again!


Tags: automation

cloud

jira-service-management

jira-service-management-cloud
Guidance Needed for Unifying Jira Service Management Instances
Asked by Edgardo Ibarra:

Hi Community,

We currently have three separate instances of Jira Service Management and are considering unifying them into a single instance. We've realized it's unnecessary to keep them separate and would like to understand the implications and potential impacts of this unification.

We'd appreciate any guidance or documentation you can share on this topic. What key points should we consider during this process?

Thank you in advance for your help!

Best regards,

Edgardo Ibarra


Answers:
author: Robert Wen_ReleaseTEAM_
body: He [@Edgardo Ibarra](/t5/user/viewprofilepage/user-id/5267716)

Right now, what I see is that using Copy Product Data to consolidate JSM projects to a single site is that it doesn't do all of the JSM data. Shortcomings include Assets, automations, and forms. So your migration plan is going to have to figure out ways of moving those over.

The complete list is here <https://support.atlassian.com/organization-administration/docs/what-product-data-is-copied/>


Tags: cloud

jira-service-management

jira-service-management-cloud
Atlassian Guard support
Asked by Jonathan Garc?a:

Hello,

We need to launch a public contract as soon as possible and for the tender we need to know the SLA support levels. Can you tell me the SLAs?

Thank you very much.


Answers:
author: Jehan Bhathena
body: Hi [@Jonathan Garc?a](/t5/user/viewprofilepage/user-id/5373456)

Is this what you're looking for <https://support.atlassian.com/subscriptions-and-billing/docs/service-level-agreement-for-atlassian-cloud-products/> ? This applies to all the Atlassian Cloud products, so should apply to Atl. Guard as well.

You may want to get in touch with the Atlassian Support for more detailed or granular info for this.


Tags: cloud

jira-service-management

jira-service-management-cloud