youngmon/atlassian-qna huggingface dataset:
Use automation with linked cards on Trello
Asked by Simon Escoffier:

Hi,   
I have a Card 1 on Board A linked to Card 2 o Board B.

When I move Card 1 to the list "Done" on Board A, I would like Trello's automation system to react by moving Card 2 (or any other card linked to Card 1) to the List "Done" on Board B.  

Can I do that? and how?

Thanks very much.  
Best, Sim?n.


Answers:
author: Humashankar VJ
body: Hi [@Simon Escoffier](/t5/user/viewprofilepage/user-id/5332785)

Try out the below possibility and let me know if that fixes your issue:

1. Enable the Butler Power-Up and install it on both Board A and Board B.  
2. On Board A, create a Butler Rule triggered by the "Card moved to list (Done)" action.  
3. Define the rule's actions as follows:  
- Find the linked cards associated with the moved card (Card 1).  
- Move the linked card (Card 2) to the designated "Done" list on Board B, specifying the board ID.

**Hope this helps - Happy to help further!!**   
**Thank you very much and have a great one!**   
**Warm regards**


Tags: automation

card

link

unknown-hosting-type
increasing bamboo agent screen resolution
Asked by venkateswari:

Hi,

I am running selenium test in bamboo elastic agent (windows). The viewport size is 1040 \* 784. I just need to increase the screen resolution. Is it possible to set screen resolution as part of AMI?


Answers:
author: Ivan Irbis
body: Hello,

can somebody answer to last question please:

"What if headless is not suitable option?"


author: Edwin Kyalangalilwa
body: Hi Venkateswari,

You can increase this as part of your code. What language are you using for testing?

comments: author: venkateswari
body: Hi,

I am using java. I want to increase screen resolution.


author: Edwin Kyalangalilwa
body: Try

    driver.manage().window().setSize(new Dimension(1024, 768))


author: venkateswari
body: Since the maximum screen resolution is low, using the above won't increase viewport size beyond screen resolution.

Running in chrome headless is working fine.


author: ParanoikCZE
body: What if headless is not suitable for us?


Tags: agent

selenium
Automation variable for card email
Asked by Jesper Elleg?rd:

Hi, I wish to use the {} variable for the card email ("Email for this card") in a rule.

I can't see it on <https://support.atlassian.com/trello/docs/butler-variables/>

Can anybody help me?

Thanks in advance

Jesper


Answers:
author: milynnus
body: [@Jesper Elleg?rd](/t5/user/viewprofilepage/user-id/5332503)

There is no specific email variable but you can use text custom field for it and use {{%Email}} - custom field name assumed to be "Email".

comments: author: Jesper Elleg?rd
body: Thanks for the reply, but its not a custom thing: on any card under Share there is a specific non-custom email-field, generated by the system.

It's the internal variable for this I need

Best regards


author: milynnus
body: [@Jesper Elleg?rd](/t5/user/viewprofilepage/user-id/5332503)

If you are referring the email associated with each card, then there is no variable for it.


author: Jesper Elleg?rd
body: Ok - thanks a lot :-)
Deployment successful message is triggered but server is not started yet
Asked by Pieter-Jan De Laere:

Hi,

I noticed the following: we are using Bamboo to deploy a webserver. The last step in the deployment is to start the webserver. However Bamboo is considering the deployment to be successful immediately after the server start command has been given (tomcat on linux being started with command '*catalina.sh start*'). The server however is still starting up for a few minutes. This causes problems when using triggers + we have to manually check the log to see if the server has really started.

Is there a way to have Bamboo consider a deployment successful only after the server has actually fully started?

thanks and regards


Answers:
author: robhit
body: Hi Pieter,

The Bamboo considers the deployment to be successful because the return code by the command "catalina.sh start" will always (unless there is some error upon executing this command for example if the shell file does not have executable permissions then it will throw an error and the return code will be 1) return 0 (which is a success).

So to achieve your requirement here, you have to script a task to

1. Execute the "catalina.sh start" command.

2. In a loop keep searching for the string such as "tomcat started" in the tomcat logs to check the startup of the tomcat.

3. Once the "tomcat started" text is grepped from the tomcat logs, exit the loop to end the script task.

_Also make sure you have a counter here so that after a certain interval of time if the script is not able to get the "tomcat started" text the process will timeout and the deployment should fail._

Something like:

```
sh catalina.sh start

for loop to check for the text (say 5 times) with gap of 20 seconds each (sleep 20)

if the system couldn't manage to get the string:

exit -1

else

success
```

Thanks!

Robhit
Remote Agent Download
Asked by sumit2061902:

I need to run .bat file from bamboo remote agent  
I have one remote agent and i need to run this .bat file


Answers:
author: somethingblue
body: Hi Sam,

What issue are you running into when you try to run the .bat file? If you add a Script Task, and set the path there what happens and do you get any errors in your log?

Cheers,

Branden

comments: author: sumit2061902
body: Basically i am trying to run Tosca from bamboo. I have attached two files

**Shell.bat**

cd %TRICENTIS_HOME%\\ToscaCommander  

TCShell.exe -workspace "C:\\Tosca_Projects\\Tosca_Workspaces\\Demo\\Demo.tws" "D:\\Telstra\\shell.tcs" -login "Admin" ""  

**Shell.tcs**

//Admin Mode  
adminModusOn

//Navigate to your test case folder you want to run  
jumptonode "/Execution/ExecutionLists/New ExecutionList"  
//Task Run  
settcparam EnvIdentifier = PROD01  
jumptonode "/Execution/ExecutionLists/New ExecutionList/Customer"  
settcparam MyName = CSDEV01  
//Save your work  
save

when i am running the bat file using remote agent like using

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

Build is running and just calling the bat file and even though tosca testcases failed its showing success build.
How can I use both a local admin and crowd users in BAmboo
Asked by David Mills:

We are migrating our atlassian tools from our data centre to the cloud. I have done trial migrations for crowd, jira and confluence. For each I created a local-admin account that I could use until I got the new User Directory configured to the migrated Crowd instance. BUt with Bamboo 5.12.3.1 it seems to either support local users only or Crowd users only. When I attempted to use local I got locked out before I could create a local admin user.

How can I create a local admin with a password I know - either in our data centre instance before I copy the data, or in the migrated copy afterwards?


Answers:
author: Bruno Vincent
body: Hi [@David Mills](/t5/user/viewprofilepage/user-id/502205)

This is a known issue: <https://jira.atlassian.com/browse/BAM-17665>

If for some reason your Bamboo server cannot contact your Crowd server anymore, thus preventing users to log into Bamboo, there's a workaround that will allow you to go back to the internal user directory configuration: <https://confluence.atlassian.com/bamkb/bamboo-lost-connection-to-the-external-user-directory-preventing-users-from-logging-in-678691207.html>
How to use Bamboo for PHP application
Asked by rspl patel:

Hello Support Team,

I have PHP application and need to deploy on server using Bamboo. I have configured plan but not able to find which tasks will helpful for PHP application deployment. Major tasks are related to Java projects only.

Can you please provide steps for do it or if any video you can provide it then will be really help for me and my team.

Thanks,

Sunil


Answers:
author: Gonchik Tsymzhitov
body: duplicate of <https://community.atlassian.com/t5/Bamboo-questions/how-to-use-Bamboo-for-PHP-application/qaq-p/690560>
How to use Bamboo for PHP application
Asked by rspl patel:

Hello Support Team,

I have PHP application and need to deploy on server using Bamboo. I have configured plan but not able to find which tasks will helpful for PHP application deployment. Major tasks are related to Java projects only.

Can you please provide steps for do it or if any video you can provide it then will be really help for me and my team.

Thanks,

Sunil


Answers:
author: Gonchik Tsymzhitov
body: Duplicate of <https://community.atlassian.com/t5/Bamboo-questions/how-to-use-Bamboo-for-PHP-application/qaq-p/690560>
JNDI email configuration NameNotFoundException
Asked by zej:

I am trying to setup email configuration for Bamboo, same operation worked for confluence. But it always pop out same error.

Server.xml was modified ,and two email.jar was moved to required directory.

[Official Guide](https://confluence.atlassian.com/bamboo/configuring-bamboo-to-send-smtp-email-289276984.html)
> The mail settings you entered were not valid. Error thrown was: javax.naming.NameNotFoundException: Name \[mail/SmtpServer\] is not bound in this Context. Unable to find \[mail\].


Answers:
author: zej
body: I solved it \~ hah\~

it turns out i don't need to add whole piece into server.xml, only the content in Resource tag is enough.

    <Context path="/bamboo" docBase="${catalina.base}/atlassian-bamboo" reloadable="true">          <Resource name="mail/GmailSmtpServer"            auth="Container"            type="javax.mail.Session"            mail.smtp.host="smtp.gmail.com"            mail.smtp.port="465"            mail.smtp.auth="true"            mail.smtp.user="<your-name>@gmail.com"            password="<your-pw>"            mail.smtp.starttls.enable="true"            mail.smtp.socketFactory.class="javax.net.ssl.SSLSocketFactory"          /></Context>

comments: author: Paul Roesler
body: After putting the Resource stanza inside the existing Context tags, I also had to enable less secure app in gmail.

You can find out more here: <https://support.google.com/accounts/answer/6010255?hl=en>

Hope this helps!
Bamboo User Activity
Asked by Kevin Paulus:

Administering Bamboo 6.0.5 and want to determine last login date of any given user. How can user activity be found?


Answers:
author: Gonchik Tsymzhitov
body: Hi Kevin,

May I know your use case?

Unfortunately, on Bamboo 6.2.1 I have not found from UI last login info.

You can use workaround from this request and vote this feature if you want to see in release.

<https://jira.atlassian.com/browse/BAM-17728>

Cheers,

Gonchik Tsymzhitov

comments: author: Kevin Paulus
body: Thank You Gonchik: My use is as a stack administrator in a corporate setting with only 250 licenses for 1700+ possible users, we need to be able to evaluate who has not utilized the software sufficiently to warrant wasting the license on them.   
I serve as the gatekeeper: I manage who does and does not get access. I realize that a login is not the best measure of use, but we also balance the last login with other factors. such as project role or corporate stature. As with any data system, If we announce that you will lose access after **any** number of days without use, users will set a reminder to login regularly just to be sure they will be counted as having logged in during the measurement period.  
We are looking to purchase the next tier of licensing, but so far have not found the right executive willing to fund the expense.


Tags: user-management
JUnit Parser - Specify custom results directories
Asked by Sa?a Gaber?ek:

My plan creates xml files in a subfolder relative to the working directory. I would like JUnit Parser to use the xml files. If they are located in the working directory, everything is OK. I cannot convince JUnit Parser ('Specify custom results directories') to look for xml files in subdirectory 'test1'. I have tried:

\*\*/test1/\*.xml

test1/\*.xml

test1

test1/output1.xml (where output1.xml is an existing file in test1 folder)

\*/test1/\*.xml

\*/\*.xml

I keep getting the following message:

```
Failing task since test cases were expected but none were found.
```

What is the correct syntax to tell JUnit Parser to look for xml files in a subdirectory test1?


Answers:
author: Sa?a Gaber?ek
body: Figured it out - it was a syntax error in python script creating xml files.
Remote agent is Offline.How make it online
Asked by sumit2061902:

My Remote agent is Offline.How make it online


Answers:
author: somethingblue
body: Hi Sam,

I would start by looking at the Diagnosing Remote Agent Connectivity section of [Troubleshooting Remote Agents](https://confluence.atlassian.com/bamkb/troubleshooting-remote-agents-216957427.htmlhttps://):

From the agents side verify the following:

* Is the agent able to reach and resolve the **server** **hostname?**
* **Is the HTTP server port reachable?**
* Is the agent able to reach and resolve the **Broker** **address**?
* Is the server **Broker** **port** reachable?

From the Server side verify the following:

* Is the server able to resolve its **hostname**?
* Is the **HTTP server port** referred by the agent bound?
* Is the server **Broker port** bound?

Review the Diagnosing Remote Agent Connectivity section of [Troubleshooting Remote Agents](https://confluence.atlassian.com/bamkb/troubleshooting-remote-agents-216957427.html) for steps you can take to verify the above. If everything checks out let us know and we'll go from there.

Cheers,

Branden
Running Linux scripts from Bamboo that require sudo
Asked by Brian M. Howard:

I need to remove the /opt/poky folder on my build agent machine, but cannot find a way to do it from Bamboo. It requires root permissions (sudo) however I cannot use sudoers for this to bypass password entry for sudo, and all my efforts fail. Is there a secure way to do this from a Bamboo inline script, or running a local build agent script, in Ubuntu 14.04?


Answers:
author: Brian M. Howard
body: sudoers does not work, Bamboo throws an error ... whereas the same script run under that user on the agent machine does not require a sudo password to run.

There is no alternative to deleting that /opt/poky folder, there are libraries being changed to new version in that folder, the old libraries need to be deleted. This is to pass security scanning.

But surely there are times when something must be installed as root from a build script ... such as when adding security to a bitbake image. There is no way around the security portion, the script for it must be run as root. I am hoping this can be automated in Bamboo, but again, Bamboo needs to be able to do things using sudo somehow.

Thanks much, Boris

comments: author: Boris Berenberg - Atlas Authority
body: Whats the error you get when the script tries to sudo? Is it a tty error?


author: Brian M. Howard
body: Yes, specifically: "sudo: no tty present and no askpass program specified."

While that same script run locally does not require a sudo password.

The sudoers file did not have a tty requirement, but after failing for some time, I added: Defaults !requiretty

However, this addition also does not work.


author: Boris Berenberg - Atlas Authority
body: Try using any of the workarounds from <https://www.cyberciti.biz/faq/linux-unix-bsd-sudo-sorry-you-must-haveattytorun/>


author: Boris Berenberg - Atlas Authority
body: Not sure I understand, is sudoers not an option because of some policy? or you just haven't been able to make it work?

Also can you explain why you need to remove /opt/poky? Maybe we can offer an alternative solution.
can I specify on which agent to run a plan?
Asked by Sa?a Gaber?ek:

While in a testing phase, it is helpful to re-run only segments of a plan. In my example, the initial stages are more time consuming, but they are mature and run without problems. I disable them to speed up the testing phase, hopefully addressing only the later parts of the plan. So far so good. The problem I am encountering is using multiple agents. If my plan crashes on agent 1, I make some changes and re-run it, there is no guarantee that it will run on agent 1. If it is launched on agent 2, there is no history of the previously successfully completed stages/jobs. The physical location on disk is different:

bamboo-agent-home for agent 1

and

bamboo-agent-home2 for agent 2.

With only two agents, I get 50% chance of hitting the right one. I cannot imagine having more agents...

Is there a way to specify the agent I want to use? In the past I used the admin setting to disable one agent. It only worked because no-one else was using bamboo at the same time.


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: 1. Define a custom capability on your agent - <https://confluence.atlassian.com/bamboo/defining-a-new-custom-capability-289277149.html#Defininganewcustomcapability-Defininganagent-specificcustomcapability>

2. Configure the build to have that capability as a custom requirement - <https://confluence.atlassian.com/bamboo/configuring-a-job-s-requirements-289277064.html>

comments: author: Sa?a Gaber?ek
body: Thank you, I got it working.
Remote trigger is not starting the build process
Asked by Gareth Benjamin:

I want to trigger a build whenever Docker Hub gets a new image of my application. Not sure if I'm doing it the right way, but I have setup a remote trigger in my build plan. When I hit the API using Postman (or a browser), I get a success response saying

"A build of DEV-DU was triggered by remote http call".

However no builds are kicked off.

The API I am hitting is

https://\<bamboo URL\>/api/rest/updateAndBuild.action?buildKey=DEV-DU

Is this the best way to start a build once Docker Hub gets a new image?

When I hit the API and get a success, why is my build not starting?


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: Use the **/queue/{projectKey}-{buildKey}** API to add builds to the queue.

Check out <https://docs.atlassian.com/atlassian-bamboo/REST/6.0.0/#d2e2150>

comments: author: Gareth Benjamin
body: How do I setup the auth so I can call the api from docker hub? I get this error when trying to access the api "Client must be authenticated to access this resource." IF I login, I also get this error when trying to call the api from the browser "XSRF check failed". Turning off XSRF checks in security settings doesn't seem to work either


Tags: trigger
Widget Tag for Analytics
Asked by Neal Akyildirim:

Hi

We have embedded a Jira Service Management which we use for our support portal. We leverage the Widget under Channels . We embedded this to our site as contact us. We want to tag the contact us button and send button once user submits a request. (Although we get a ticket everytime a user submits a request, we still want to tag these buttons via Google Tag Manager for analytics.

I couldnt figure out how to install GTM to the widget. Does anyone know how i can do that


Answers:
author: David at David Simpson Apps
body: The JSM widget injects an iframe into the web page that it's added to, so the JSM widget is completely isolated from the GTM tags within your web page.

In order to add GTM to the iframe, you have to somehow inject the [standard GTM script](https://developers.google.com/tag-platform/tag-manager/datalayer#installation) (below) into the iframe.

```
<script>
window.dataLayer = window.dataLayer || [];
</script>
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXXX');</script>
<!-- End Google Tag Manager -->
```

Luckily, the iframe is created in the same domain as the webpage it's embedded in, so it is possible to access the iframe and inject some additional javascript.

Add the following or similar to the end of the body on your web page:

```
<script>
// create the `window.dataLayer` script tag & content:
const dataLayerNode = document.createElement('script');
dataLayerNode.textContent = 'window.dataLayer = window.dataLayer || [];'

// create the gtm script tag & content
const gtmNode = document.createElement('script');
gtmNode.textContent = `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-XXXXXX');`;

// get the JSM iframe
const jsmIframe = document.querySelector('iframe#jsd-widget')

// append the scripts to the html head in the iframe
const jsmHead = jsmIframe.contentDocument.head
jsmHead.append(dataLayerNode);
jsmHead.append(gtmNode);
</script>
```

Replace the **GTM-XXXXXX** with your value.

This will inject the GTM scripts into the iframe for the JSM widget. If all is well, the form submits will be handled by GTM. If not, you'll simply have to add more logic within the **gtmNode.textContent =\`...\`** line.

Please note: This code is tested in the browser console, but should really be thought of as the beginning of what you need to do.

Good luck.


Tags: cloud

jira-service-management

jira-service-management-cloud
Creating rule around version creation but only when done in admin?
Asked by Justin Lehman:

Hello,

I created a rule that when a version is created, a release is then created with that Fix Version(s) associated to it. My problem is, I want this rule to NOT run if a version is created within the ticket. I only want this rule to run when a version is created within the admin version section. I cannot determine how to limit this rule or to create a rule to negate it if a version is created when editing a release ticket.

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


Answers:
author: Ste Wright
body: Hi [@Justin Lehman](/t5/user/viewprofilepage/user-id/5283204)

Natively, I don't believe this is possible. Automation is checking that a version is created from *anywhere*- not just one location.

I did try to limit it using a different option which was...

* When version is created
* If there's no Releases with that version applied (JQL condition)
* Then created a Release
* Otherwise, do nothing

...but the issue is that the version in the Release is created **before**the field is saved, so the rule has already triggered by that point.

---

An alternative would be to **delete**the duplicate, assuming there should only be one Release issue per version?

This additional rule would look something like this:

* **Trigger:** Field Value Changed
  * Fields to Monitor = Fix Versions
  * Change Type = Value added
  * For = Create Issue
* **Condition:** Issue Fields Condition
  * Field = Fix versions
  * Condition = is not empty
* **Action:** Lookup Issues
  * JQL -*issuetype = Release and fixVersion = {{issue.fixVersions.id}} ORDER BY created DESC*
* **Condition:** {{Smart Values}} Condition
  * Field Value = *{{lookupIssues.size\|0}}*
  * Condition = greater than
  * Second Value = 1
    * **Branch:** Related Issues
      * Type = Current Issue
        * **Branch-Action:**Delete Issue

---

A few notes on this rule...

* The rule is checking created issues which have a version applied. This rule is **separate** to your first rule but is being triggered by it. That means you need to allow the second rule to be triggered by the first - to do this...
  * Open *Rule details*
  * Check (TRUE) the box next to "Check to allow other rule actions to trigger this rule. Only enable this if you need this rule to execute in response to another rule."

---

Let us know what you think!

Ste


Tags: automation

jira-service-desk-unknown-hosting-type

jira-service-management

version