youngmon/atlassian-qna huggingface dataset:
CP Command always return "permission denied"
Asked by Marc Bank:

Hi,

i run bamboo on my server besides tomcat and i want to make a copy command from "script" task of bamboo to the tcat webapps folder.

**If i run (inline script):**

cp /var/atlassian/../TestApp.war /opt/tomcat/webapps

```
cp: cannot stat '/opt/tomcat/webapps/TestApp.war': Permission denied
```

**If i run the shell:**

su - bamboo  
cp /var/atlassian/../TestApp.war /opt/tomcat/webapps  

=\> everthing is fine

++**background:**++

* Also tried with file script =\> same result
* bamboo is owner of the tomcat folder (\&webapps)
* bamboo is owner of his home dir and the build dir

I am at a loss. The entire configuration was a homerun. A line script stops everything.  

Thank you in advance! Cheers for Atlassian and their incredible products!

Marco


Answers:
author: Lars Olav Velle
body: Silly question, but does bamboo actually run as the bamboo user?

Does the file TestApp.war already exist?

-Lars

comments: author: Marc Bank
body: hi,

1. yes. maybe there is a way to determine this?

2. yes, but tested without (after removing)

thanks lars!


author: Lars Olav Velle
body: ps aux \| grep bamboo should list bamboo as the running user (first thing on the line)

Try cp -f /var/atlassian/../TestApp.war /opt/tomcat/webapps to overwrite the file. (I think this is what causes the error)


author: Marc Bank
body: Oh no. -force does the trick. sorry and thanks!

While i was investigating the console says "whoami" "bamboo" inside inline script.

Thanks a lot lars!


author: Lars Olav Velle
body: No worries Marc! That\`s why we are here.

Please mark the answer as solved

Cheers,

Lars, Kantega Single Sign-on


Tags: script
How can I get VSTest Runner Task to Respect TestCaseFilter TestCategory?
Asked by AW:

VSTest Runner tasks from Bamboo server still seem to want to use an older way of doing things with .runsettings or .testsettings files, but I'm trying to use some of the more recent command line options documented here - <https://msdn.microsoft.com/en-us/library/jj155796.aspx>

Specificlally, I want the ability to utlize this switch flag:
> /TestCaseFilter:"TestCategory=Bamboo"

I can run the following from the command line which seems to work, but I can't get the same results in Bamboo becuase the VSTest Runner task is running all of the tests.

Can somebody help me get my Visual Studio TestCategory filters working with Bamboo? Should I be using another task test runner instead of VSTest?

```
 "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow\vstest.console.exe" Website\Web.Tests\bin\Debug\Web.Tests.dll /TestCaseFilter:"TestCategory=Bamboo" 
```


Answers:
author: Stuart Clode
body: I agree. It's a shame that the VSTest Runner Task does not have an Arguments field. In the end, i used the Command Runner Task to achieve what i wanted to do - basically using the TestCaseFilter flag.


author: Tamas Nagy
body: It seems that only basic parameters are supported in the VSTest Runner task. This is clearly not enough for large .NET projects. VSTS supports this since 2012 (<https://blogs.msdn.microsoft.com/vikramagrawal/2012/07/23/running-selective-unit-tests-in-vs-2012-rc-using-testcasefilter/>).

Jenkins supports test filter criteria as well (<https://wiki.jenkins.io/display/JENKINS/VsTestRunner+Plugin>).

Why Bamboo is not catching up with these tools?


author: AW
body: I would also be interestd in more complex filtering scenarios using conditions like this documented here - <https://github.com/Microsoft/vstest-docs/blob/master/docs/filter.md>
Failing task since text 'BUILD SUCCESS' was not found in last 250 log entries" error message
Asked by poovaraj:

Why is Bamboo throwing "Failing task since text 'BUILD SUCCESS' was not found in last 250 log entries" error message after success build ? How to fix this issue ?

Job : Maven 3.x version

Java Version : 1.8


Answers:
author: Jeyanthan I
body: Hi,

Bamboo generally checks Maven return code and searches the log for *BUILD SUCCESS* message if you have checked the option **Use Maven return code** in [Maven task](https://confluence.atlassian.com/bamboo/maven-289277038.html) under Advanced options section.

Did you check the Build logs? In that, if you see BUILD SUCCESS message somewhere just above the last 250 lines, you can just increase the [SUCCESS_MESSAGE_LINES](https://confluence.atlassian.com/bamboo/bamboo-indicates-that-my-ant-or-maven-builds-failed-even-though-they-were-successful-289277388.html) in Bamboo [system property](https://confluence.atlassian.com/bamboo/configuring-your-system-properties-289277345.html).

comments: author: poovaraj
body: It is working fine after selecting Use Maven return code in Maven task under Advanced options section.

Thank you


author: Jeyanthan I
body: Awesome! Glad it helped.
Bamboo - Generate logs in html file
Asked by kuldeep dayma:

Hello Team,

Well, I'm stuck at one place where I want to generate the log file in ".html" format rather than ".log" file format.

Can anyone help on this? attached is the snap where I need to generate the ".html" file.

My requirement is, I need to give on the hyperlink to navigate to a specific report from the log file but for ".log" file I can't add that HTML tag, hence I want bamboo to generate a log file in HTML format.

Looking forward to hearing from you!

Thank you in advance.

**Note:** Check border area for "Download" or "view" link on the bottom right side in attached image.

Regards,

Kuldeep

![BambooLogTab.PNG](/t5/image/serverpage/image-id/5066iCC83538CBC8D8A78/image-size/large?v=v2&px=999 "BambooLogTab.PNG")


Answers:
author: Christian Glockner
body: Hi Kuldeep,

I'm not sure I understand the reason why you need the log to be in HTML format - you can link to any file of any type, including the plain log file in text format. You can just copy the URL from the link entitled **Download** and use that.

Cheers,

Christian

Premier Support Engineer

Atlassian

comments: author: kuldeep dayma
body: Hi Christian,

Thanks for your inputs, the thing is, I need log file in HTML format so that I can directly click on URL and can navigate to the browser rather than copy manually and paste it into the browser.

So, is there any way to achieve this?

Thanks,

Kuldeep


author: kuldeep dayma
body: Current Flow:

When I click on "logs" tab I can see two options 1. View 2. Download logs.

Once I click on either "view" or "download", I can open or download the file with ".log" extension, where I can see the logs activity, inside this file, there is one link generated, and I can copy that link and can paste it into the new browser tab.

But what I want is: I should be able to generate the link and directly navigate into browser once I click on that link rather than copy and paste process.
Error when launching karma phantomjs browser based bamboo task
Asked by Matt Lupo:

Running bamboo server on windows 2012 r2 machine. I can remote into the server and run this script successfully. When launching it in a plan, I receive the following error regarding the karma phantom js browser:

|------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|
| a 22-Aug-2017 15:58:31 | 22 08 2017 15:58:31.787:INFO \[karma\]: Karma v1.7.0 server started at <http://0.0.0.0:9876/>                                                       |
| 22-Aug-2017 15:58:31   | 22 08 2017 15:58:31.787:INFO \[launcher\]: Launching browser PhantomJS with unlimited concurrency                                                   |
| 22-Aug-2017 15:58:31   | 22 08 2017 15:58:31.803:INFO \[launcher\]: Starting browser PhantomJS                                                                               |
| 22-Aug-2017 15:58:32   | **22 08 2017 15:58:32.522:ERROR \[phantomjs.launcher\]: SetProcessDpiAwareness failed: "COM error 0x80070005 (Unknown error 0x0ffffffff80070005)"** |
| 22-Aug-2017 15:58:32   |                                                                                                                                                     |
| 22-Aug-2017 15:58:32   |                                                                                                                                                     |
| 22-Aug-2017 15:58:32   | \[at-loader\] Ok, 3.39 sec.                                                                                                                         |
| 22-Aug-2017 15:58:36   | 22 08 2017 15:58:36.695:INFO \[PhantomJS 2.1.1 (Windows 8 0.0.0)\]: Connected on socket uPIKC5VZo_zbQSQiAAAA with id 74417553                       |


Answers:
author: Matt Lupo
body: I read that discussion as well, and I did add the interactwithdesktop ability to the Apache Tomcat Bamboo Service, which I'm assuming is the only service Bamboo uses. Still get the same error.


author: Jeyanthan I
body: Upon Googling, I found [this discussion](https://github.com/ariya/phantomjs/issues/14095#issuecomment-277198029) mentioning that it could be due to windows restriction of not being able to run GUI apps if the parent process is a service.

If you are running Bamboo as a service, can you add [InteractWithDesktop ability](https://lostechies.com/keithdahlby/2011/08/13/allowing-a-windows-service-to-interact-with-desktop-without-localsystem/) to your Bamboo service account and see if it helps?


Tags: karma

phantom.js
Execute remote windows batch file from bamboo cloud
Asked by Kiran Kumar Bandari:

Hi,

Presently we have cloud version of Bamboo

<https://bamboo-qa.basf.net/allPlans.action>.

I have a batch file run_script.bat in my local machine. Can you please let me know how to setup a Bamboo plan/job to call the windows batch file. Because the script needs Worksoft environment which is present on my laptop. I just need to run this batch file from Bamboo Cloud.

PLease give me in detail steps.


Answers:
author: Alexey Chystoprudov
body: First of all I'd suggest to remove Bamboo Cloud reference from your question and label. Bamboo Cloud was dismissed year ago so you probably talk about Bamboo Server.

You have at least two options to execute some file from your laptop by Bamboo which is running at other server.

1. First option is described by [@Jeyanthan I](/t5/user/viewprofilepage/user-id/1124775): setup SSH access to your laptop from other server and use SSH task which can be executed on Bamboo local agent

2. Setup remote agent on your laptop and use Script task to execute bat file from your laptop's disk. You need to configure you Bamboo job to be didicated to remote agent hosted on your laptop


author: Jeyanthan I
body: How about using an [ssh task](https://confluence.atlassian.com/bamboo/using-the-ssh-task-in-bamboo-306348532.html) in Bamboo to login to your Windows machine and execute your batch script from cmd prompt?

Note that you will have to install SSH server on your machine, so that Bamboo can ssh into your machine. Latest version of [Windows now comes with SSH server](https://www.reddit.com/r/Windows10/comments/4w4sew/windows_10_has_a_native_ssh_server/) by default.

Hope that helps.

comments: author: Kiran Kumar Bandari
body: You mean that I have to intall SSH server on my local machine which is a windows 8.1 ( Not a server) and then generate the SSH keys. Also when I set up SSH task in Bamboo it is asking for username and password. Can I give my userID and PWD or Do I need Admin user. My local machine and Bamboo cloud are in the same LAN network. Please suggest.
Find Project ID February 2024
Asked by Robin Stemmers:

Good Day All

In the past I was able to find the Project ID on the back of the Project URL when clicking on the Details tab under Project Settings.

When I try to get the ID today (16Feb2024), this is not reflecting there.

How else can I get the Project ID?


Answers:
author: Kseniia Trushnikova
body: Hey [@Robin Stemmers](/t5/user/viewprofilepage/user-id/2666334),

You can find the project id by accessing the following URL:

```
yourdomain.atlassian.net/rest/api/latest/project/projectkey
```

This will provide the project id in the parameter "self".

comments: author: Robin Stemmers
body: Hi  
I got an error message:

```
{"errorMessages":["No project could be found with key 'projectkey'."],"errors":{}}
```


author: Robin Stemmers
body: When i removed the section /projectkey, i am able to find all the projects with their IDs.

Thanks


author: Kseniia Trushnikova
body: [@Robin Stemmers](/t5/user/viewprofilepage/user-id/2666334), replace 'projectkey' with your project key.

For example, if you have a project with the key HELPDESK, open URL 'yourdomain.atlassian.net/rest/api/latest/project/HELPDESK' to find out its id.

And you're right. To browse all project id, open this:

```
yourdomain.atlassian.net/rest/api/latest/project
```


Tags: cloud

jira-service-management

jira-service-management-cloud
Best practices for grouping and bulk editing similar requests
Asked by Rebekka Heilmann _viadee_:

I am looking for ways to group similar Requests so I can achieve the following:

- Make one Request the "main" request and work on that

- Update the "main" Request and (choose to) automatically update all related Requests

- Overview of all related requests

Are there any solutions that aren't purely based on linking issues and building automation rules to keep them updates?

I know of the function to select multiple Requests in a Queue and bulk edit (including comments) those. However, when working with a large number of requests I would manually mark all relating issues first. The "bulk edit" feature would be nice to have in the Issue link section of an Issue.


Answers:
author: Jack Brickey
body: Hi [@Rebekka Heilmann _viadee_](/t5/user/viewprofilepage/user-id/5182395) , this has always been a missing component in JSM IMO. I know that another product I used had a better implementation for this by providing a "merge" feature. In fact there is an open issue ([JSDCLOUD-4685](https://jira.atlassian.com/browse/JSDCLOUD-4685) ) for this very thing. However, it is very old and as you will see in the last response from Atlassian, it isn't currently planned. Their response is to use linking.

So in summary, if you wish to stay within the native app, linking is the solution. There is also the "[Similar requests](https://support.atlassian.com/jira-service-management-cloud/docs/what-are-similar-requests/)" feature but I don't find this to be a solution for your requirements.

if third-party apps are an option check this list of possibilities - [Issue merge apps](https://marketplace.atlassian.com/search?query=Merge%20issues)

comments: author: Rebekka Heilmann _viadee_
body: Thanks [@Jack Brickey](/t5/user/viewprofilepage/user-id/853369)

I wasn't really expecting a different answer but sometimes the Community is surprisingly creative ;)


Tags: best-practice

cloud

jira-service-management

jira-service-management-cloud
Query for 3 months
Asked by xandrico:

Hello,  

Im trying to make a scheduled ticket with a due date,  
What is the query for 3 months?  

I have it writen down as the following for now:  

"{{now.plusBusinessDays(90d)}}"


Answers:
author: Rilwan Ahmed
body: Hi [@xandrico](/t5/user/viewprofilepage/user-id/5428924) ,

Just remove "d". Use **{{now.plusBusinessDays(30)}}**

More examples: <https://support.atlassian.com/cloud-automation/docs/examples-of-using-smart-values-with-dates/>


author: John Funk
body: Hi Xandrico,

you don't need the D in the 90 days. Just 90. And 90 business days is a really long time. You may just went days and not business days just days with me calendar days.


Tags: cloud

jira-service-management

jira-service-management-cloud
jsm account is not active- do theose people receive JSM notifications?
Asked by Deb Keene:

We invited several people at a company to set up a JSM account- some set up their account and some did not. If a ticket is created and chooses to "share with" the company- do the people who have not set up their account in JSM still get notifications about jira tickets submitted?


Answers:
author: Rilwan Ahmed
body: Hi [@Deb Keene](/t5/user/viewprofilepage/user-id/1197305) ,

Regardless of whether someone is a customer, agent, or admin, they will receive **customer notifications** if they:

* Raise a request

* Are added to the Reporter, Approver, or Request participant field on a request **and have verified their email address**

* Belong to an organization that has allowed customers to share requests with each other, and have a request shared with them

* Are a customer (not an agent or admin) and they post a public comment on a request

More details in <https://support.atlassian.com/jira-service-management-cloud/docs/what-notifications-do-my-customers-and-service-desk-team-receive/>

comments: author: Deb Keene
body: Thanks- I want to make sure I am understanding- on our page "projects/(the name of our project)/customers- we have different customers listed and under the customer we have people listed that we have sent invites to so they will set up an account in JSM and be able to use site. When we send an invite, but person has not set up their account yet- the column "status" has that person as invited- but they are not active. Do the people with status "invited" get notified of tickets if the ticket requestor choose to share the ticket with their organization? Or are only the people who have set up an account in JSM notified of the ticket submission?


Tags: cloud

jira-service-management

jira-service-management-cloud
Customers unable to create a ticket, add description, update comments/add recipients via portal
Asked by Lakshmi Kumari:

Hi Team,

Customers had all the access before (as per service desk customers role) but now it doesn't seem to work.

Customers unable to create a ticket, add description, update comments/add recipients via portal.

I have already given them all the necessary rights but still it doesn't seem to work.

Please help.

Regards,

Lakshmi


Answers:
author: Rilwan Ahmed
body: Hi [@Lakshmi Kumari](/t5/user/viewprofilepage/user-id/5203874) ,

Is there any errors displayed while accessing the customer portal?

Also please check the customer permission in your project. i.e. Project settings --\> Customer permissions  
https://\>baseURL\>.atlassian.net/jira/servicedesk/projects/ITSM/settings/customer-permissions

comments: author: Lakshmi Kumari
body: Hi Rilwan - Yes, I get below error. Even if i try to fix error, it still doesn't work.

![Screenshot 2024-02-16 at 12.16.03?PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/306887iE6811E6F654EFC4F/image-size/large?v=v2&px=999 "Screenshot 2024-02-16 at 12.16.03?PM.png")


author: Rilwan Ahmed
body: Hi [@Lakshmi Kumari](/t5/user/viewprofilepage/user-id/5203874)

Go to your project settings --\> Permissions --\> Actions --\> Edit permission

* Remove "**Service desk customer**" role from all permissions
* Instead Grant Browse Projects, Create Issues, Resolve Issues, Add Comments, Create Attachments and any other necessary permissions to "**Service Project Customer - Portal Access**"
* Make necessary changes in project settings --\> Customer permissions.


author: Lakshmi Kumari
body: Thanks Rilwan - I will try that and revert on the result.

Regards,

Lakshmi


Tags: cloud

jira-service-management

jira-service-management-cloud
Add different custom SLAs to a queue
Asked by Eusoph Simba:

I created a queue with 2 Customers. Each customer has 2 unique SLAs (eg Customer A Response SLA, Customer A Resolution SLA; Customer B Response SLA, Customer B Resolution SLA). How can I add Customer A and B SLAs to the same queue and column?


Answers:
author: Tansu Akdeniz
body: Hi [@Eusoph Simba](/t5/user/viewprofilepage/user-id/3887174)

Is there any specific reason for creating separate SLA metrics for different customers? You know it is possible to use single response time and resolution time for all customers?

comments: author: Eusoph Simba
body: Some want Response SLA to be 30mins for P1 some are comfy with 1 hour so its all about what the contract states.


author: Tansu Akdeniz
body: It is possible to do it with single SLA by adding goals. (If SLA conditions (start,pause,stop) don't vary by customer)

Ex: Response Time:

* Organizations = "Customer 1" and Priority = High -\> Goal: 1h

* Organizations = "Customer 2" and Priority = High -\> Goal: 2h

etc.

Please see the Atlassian Team's answer in this thread: [How to set specific SLA's per customer?](https://community.atlassian.com/t5/Jira-Service-Management/How-to-set-specific-SLA-s-per-customer/qaq-p/1755956)


author: Eusoph Simba
body: That makes sense and thanks a lot let me try it out and revert.


Tags: cloud

jira-service-management

jira-service-management-cloud
?c?mo se crea un filtro que permita elegir por tipo de issue en el tablero jira?
Asked by CoESpainUser:

pregunto por crear algo as?:![Filtro.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/306860iABB2693DEFBC0B8D/image-size/large?v=v2&px=999 "Filtro.PNG")


Answers:
author: Tansu Akdeniz
body: Hi [@CoESpainUser](/t5/user/viewprofilepage/user-id/5430359)

When your board has different types of issues, the Type button automatically shows all the types that can be filtered.

If you need custom filter, click three dots -\> Configure Board -\> Custom Filter and create a new filter.


Tags: jira-service-management
How should this work: Label IN (${Locator${0}}) ?
Asked by Rita Zweers:

Please excuse this basic question, I started learning and just can't find a example.   

The documentation is not very clear to me. Additionally I found a Bug Report on this, so I am not sure.   

If you are mapping multiple references from the data, enter **Label IN (${Locator${0}})** where Locator is replaced by the name of the Locator.  

I was trying to use this so I know what it actually means and how it functions, but nothing happens. Can someone please explain or simply provide a Screenshot on how it should look like? (I am more of a visual person).  

I am using this "Label = ${Locator}" so far and it is clear to me, but thought I could 'upgrade' or make use of the other one, too.

<br />

Additionally I found this Bug report: [\[JSDCLOUD-10987\] Using placeholder to extract specific value in data locator list in Insight import IQL does not always work - Create and track feature requests for Atlassian products.](https://jira.atlassian.com/browse/JSDCLOUD-10987)


Answers:
author: Rita Zweers
body: Are those placeholders that will come into play when using JSM?  
(We started with Assets)

[Advanced: Placeholders \| Jira Service Management Data Center 5.13 \| Atlassian Documentation](https://confluence.atlassian.com/servicemanagementserver/advanced-placeholders-1044784599.html)


Tags: cloud

jira-service-management

jira-service-management-cloud
Exalate - not all (custom) fields are fetched from remote
Asked by Csaba Vertessy:

Hey there,

Has somebody using Exalate already experienced this?

I have created a new connection, was able to map almost all the fields but sometimes not all of them are fetched from remote.

If I switch to the remote and try to do the mapping there the field is there but then it's not listed from the other remote (so switching sides basically).


Answers:
author: Dhiren Notani_Exalate_
body: Hi [@Csaba Vertessy](/t5/user/viewprofilepage/user-id/5287424) ,

Thanks for asking your question!

I am Dhiren, one of the solutions engineers working with Exalate.

May I please ask for some more details here, like the connectors involved and also what type of connection did you create (Basic, Visual or Script)?

I would suggest creating a support ticket with us using this [link](https://exalate.atlassian.net/servicedesk/customer/portal/9) and we can take this discussion forward.

Thanks, Dhiren

comments: author: Csaba Vertessy
body: Hi [@Dhiren Notani_Exalate_](/t5/user/viewprofilepage/user-id/4855028) ,

It's a Cloud2Cloud connection and I have used the Visual type of connector to create the mappings.

In the meantime I have already raised a support ticket for you.

Thanks, Csaba


Tags: cloud

exalate

jira-service-management

jira-service-management-cloud