youngmon/atlassian-qna huggingface dataset:
How to get the Build Number of another plan?
Asked by nikoWah:

Hi

Is there a way to get the build number of another plan?

Would be best if I could just reference it as a bamboo variable in my current plan, not with an REST API call, just like TEAMCITY.

<https://confluence.atlassian.com/bamboo/bamboo-variables-289277087.html>

Thanks.


Answers:
author: Daniel Santos
body: Hello Niko,

I have the impression that it can only be achieved in TeamCity when using a snapshot dependency ([Using the Build Number of another Configuration -- TeamCity Support](https://teamcity-support.jetbrains.com/hc/en-us/community/posts/206155459-Using-the-Build-Number-of-another-Configuration)).

I'm not sure if this is the same idea (I don't work with TeamCity), but in Bamboo we have the plan build dependencies ([Setting up plan build dependencies - Atlassian Documentation](https://confluence.atlassian.com/bamboo/setting-up-plan-build-dependencies-289276887.html)) to set relationship between plans. Although we have that, variables cannot be passed from parent plans to child plans. We have a feature request to improve that ([\[BAM-3175\] In order to have pass control to child build plans, Bamboo should have an option of passing variables between parent and child builds](https://jira.atlassian.com/browse/BAM-3175)), but there is a workaround you can use.

If your plans have a dependency relationship you can do this:

1. Create a **variables** file through a script task in your parent plan to export the variables you want in the child plan, e.g.  

   ```
   echo "planKey="${bamboo.planKey} >> variables
   echo "buildNumber="${bamboo.buildNumber} >> variables
   ```

2. Create an artifact definition to publish this file
3. Download the artifact in the child plan
4. Add an inject variables task to load the variables in the child plan

The process above can be used to get any variables from the parent plan and publish them in the child plan.

<br />

You can also:

* Get the latest build number from the DB:  

  ```
  SELECT MAX(BUILD_NUMBER) FROM BUILDRESULTSUMMARY WHERE BUILD_KEY='<PLAN-KEY>'
  ```

<!-- -->

* Or even (not desired for you) REST API:  

  ```
  <Bamboo_URL>/rest/api/latest/result/<PROJ-KEY>-latest
  ```

  Linux example:

  ```
  curl -u <USER>:<PASSWORD> -X GET '<Bamboo_URL>/rest/api/latest/result/<PROJ-KEY>-latest' | awk -v FS="(resultNumber)" '{print $2}' | tr -d '<>/'
  ```

I hope it helps.

comments: author: nikoWah
body: Hi Daniel

Thanks for the reply. We actually implemented the solution you mentioned, exposing the build number as an artefact.

Glad to know that there is a feature request opened as this is a very useful function to have.

I have written a guide for others who might be interested.

<https://medium.com/@niko.wah.hn/how-to-share-build-number-between-plans-in-bamboo-ci-f708d55483f1>


author: Daniel Santos
body: Hi Niko,

I'm glad to know you already implemented it and thank you so much for writing the article and sharing it here =\]  

<br />
C.I and releasemanagement for MS AX dynamics2012
Asked by topcatalpha:

Hi,

Does anyone know if jira/bamboo is suitable for releasemanagement of our MS AX dynamics 2012 ?

Kind Regards,

Kurt


Answers:
author: Gonchik Tsymzhitov
body: Hi!

Have you found the solution?

Cheers,

Gonchik Tsymzhitov
Crowd Onboarding
Asked by Manasa Tumu:

Team,

I'm trying to get unified authentication going for Bamboo/Fisheye/Crucible/SonarQube applications we use. Please let us know how this can be done using crowd.

Thanks,

Manasa.


Answers:
author: Anonymous Coward
body: Simon says:

"

Follow the documentation here: <https://confluence.atlassian.com/crowd/adding-an-application-18579591.html>

"

Simon out.


Tags: server

sonarqube
Bamboo error: org.apache.http.conn.ssl.SSLConnectionSocketFactory on application link
Asked by Mona Sood:

Hi All,

I am trying to upgrade bamboo from 5.9.7 to 5.14.5 to 6.5.1 , but I am getting errors on intermediate version(5.14.5) .I have replicated my test-bamboo instance from prod-bamboo which was working fine in test environment with 5.9.7 but started giving error on application link and Elastic configuration page soon after upgraded to 5.14.5 .

1.Error on application link page:

An error occurred when retrieving list of Application Links. Reason: 'com.google.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: Could not initialize class org.apache.http.conn.ssl.SSLConnectionSocketFactory'. Please check your server log for more information.

2. Error on Elastic image configuration page--\> when updating the page by clicking on save button:

```
ognl.MethodFailedException: Method "save" failed for object com.atlassian.bamboo.ww2.actions.admin.elastic.ConfigureElasticCloudAction@1e009144 [java.lang.NoClassDefFoundError: Could not initialize class com.amazonaws.http.conn.ssl.SdkTLSSocketFactory]	at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1549)	at ognl.ObjectMethodAccessor.callMethod(ObjectMethodAccessor.java:68)	at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethodWithDebugInfo(XWorkMethodAccessor.java:96)	at com.opensymphony.xwork2.ognl.accessor.XWorkMethodAccessor.callMethod(XWorkMethodAccessor.java:88)	at ognl.OgnlRuntime.callMethod(OgnlRuntime.java:1613)	at ognl.ASTMethod.getValueBody(ASTMethod.java:91)	at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:212)	at ognl.SimpleNode.getValue(SimpleNode.java:258)
```

Please advise on resolving above errors .Thanks in advance.


Answers:
author: Anonymous Coward
body: Simon says:

"

Stop your Bamboo 5.14.5 instance. Upgrade it to 6.5.1 and then try using the Elastic image configuration screen again.

"

Simon out.


Tags: application-link

bamboo-administration
Maven Executing JDK 10 build
Asked by Andreas Schaek:

I have a very simple maven project, with some source files in src/main/java and some test classes in src/test/java.

Running mvn clean package on my local PC or running it on the bamboo server (in another user space) is working without any problems.

When I let my Bamboo server execute this task, it compiles the source classes just fine (default-compile) but when it gets to the test classes (test-compile), it cant find the dependent classes from the "normal" classes (Cannot find symbol).

I compared the log output (mvn -X) from a working build with the failing one and couldn't find anything that might trigger the failure.

Any ideas or hints?

Bamboo version is 5.9.7  
Maven compiler plugin version is 3.8.0 with release set to 10


Answers:
author: Anonymous Coward
body: Simon says:

"

Are the dependent classes compiled with a JDK version 10 or a different one? This is a common behavior when dependencies in class format are located in JAR files that have been produced by a different version of the JDK.

"

Simon out.


Tags: jdk
How to determine what branch of plan is running?
Asked by Murphy Meng:

It is useful (vital for me) to tell the current branch of plan that is running. I used to use this variable: bamboo.repository.branch.name. But documentation says it is to be deprecated; and anyway, it does not always works. I mean, in some plans, it works fine, in others, it always contains value "master" no matter which branch is running, auto triggered or manually.

I also tried those variables:

bamboo.planRepository.position.branchName  
bamboo.planRepository.position.branch  
bamboo.planRepository.position.branch

But they always return "master" no matter which plan branch is running.

Ref: <https://confluence.atlassian.com/bamboo/bamboo-variables-289277087.html>

**Why do I need to know what branch is running?**

When the plan is triggered by a git commit, it should run with source code under the same git branch that contains this commit. It will not make sense, if a plan always run git branch master code, when commits are all happen under feature branches right? Also different branch can have different roles, like release branch will do deployment but other branch doesn't. In your plan config, you need do different things manually according to what branch is being run.

Does this make sense? What is the reliable way to get the current plan branch?


Answers:
author: Daniel Santos
body: Hi Murphy,

The variable bamboo.repository.branch.name is deprecated but the variables bellow (which you already cited) should do the same job.

**bamboo.planRepository.\<position\>.branchName**   
**bamboo.planRepository.\<position\>.branch**

Please keep in mind that those variables will depend on the repository type used and their order, where there is more than one. The **\<position\>** part should be changed accordingly to: **1** (for the first repository in the list), **2** (for the second), and so on).  

e.g.  
**bamboo.planRepository.1.branch**

Some questions that might help us moving forward:

* Can you share the Bamboo version you have?
* May I also ask you what is the repository type was configured when it returned master for branches?
* Have you checked the repository branch configured for the branch returning master?

I've run some tests with Bamboo 6.6.2 using Bitbucket repo and all my tests returned the branch as expected.

comments: author: Vijay Reddy
body: Hello [@Daniel Santos](/t5/user/viewprofilepage/user-id/502125)   
I've a question regarding the variable, I'm trying to access a specific branch name within a specific plan repository. So, is this a valid variable?  

${bamboo.planRepository.1.branchName.1}

Thnq
Having all requests show up in the portal
Asked by Melanie.Johnson:

Is anyone familiar with the Portal and in the top where you can see your requests? (see picture)

We have some tickets being created from our Dev ops and they are coming into JIRA and stating Created by JIRA.

Looking at the portal when I drill into my number of requests, I see created by portal and created by email. How can I get the JIRA issue tickets which were created by JIRA to appear, or can I?

![Portal dashboard.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/317803i2873A75FCBBFD0D8/image-size/large?v=v2&px=999 "Portal dashboard.JPG")![request raised by.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/317802iFC01D8878C6B288C/image-size/large?v=v2&px=999 "request raised by.JPG")![crested by email.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/317806iFCB5C5A06E679B36/image-size/large?v=v2&px=999 "crested by email.JPG")![created by portal.JPG](https://community.atlassian.com/t5/image/serverpage/image-id/317809iDBB379A087488AD4/image-size/large?v=v2&px=999 "created by portal.JPG")


Answers:
author: Marcus Jones
body: Hey [@Melanie.Johnson](/t5/user/viewprofilepage/user-id/5429759) ,

You need to either be part of an Organization that is on that ticket OR you need to be a request participant. The portal will only show you tickets that you are a part of. You'll want to set that as part of the process where they come over from DevOps.

\~Hope that makes sense. Let me know if I need to explain further.

Thanks!

comments: author: Melanie.Johnson
body: Thank you. I was hoping that it pulled from the reporter as we do have that field coming from Dev Ops. We also tried adding the person after the ticket was created as a participant but it sounds like it needs to be done when it comes in. I will get with my Dev Ops team and let you know if we have any questions. This is greatly appreciated.


Tags: cloud

jira-service-management

jira-service-management-cloud
Custom Field - Single Choice Options
Asked by Angelo Lavarez:

Hello,

I was wondering if it is possible to link the options available on a single choice list to work off a filter. In other words, the selection of the dropdown is the result of the filter and auto updates the list when an item in the filtered results is added or removed.

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


Answers:
author: Mikael Sandberg
body: Hi [@Angelo Lavarez](/t5/user/viewprofilepage/user-id/5474338),

Welcome to Atlassian Community!

The short answer is no, the default select fields cannot be based on filters. You would need an app that can get the values from an external data source like [Elements Connect](https://marketplace.atlassian.com/apps/23337/elements-connect-external-data-fields?hosting=cloud&tab=overview) or any of the other apps in the [Marketplace](https://marketplace.atlassian.com/search?query=external%20data) that can do this.

If you are using Forms you could connect a select field to a [data connection](https://support.atlassian.com/jira-service-management-cloud/docs/create-edit-test-or-delete-data-connections-for-forms/), as long as that connection returns the result in JSON format.


Tags: cloud

jira-service-management

jira-service-management-cloud
How to update topics in portals within service desk?
Asked by Bhuvaneswari Vasudevan:

I'm new to Jira Service Management and have an need to modify the existing portal. There is a service desk portal where there are few topics. Based on the topic selected there is another portal screen that requests to select the user. I need to update the contents in this page for some of the users.

What access do I need to update the portal?

Can you guide me the steps for the update?

I have access to update the home page layout. But not able to traverse through the next level for updating content.


Answers:
author: Els Bassant
body: Hi [@Bhuvaneswari Vasudevan](/t5/user/viewprofilepage/user-id/5345298) ,

It sounds like you are trying to adjust the request types, is that correct?  
If so, you need project admin permissions for the project where you want to adjust the request types.

If you are working in a company managed project you can follow [this documentation](https://support.atlassian.com/jira-service-management-cloud/docs/customize-the-fields-of-a-request-type/).  
If you are working in a team managed project use [this documentation](https://support.atlassian.com/jira-service-management-cloud/docs/set-up-request-types-in-team-managed-projects/) instead.

I'm also curious what you mean by "I need to update the contents in this page for *some* of the users"? The help portal content are the same for all user who can access the portal.

Hope this helps,

Els

comments: author: Bhuvaneswari Vasudevan
body: Thanks for your response Els. I understand there is a portal settings that allows to categorize portal groups.

With that option, I was able to create a new user group and associate specific forms for them.


Tags: cloud

jira-service-management

jira-service-management-cloud
Can i use jira incoming call routing with an on prem jira enviroment
Asked by Alex Pytlak:

We have a on prem enviroment of JSM and wanted to know if i can take advantage of jira call routing to help out with calls coming into our service desk


Answers:
author: Ivan Lima
body: Welcome to the Atlassian Community.

If you're referring to Opsgenie integration for incoming call routing, there are some feature differences depending on your plan. You may need to look into <https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-jira-service-management/#Integration-via-OEC--for-On-Premise-Jira-Service-Management-Usage-> to configure OEC (Opsgenie Edge Connector) integration with your data center installation. I'll also leave other links that speak to the call routing setup, which also refers to the OEC as an integration mechanism.

* <https://support.atlassian.com/opsgenie/docs/incoming-call-routing/>
* <https://support.atlassian.com/opsgenie/docs/integrate-opsgenie-with-jira-service-management/>


Tags: data-center

jira-service-management

jira-service-management-data-center
create automation for a ticket to be moved to a specific queue.
Asked by Francisco Navarro:

Hello??

I need to create an automation so that every time the agent is assigned a ticket, it is moved (in its current state) to a queue with the agent's name. Can you help me with this?


Answers:
author: Joseph Chung Yin
body: [@Francisco Navarro](/t5/user/viewprofilepage/user-id/4865584) -

You don't need an automation to achieve what you wanted. You can simply create new custom queue and base the queue's JQL by issue assignee.

Hope this helps.

Best, Joseph Chung Yin

Jira/JSM Functional Lead, Global Technology Applications Team

Viasat Inc.


author: YY Brother
body: Hi [@Francisco Navarro](/t5/user/viewprofilepage/user-id/4865584)

Welcome to our Community.

It seems we don't need any automation rule to implement it.

Please conifgure the queue for each queue with agent's name,

e.g. assignee = Francisco

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

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

Once you're assigned a ticket, this ticket will go to the queue named Francico's queue.

Hope it helps. Thanks

YY?


Tags: cloud

jira-service-management

jira-service-management-cloud
Can't see organization in the request
Asked by Sara:

Hello, I've created one Jira Service Management project with 3 organizations and some customers in each organization, but when a customer open a request through the portal in the issue I can't see the organization, and can't even edit the field to set it manually. Can you please help me with this? I want to create a dashboard to see number of issues per organization.

Thanks in advance.


Answers:
author: Marcus Jones
body: Hey [@Sara](/t5/user/viewprofilepage/user-id/3753558) ,

There may be a better way to do this, but it is my understanding you still need to set the Org for the ticket. So what I do is when a ticket is created I check what org the reporter is in and then set the Org for the ticket.

Trigger - When field value for "Reporter" changes

If Condition - Reporter IS IN Organization A

Then - Edit Issue and Set Organization A

Else

If Condition - Reporter IS IN Organization B

Then - Edit Issue and Set Organization B

so on...

\~Hope that helps and like I said, someone else may have a better way but that's how I've been doing it.

comments: author: Sara
body: Thanks, I've tried this and works.


Tags: cloud

jira-service-management

jira-service-management-cloud
Licensed Jira Service User unable to see our tenant
Asked by David Willoughby:

I have a licensed user whom I haven't an invite too multiple times. I can see she is in our tenant in Jira and in the atlassian user accounts (with a license.) However when she clicks on any of our tenant links (like to submit a ticket) she gets a 'create your own ticket system' web address, as if she is not connected to our tenant. No other individuals have this issue. I can see in Jira she has two accounts but in atlassian she has one. I am unsure about removing accounts in Jira incase it removes her from her comments/tickets etc.


Answers:
author: Marcus Jones
body: Hi [@David Willoughby](/t5/user/viewprofilepage/user-id/5361242) ,

I'm wondering if it has anything to do with the fact that she has access to multiple tenants. Is she accessing your tenant via your specific url?

```
https://<your_tenant_name.atlassian.net>/jira/projects
```

Has she tried it in an incognito browser? It could be redirecting her based on the browser cache.

She should be asked to log in, instead of being shown the generic "create your own ticket" message.

\~Hope that helps :)

comments: author: David Willoughby
body: Thank you, didn't think of trying it that way around. We have isolated the 'bad' login. Using this method. Very much appreciated.


Tags: cloud

jira-service-management

jira-service-management-cloud
SLA Time and Report for Jira add-on - Baseline time zone
Asked by Tony Doyle:

Hi, we are currently trialing Jira - SLA Time and Report add-in, with a view to subscribing. However, there is one huge issue. How can we set things so the SLA's and reports take the time zone from Jira and not the local PC clock?

As things stand we need to know where it takes its baseline time settings from because the reports are inaccurate. We need it to take its time zone from that declared in Jira and then measure with adjusted time against other time zones to produce accurate SLA's

Please advice, happy to explain this on a call in better detail

Thank you,

Tony.


Answers:
author: Rebekka Heilmann _viadee_
body: Hi [@Tony Doyle](/t5/user/viewprofilepage/user-id/5343008) and welcome to the Community,

with specific questions regarding Marketplace Apps, it's often best to simply contact the vendor's support. However, there are a couple of SaasJet employees on the community.

[@Kateryna_v_SaaSJet_](/t5/user/viewprofilepage/user-id/5061146) can you help?

comments: author: Yuliia_Borivets__SaaSJet_
body: Hi [@Tony Doyle](/t5/user/viewprofilepage/user-id/5343008)

Thanks for your question and interest in [SLA Time and Report for Jira](https://marketplace.atlassian.com/apps/1220741/sla-time-and-report-for-jira-track-time-to-sla-deadline?hosting=cloud&tab=overview&utm_source=Atlassian_Community&utm_medium=referral&utm_campaign=Comment_SLA-Time-and-Report-for-Jira-add-on-Baseline-time-zone_20240411) add-on. Our support team has received and answered this request. You are always welcome to contact us. If you have other questions, please contact our [support team](https://saasjet.atlassian.net/servicedesk/customer/portal/1) for a more prompt resolution of issues.

[@Rebekka Heilmann _viadee_](/t5/user/viewprofilepage/user-id/5182395) thank you for mentioning us.


author: Tony Doyle
body: Hi, I'm not quite sure i understand this. You say the request has been answered, what was this answer? What is the resolution here?

Thanks,

Tony.


Tags: cloud

jira-service-management

jira-service-management-cloud
how w can avoid to generate tickets in jira cloud for specif email subject for inbound emails
Asked by Kishor Mudhili:

how w can avoid to generate tickets in jira cloud for specif email subject for inbound emails


Answers:
author: Mirek
body: Hi [@Kishor Mudhili](/t5/user/viewprofilepage/user-id/5310742)

Maybe setting up a rule directly on mail account (specific wording in the subjects) that would do something with those emails before Jira would process them?

comments: author: Kishor Mudhili
body: [@Mirek](/t5/user/viewprofilepage/user-id/781521) can u please share some sample rules ?


Tags: cloud

jira-service-management

jira-service-management-cloud
Chatbot Integration?
Asked by Brady Buttrey:

Hi there,

I am looking to integrate a chatbot on to my customer portal once we purchase JSM (Data Center). The chatbot would be something that we have already built, not a chatbot provided through an app or anything in that nature. I spoke with someone who mentioned that building Jira from source to integrate our chatbot onto the customer portal has a bug that would make that unsuccessful. They also mentioned that integrating the chatbot could be done using a third-party-app. I'm not quite sure how that would work in terms of having the chatbot present on the portal. I have also thought that maybe it could be done by creating a plugin with the plugin framework 2. Does anyone have any advice or experience on how we could integrate this chatbot on our portal?

Thank you in advance for your responses.


Answers:
author: Brant Schroeder
body: [@Brady Buttrey](/t5/user/viewprofilepage/user-id/5459170) As you explained you have three options. I would suggest not changing the Jira code as this is horrible to maintain and could introduce a security vulnerability.

The easiest implementation would be to use an app like refined and then you can add your own JavaScript to the portal to implement your chatbot.

Your third option would be to build your own app. This would require you to learn how to do this, maintain your app to ensure it works with the latest release, etc.


Tags: jira-service-desk-data-center

jira-service-management

jira-service-management-data-center

jira-service-management-server

server