youngmon/atlassian-qna huggingface dataset:
Overriding build-specific variables in Bamboo plans
Asked by Ed Dev:

I have 2 repositories in 1 plan where ++repo1++ is the default repo and ++repo2++ is non default. The way Bamboo plans work is the default repo is able to checkout to specific branches, but the non-default can only checkout to master. I am trying find a way around this so that I can pass in a plan variable to ++repo2++ that sets it to what branch I want.This is what I've experimented with so far:

**1. Added a plan variable**

I override this on a manual build

![Screen Shot 2018-03-18 at 11.26.23 AM.png](/t5/image/serverpage/image-id/17339i0F2AE2AFD75A7824/image-dimensions/503x93?v=v2 "Screen Shot 2018-03-18 at 11.26.23 AM.png")

**2. Passed in the plan variable into the script**

```
$bamboo_planRepository_2_branch 
```

this tells you branch info when you echo it out.

So I tried doing this but didn't work:

![Screen Shot 2018-03-18 at 11.40.05 AM.png](/t5/image/serverpage/image-id/17340iCB5B26F0B14EFA51/image-dimensions/537x98?v=v2 "Screen Shot 2018-03-18 at 11.40.05 AM.png")

What is the correct way to override build-specific variables in Bamboo?


Answers:
author: Marcin Gardias
body: What you seem to be after is this feature: <https://jira.atlassian.com/browse/BAM-11544> which has been delivered in Bamboo 6.3.0


author: Foong
body: Variable is only used for Subversion repository when Bamboo perform **Source Code Checkout** task. It is not being used in other repository types.

Your requirement for Source Code Checkout task to checkout specific branch for other non default repositories has been implemented in Bamboo 6.3.0:

<https://confluence.atlassian.com/bamboo/bamboo-6-3-release-notes-941616828.html#Bamboo6.3ReleaseNotes-Branchingwithmultiplerepositories>


author: Jobin Kuruvilla [Adaptavist]
body: Not sure what you are trying to do but you can get the branch name from the system variable named:

bamboo.planRepository.\<position\>.branchName

where position is an optional parameter that specifies the position of the repository in the plan's repository list. If omitted, the first repository in the list is used.

If you are trying to set a variable, why do you want to override a bamboo variable? Why not define a new one?

plan_branch=${bamboo.repo2_branch}

and then use ${plan_branch} in the next steps?

comments: author: Ed Dev
body: Yeah corect this is a system variable:

```
bamboo.planRepository.<position>.branchName
```

And that translates in the task script as:

```
$bamboo_planRepository_2_branch?
```

And I want to override a different branch to that system variable like my example in the description.

Reason for this is it is a non-default repo, so only master is checked out all the time


author: Marcin Gardias
body: Those variables are _derived_ from your build configuration, they are not meant to be reset and changing their value won't have any effect other than, well, their value is now changed.
How to integrate Bamboo with Enterprise GitHub?
Asked by markee.pearson@yahoo.com:

Bamboo is not pulling my source files from github - Bamboo Support - Service Desk

I'm setting bamboo for the first time. Im trying to test a simple use case of using bamboo of pulling files from my enterprise github repo and then using bamboo integration with AWS code deploy task to push the code my AWS S3 bucket. It appears that Bamboo is not pulling the source files from my establish github repo.


Answers:
author: Alexey Chystoprudov
body: Try to use general Git repository instead of Github repository type. GitHub enterprise support is not complete yet: <https://jira.atlassian.com/browse/BAM-11589>

comments: author: fjkum
body: I tried using Git repository for Github Enterprise repository but still fails.

Running Bamboo verison 5.7.2

Please advise.


author: Alexey Chystoprudov
body: [@fjkum](/t5/user/viewprofilepage/user-id/1275336) , can you please provide more details about failure?
Bamboo loses all logs after build stopped
Asked by J Taylor:

I'm running into a problem when my builds are stopped prematurely. While the build is going I can see a live activity log under the summary tab and a full log under the Logs tab.

Once the build finishes stopping though, the activity that was under the summary tab disappears and the logs page starts saying 'No logs found for this job' even though I was literally looking at the logs for this job seconds ago.

The page that contained the log before still exists even, although it doesn't contain the all of the logging that the summary page had right before the job stopped.


Answers:
author: Seetharam
body: Hi J,

I am also facing the same issue. Logs are not displayed in Summary once the build is over. But can find the same in the *\<Bamboo-Home\>/xml-data/builds/\<plan\>/download-data/build-logs/ folder*


author: Jeyanthan I
body: Hi J,

Could it be that you are using any sensitive commands like rm -rf on your build task that deletes the build directory and the respective logs?

Build logs are usually stored in the respective agent's home *\<Bamboo-Home\>/xml-data/builds/\<plan\>/download-data/build-logs/*

Do you see the corresponding build log listed there?

If not, does the atlassian-bamboo.log (if it is run as a local agent) or the respective agent log give you any hint?

comments: author: J Taylor
body: I don't know what the problem was but the issue has long since stopped happening now. I'll raise a ticket if I see it again.


author: Jeyanthan I
body: Sure, J! Glad to help.


author: robhit
body: Hi J,

Thanks for your question!

That indeed a strange behavior. I would recommend opening a support ticket for this case so that support team can investigate the problem.

Thanks,

Robhit
Confluence Pages searchable and have ability to use within Jira Ticket
Asked by Alex Swan:

Working in Jira Cloud and also using Confluence Pages for Documentations. Is there a possible app or function within Atlassian to let the Documentation in Confluence be searchable within submitted Jira ticket and be used as attachments to the ticket for making it easy to share and communicate with team or other leaders? For more context, i am an agent within Jira Cloud and would like to use Confluence pages/documentations in my Jira ticket to share with Approvers or share it as internal comments for future agents to use it as feedback.   

Thanks

Alex


Answers:
author: Dan Breyen
body: Hi [@Alex Swan](/t5/user/viewprofilepage/user-id/5452898) welcome to the Community. If you Confluence Database is setup as Knowledge Base for your JSM project, You can use the Knowledge Base functionality in the Details section of your JSM ticket to search for articles and add them to the ticket. You can also copy those links and email them for others to review.

You can create new KB articles from within JSM and edit existing articles as needed.

Hope that helps.

comments: author: Alex Swan
body: Thank you [@Dan Breyen](/t5/user/viewprofilepage/user-id/5086375)  


Tags: cloud

confluence-cloud

jira-service-management

jira-service-management-cloud
Publishing tickets to client portal
Asked by Grethel Campos:

I'd like to create a service management project where tickets are questions that are frequently asked and become "knowledge articles", NOTE: not a knowledge base from Confluence.

These tickets would be created internally by the support analyst working on client submitted tickets, so a two separate ticketing systems (one for the bugs/questions submitted by the client and the other internal for these FAQs). This FAQ ticketing project would not be visible to the client, only the output of what we "publish". These tickets/questions would then become searchable in the client portal. How do I get newly created service management project tickets to be visible on the client portal when a client searches and hits keywords that the internally-created ticket may contain?

ETA: My product plan is paid for, however, it shows I am on a free plan as I use it to create "throwaway" projects for testing.


Answers:
author: Ste Wright
body: Hi [@Grethel Campos](/t5/user/viewprofilepage/user-id/5452884)

Just to confirm - you want...

* A separate Project on the portal, which is...
* Searchable on the portal, so a customer can find tickets with FAQs?

...is this correct?

Why wouldn't you create a KB in Confluence for this?

Ste

comments: author: Grethel Campos
body: Hi [@Ste Wright](/t5/user/viewprofilepage/user-id/1166470)

That is partially correct.

The project would NOT be visible to the client to submit questions. This would all be run internally by us (the agents). If the client does a key word search in the Help Center, for instance using the below example of "API", the article would display as a link in the Help Center.

![API.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/312544i54540D646A59B517/image-size/large?v=v2&px=999 "API.jpg")

I think this is ideal for simple questions as opposed to full documentation which can remain as Confluence pages published to the Help Center. I don't think we want to create a whole confluence page for each question as then our Confluence pages would be endless.

I know this is possible as it was done at my previous company, however, I was not an Admin. Simply "resolving"/"closing" the ticket, "published" the ticket as a linkable page in the Help Center to the details of the question and answer without the ability to comment on it. I assume this was done via automation. I also remember and confirmed that the create page didn't require a Request Type so I'm not sure what issue type would not require it if it's not a true request.

I hope this better explains.


Tags: client

cloud

jira-service-management

jira-service-management-cloud

publish
How do I add more then one value in Issue fields condition?
Asked by David:

Hello,   

I'm trying to get tickets auto assigned to users when a ticket is created and the description contains a value. How do I go about adding more then one value? I'm very new to this. I tried adding in the value field "Magento, B2b" and that doesn't seem to work either. Having two separate "Description Contains" doesn't work either.   

The setup I would like is Run rule when issue is created, if the description contains Magento OR b2b then assign the issue to. Just have no idea how to do the OR part.   

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


Answers:
author: Kalyan Sattaluri
body: Hello [@David](/t5/user/viewprofilepage/user-id/4089817)

Another option is to do Advanced Compare option:

{{#if(or(issue.description.contains("B2B"),issue.description.contains("M2E")))}}true{{/}}

equals

true

Please see screenshot below for example..

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

comments: author: David
body: Hmm does issue.description.contain look at the Summary?


author: Kalyan Sattaluri
body: No, it looks at description :)

If you want to look at summary, you will use below:

{{#if(or(issue.summary.contains("**B2B** "),issue.summary.contains("**M2E**")))}}true{{/}}

equals

true

Of course, replace the bolded parts you want to check.


author: Walter Buggenhout
body: Hi [@David](/t5/user/viewprofilepage/user-id/4089817),

Use an IF ... Then ... Else condition instead. It allows you to add multiple, separate conditions.

Or, use a JQL condition instead. That would allow you to use statements like this:

```
description ~ Magento OR description ~ B2b
```

This specific scenario may be clunky because you are trying to search for the occurrence of certain words in a text field. JQL is not that awesome at searching like this (results are not always 100% sharp) and you are very much depending on how well your users type in text. If you want to really implement business logic here, I would recommend looking at alternative ways to capture this information from your users: provide select list fields where you know what you can expect, to name an example.

Hope this helps!


author: Nic Brough -Adaptavist-
body: Hi David,

What type of field are you trying to add multiple values to? Only multi-select type fields can contain multiple values (that is multi-select lists, checkboxes, labels, multi-user fields etc. You mention assignee - that is, I'm glad to say, a single-select list)


Tags: cloud

jira-service-management

jira-service-management-cloud
Alert for number of tickets assigned to a queue
Asked by Paul Prata:

I have a dashboard that shows me the number of tickets in a queue, I would like to know if available can we setup an alert to certain people if a queue hits 15 tickets at any moment in time during the day?


Answers:
author: Walter Buggenhout
body: Hi [@Paul Prata](/t5/user/viewprofilepage/user-id/5382433),

To a certain extent, yes. as a queue is based on a filter, you could set up an automation rule that is triggered by the creation of a new ticket. Use the Lookup Issues action with that exact JQL filter as input. If you count more than 14 issues, send an email:

![Screenshot 2024-03-14 at 15.51.34.png](https://community.atlassian.com/t5/image/serverpage/image-id/312123iB4D1BD135FDC702C/image-dimensions/347x351?v=v2 "Screenshot 2024-03-14 at 15.51.34.png")

That is a technical solution. However, this would fire a new email with every issue being created as long as you have 15 or more issues in your queue. I would rather encourage your people/team to work in JSM more consequently than relying on email notifications.

Hope this helps!

comments: author: Paul Prata
body: Yes we are trying to leverage JSM more and more, I'm just looking for an alert. If we integrate with SLACK, could we be alerted via SLACK and no email?


author: Walter Buggenhout
body: Of course. In that case, just replace the action with *send slack message* instead. My last paragraph - and that's what [@Alex Koxaras _Relational_](/t5/user/viewprofilepage/user-id/4150197) says too - is to talk to your team. Show them how easy it is to track work using queues IN the tool.

But again, if sending a notification helps to make people aware, go for it.


author: Alex Koxaras _Relational_
body: Hi [@Paul Prata](/t5/user/viewprofilepage/user-id/5382433)

You could achieve that by using automation. However I don't recommend it, since it will use quite a number of your monthly run limits. E.g. you could add an automation like the following:

* Trigger: scheduled 5 minutes (I would suggest once every 2-3 hours)
* Action: Lookup issues (add you queue jql here)
* If: {{lookupIssues.size}} greater or equal to 15
* Action: Send email

Something along the above lines would work.

comments: author: Paul Prata
body: Thank you for the reply and I value your expertise, but how would you express I manage this? The team isn't checking the queue in a timely manner and we need to be alerted.


author: Alex Koxaras _Relational_
body: Now that I'm thinking it, you could use the subscription filter with a custom cron expression. Try creating a filter with the same jql as your queue. Save it as a filter. Share it with your team (must be within the same group). Add a subscription to it using custom cron expression to send it e.g. every 10 mins.

But other than that, the most important thing is company mentality, team playing attitude and most of all accountability. I would strongly recommend into building these assets for your team.


Tags: cloud

jira-service-management

jira-service-management-cloud
JSM board issue
Asked by Ayush Lawania:

I have activated board feature in my service management project but when I create any subtask it appears as a new ticket on the board, how can change the setting to hide the subtask and show only standard issue types only.

![Screenshot 2024-03-14 183909.png](/t5/image/serverpage/image-id/312096iADD0B56F4CE79CBE/image-size/large?v=v2&px=999 "Screenshot 2024-03-14 183909.png")


Answers:
author: Alex Koxaras _Relational_
body: Hi [@Ayush Lawania](/t5/user/viewprofilepage/user-id/5381132)

You can't hide them. I would do as [@Jack Brickey](/t5/user/viewprofilepage/user-id/853369) very well suggested. Keep in mind that board in JSM is a very half-baked feature imo. In very early stages of development.


author: Jack Brickey
body: Hi [@Ayush Lawania](/t5/user/viewprofilepage/user-id/5381132) ,

you can create a Quick filter to hide subtasks.

* enable quick filters by clicking on the slide bars (upper right)
* Click on ellipses and Configure board
* select quick filters
* create new filter - **type != sub-task**


Tags: cloud

jira-service-management

jira-service-management-cloud
How to notify multiple people of errors in JSM automation
Asked by ?? ?:

Currently, when an error occurs in JSM automation, only individuals are notified by email, but is there a way to notify groups?  
Or, is there an add-on app that can send email notifications to multiple people if an error occurs in automation or is displayed in the audit log?


Answers:
author: Mikael Sandberg
body: You would have a user who's email address is a distribution list and set that user as the one to be notified.

comments: author: ?? ?
body: Other than that, please.


author: Mikael Sandberg
body: No, there is not other option to it.


Tags: cloud

jira-service-management

jira-service-management-cloud
AuTOMATION RULE TO BE SET FOR Scripts blocked due to Bug
Asked by SUVARNA Dixit:

Bugs having Linked issues as (Blocks)

How many blocked issues are there in that Bug , that count need to be updated runtime in one field


Answers:
author: Mark Segall
body: Hi [@SUVARNA Dixit](/t5/user/viewprofilepage/user-id/5452684) and welcome to the community!

Let me play back my understanding of the question. For each bug, you're looking for a way to capture the number of issues it blocks into a custom field. If I'm correct, you would do something like this:

* TRIGGER: Issue Linked (Blocks link type)
* CONDITION (Issue Fields): Issue Type = Bug
* ACTION: Lookup Issues
  *

    ```
    issueIsBlockedBy = {{issue}}
    ```

* ACTION: Edit Issue (your custom field)
  *

    ```
    {{lookupIssues.size}}
    ```

comments: author: SUVARNA Dixit
body: CAN WE Connect now? will try this as well


author: SUVARNA Dixit
body: HOW MANY TasKS ARE BLOCKED DUE TO THE BUG that count i need


author: Mark Segall
body: Yes that rule should work for you. Here's a screenshot from my test environment. I'm using the Description field, so you would just need to change that to your specific field:

![2024-03-14_06-13-21.png](https://community.atlassian.com/t5/image/serverpage/image-id/312097iC7C71221B7914EAC/image-size/large?v=v2&px=999 "2024-03-14_06-13-21.png")

And here's my test bug

![2024-03-14_06-14-19.png](https://community.atlassian.com/t5/image/serverpage/image-id/312098iA1ED385EED66798E/image-size/large?v=v2&px=999 "2024-03-14_06-14-19.png")


author: SUVARNA Dixit
body: :) works now have to change the events

thank you


author: suvarna dixit
body: I would like to schedule it because not all the time issue linking will processed


author: Mark Segall
body: Processing on a schedule is possible, but will create performance risks because there's no way to query by say, bugs that have had links in the last *n* hours. As a result, you would have to process against every bug whether they've had new links or not. Automation has throttling limitations for how long a single rule execution can take and how many cumulative seconds they can run in a given day that you'd need to take into consideration.

If you're ok with that, you would replace the trigger on your rule with something like this:

* TRIGGER: Scheduled
  *

    ```
    type = Bug and issueLinkType IN (Blocks) AND resolved IS EMPTY
    ```


Tags: jira-service-desk-cloud

jira-service-management

jira-service-management-cloud
Creating a new Dev2 Instance
Asked by Ravuri_ SuryaBhagavan _Contractor_:

Hi All,

Currently we are having JSM premium license application, and along with it we are having a sandbox and a Dev instance within the same organization. Could you please help me to create a new Dev2 instance within the same organization and is there any limit to create a number of instances within the same organization.

Thanks,

Surya.


Answers:
author: Robert Wen_ReleaseTEAM_
body: Hello [@Ravuri_ SuryaBhagavan _Contractor_](/t5/user/viewprofilepage/user-id/5452672) ! Welcome to the Atlassian Community!

Currently, you can only have one non-production instance of a Premium product. There are EAP (Early Access Programs) that allow for more than one, but I believe it's closed.

The last I heard that multiple sandboxes would be released is Q4 of 2024.


author: Ravuri_ SuryaBhagavan _Contractor_
body: Hi,

I came to know that we are using an enterprise license for JSM. Will it be possible to create a new instance using the enterprise license. If yes, can you please help me how to do that.

Thanks,

Surya.


Tags: cloud

jira-service-management

jira-service-management-cloud
Help regarding Workflow
Asked by leon Greiner:

I have a problem and don't know how to handle such a workflow right.

![workflow.PNG](/t5/image/serverpage/image-id/312085i31F5DAAA733D9464/image-size/large?v=v2&px=999 "workflow.PNG")

OK, in my company we have several approval decision before a product gets published.

Every products has normally the same workflow like in the picture. But sometimes we skip for example US APPROVAL but dont want to skip LEGAL APPROVAL. Is it somehow possible to adjust this so that we can decide which approval we need.

Thank you for your help.

If you need more Information please let me know.


Answers:
author: John Funk
body: Hi Leon - Welcome to the Atlassian Community!

We use a custom checklist field that includes optional approval steps. We default the field with all values checked. If a value is unchecked the step becomes optional. Then we update the Conditions going to those steps to check for the value of the custom checklist field.


author: Richard Scholtes
body: Currently you try to solve the complexity in the workflow only. This is possible, but as you can see it bloats the workflow. There are some possibilities to tackle this differently.

* Automation - You can have some of your workflow steps skipped by an automation rule. This is normally done if you build it like this:
  * Trigger is a status is reached ( in this example "Approval Decision"
  * IF condition is on whichever is the reason for your skip
  * action is to transition the issue to the needed approval
  * this also would allow you to branch inside the workflow to totally separated "runlines" for better readability
* Splitting the different scenarios in different issue types which allows you to use different workflows
  * Important prerequisite condition for this way is of course, that the decision which approvals you need is clear from the start and is not decided spontaneously in between


Tags: data-center

jira

jira-service-management

jira-service-management-data-center

workflow
How to AutoPopulate linked ticket when i click on Create linked issue
Asked by Krish:

current set up for my project is when i click on "create Linked issue" a window pops up and i will need to fill in the information manually.

i am looking for a way where when i click on the link, a set of data is pulled from the parent ticket fills up in the description of the new child ticket.

is there a way for this?


Answers:
author: Harsh
body: Hi [@Krish](/t5/user/viewprofilepage/user-id/5452523)   

Welcome to the community.  

You can use Jira automation feature or this can be achieved by Workflow Post Function as well , which is inbuilt.

In case you are going for Automation - you can refer this doc - [Get started with Jira automation \| Cloud automation Cloud \| Atlassian Support](https://support.atlassian.com/cloud-automation/docs/get-started-with-jira-automation/)  

I hope this helps. Do let me know if there is any other questions.


Tags: cloud

jira-service-management

jira-service-management-cloud