youngmon/atlassian-qna huggingface dataset:
API Help - Get On-Calls
Asked by Scott Wright:

I'm very new to using API's. I'm trying to integrate our ticketing system : SCSM with Opsgenie. I'm trying to use the "Who's On Call API"

<https://api.opsgenie.com/v2/schedules/:scheduleIdentifier/on-calls>

The curl example shows:

curl -X GET '[https://api.opsgenie.com/v2/schedules/ScheduleName/on-calls?scheduleIdentifierType=name\&flat=true](https://api.opsgenie.com/v2/schedules/ScheduleName/on-calls?scheduleIdentifierType=name&flat=true)'  
--header 'Authorization: GenieKey eb24alp-faa2-4ba2-a551q-1alpf565c889'

I'm using powershell:

Invoke-webrequest -Method Get -Uri '[https://api.opsgenie.com/v2/schedules/SRE_Test_schedule?scheduleType=name\&flat=true](https://api.opsgenie.com/v2/schedules/SRE_Test_schedule?scheduleType=name&flat=true)' -Header @{"Authorization"="GenieKey XXXXXXXX-XXXXX-XXXX-XXXXXXXXXXXX"}

I'm getting

The remote server returned an error: (403) Forbidden.

Ideas?

Does anyone have any examples of using API's this way?


Answers:
author: Scott Wright
body: I figured it out. I had not properly registered the GenieKey for Authorization.

For any other folks new to API's, this is what I learned:

The data returned is JSON. If you want to parse data out of the contents returned, this is how I did it:

$data = Invoke-Restmethod -Uri <https://api.opsgenie.com/v2/teams/172299f2-9567-4e38-bcb7-b1f992932ca1> -Method Get -Headers @{'Authorization'='GenieKey xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'}

# to get the username for example:

$data.data\[0\].members.user.username

I hope this is helpful to anyone that was new to powershell / API's and Opsgenie API integration.


author: Michael Smith
body: Hi [@Scott Wright](/t5/user/viewprofilepage/user-id/3747829).  

Could you help me with my request? I'm getting the same error when I'm trying to add note to alert.   

You may answer in my post:  

<https://community.atlassian.com/t5/Opsgenie-questions/Add-Note-to-Alert-via-IPA-403-ERROR/qaq-p/1434998>  

Regards,  
Michael
Simple build with docker env does not grab artifacts
Asked by Mariusz Dullak:

Hi all,

I decided to move my build from agent env to dokcer env. My docker is created from ubuntu image + some apt-get install etc.

I am starting docker with build-dir and tmp dir attached from host off course.

Build completes successfully but artifacts are not fetched.

After some struggling I decided to change whole build plan to single stage, with single job with single script task doing only:

touch test

My artifact definition is:

Location: empty

Copy pattern \*

Artefact is not published. I can see the artifact (empty file called test) created on the host in proper dir.  
When I start docker container manually by copy-paste command from log I can see the file as well.

What am I doing wrong?

Do I need to set entry dir in my docker somehow? Is the problem that docker user is root (I did not change that deliberately, but I can if needed).


Answers:
author: Mariusz Dullak
body: After much more debugging I found that this is not docker problem.

Artifacts are found but are failing to publish.

Logs: Unexpected HTTP status code: HTTP/1.1 302


Tags: artefact

docker
How can I use single Build plan for Multipel Repos in Bamboo
Asked by Akshay:

Hi Team,

How can I use Multiple repos to use in single build plan, So if I changed in one of the repo bamboo should trigged the build by taking changes from that repo only.


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

Welcome to the Community!

What you are asking for isn't 100% possible. Here is the best that I was able to come up with to work around that same issue.

I created individual build plans for each of the repositories I wanted to trigger a build when changes happen.

Then, I have a "master" build plan that is triggered upon successful build of any of those other builds and all it does is collect the artifacts from all of the build plans. That is the closest I've been able to get monitoring multiple repos but only build that which has changed.

I hope that helps!

-Jimmy

comments: author: Akshay
body: Hi [@Jimmy Seddon](/t5/user/viewprofilepage/user-id/512822) ,

we have 250 repository for JAVA project and 700 for IIB services


author: Jimmy Seddon
body: In that case I'd recommend build the plans with Bamboo's Java specs since you can have a programmatic way of building and updating the configuration.

Overview: <https://confluence.atlassian.com/bamboo/bamboo-java-specs-941616821.html>

Reference guide: <https://docs.atlassian.com/bamboo-specs-docs/7.0.4/specs.html?java>
Checkout Source Code uses wrong SSH on Remote Agent
Asked by Jeppe Finne S?rensen:

Hi all,

I am attempting to run a Checkout Source Code task on a remote windows agent. The repository is linked to a Bitbucket server repository. I am able to connect to the repository from the machine which the remote agent is installed through the terminal outside of Bamboo with for example:

```
git clone ssh://git@10.0.1.5:7999/myProject/myRepository.git
```

When using the Bamboo Checkout Source Code I get the following error:

```
Cannot fetch branch '(unresolved) HashAndSource{refName=[null], branch=[master], hash=[5f518cf54dfe9fd19c87714aef2896ae9a485094]}' from 'ssh://git@localhost:7999/rppol/devops.git' to source directory 'C:\remote_agent_home\xml-data\build-dir\DAT-OCD3-JOB1\DevOps'. com.atlassian.bamboo.plugins.git.GitCommandException: command ['C:\Program Files\Git\bin\git.exe' ls-remote ssh://8ae100db-074f-4837-a767-8b687e754a6c@127.0.0.1:53081/rppol/devops.git] failed with code 128. Working directory was [C:\Users\nc-jfs\AppData\Local\Temp\9]., stderr:Remote connection failedstdout:Warning: Permanently added '[127.0.0.1]:53081' (RSA) to the list of known hosts.BAMBOO-SSH-PROXY: [SSH proxy tried to connect to [git@localhost/127.0.0.1:7999]: and failed due to the following error: [Remote connection failed]: Failed to get the session.]fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.
```

To solve the issue, I have attempted the following:

- Setting up ssh keys on the remote machine and Bitbucket and from Bamboo to Bitbucket. This seems not to be the issue as I am able to connect locally.

- Adjusting the ssh base url in Bitbucket server settings. Have tried both ssh://10.0.1.5:7999 and ssh://localhost:7999.

- Opening 7999 ports on both servers

Since ssh works through the terminal on the remote machine, I do not think it has to do with permissions. It seems to me, that the localhost which Bamboo attempts to use should actually be 10.0.1.15. Any advice on how to solve this issue?


Answers:
author: Jeppe Finne S?rensen
body: We resolved this problem.

Deleting and readding the repository worked. This is something to be aware of when cloning repositories.


author: Vamsi
body: Hi [@Jeppe Finne S?rensen](/t5/user/viewprofilepage/user-id/3939433)

Can you provide the Git executable path added to the agent matrix (Bamboo capabilities). Also, where you have installed the Git on remote agent machine? What is remote agent installation path?


Tags: bitbucket-server

check-out

remote-agent
HTML report getting downloaded
Asked by Thejdeep:

Hi,

Version : 6.9

In the security settings, I do have \`Allow Artifacts to be embedded in Bamboo pages\` checked to be true. But yet, the HTML test reports are getting downloaded instead of being able to view in the browser itself.

I am using Amazon S3 as an artifact handler to store the reports.

Can someone point me to what might be wrong ? Thanks !


Answers:
author: Alexey Chystoprudov
body: Artifacts stored at S3 were designed to decrease load at Bamboo server. Agent uploads it directly to AWS and not bypass server.

One of limitation is inability to embed them to HTML pages or browse via browser

comments: author: Thejdeep
body: Thanks for your reply.

Is it possible to store it both in S3 and also the Bamboo server so that we can render the HTML in the browser ?


author: Alexey Chystoprudov
body: Yes, you need to enable both artifact handlers at plan settings
Bamboo??????WIndows???????????
Asked by npd-t-maedak11_coop_kajima_com:

Bamboo??????WIndows????????????????

<https://ja.confluence.atlassian.com/bamboo/running-bamboo-as-a-windows-service-as-the-local-user-416580754.html>

???

2. Edit the Bamboo service to run as the "local user" {#toc-hId--1351605452}
----------------------------------------------------------------------------

?

**Bamboo build server**

**???????**

**????????????????**

**?????start in Console?Bamboo?????????????**


Answers:
author: Tomoko Suzuki
body: ?????????????????????????

Start in Console ?? Bamboo ????????[Running Bamboo as a Windows Service](https://ja.confluence.atlassian.com/bamboo/running-bamboo-as-a-windows-service-289277308.html) ???????? Bamboo ?????? services.msc ????????????????


Tags: language-ja
Interface to validate bamboo spec
Asked by Shamil Nunhuck:

Is there an interface I can use to validate a bamboo spec, specifically a YAML file?


Answers:
author: Jimmy Seddon
body: Hey [@Shamil Nunhuck](/t5/user/viewprofilepage/user-id/185202),

This is a great question! I don't believe one exists currently but I would love for this as well. The error logs aren't always the best at identifying what is wrong and that is only after you have committed your changes to the spec in the repository.

However there is an existing feature request for something similar that I have voted on myself and I'd recommend you do the same: <https://jira.atlassian.com/browse/BAM-20544>

Sorry I can't offer more help on this one.

-Jimmy
Build artifact checksum changing after each download
Asked by Brenden Smerbeck:

Hello all,  

I'm encountering an issue with my build artifacts. I have a build which generates two .tar.gz archives. I'd like to use these in a Yocto build of a custom Linux image. However, every time I download the file from Bamboo and calculate its checksum, the value has changed.  

Am I doing something wrong? Or is this just an innate function of Bamboo.   

Thanks for your help.  

**\*EDIT\*** So I've begun testing this on a couple different hosts. On windows, I can click to download the .tar.gz archive and the sha256 checksum remains the same.  

Additionally, on the CentOS host with Yocto, if I perform the following

```
curl -s <path to archive>|sha256sum
```

I get the same checksum. The checksum only changes after I download the file using \`wget\`. I imagine this is why Yocto continues failing the build.  

**\*EDIT 2\*** So I performed a diff on the two archives and discovered the following:  

```
< <input type="hidden" name="atl_token" value="cd828970f1539040af6457b8398fa11de7d0a7aa" />
---
> <input type="hidden" name="atl_token" value="35a35ae887399c904829400f142485e59f623190" />
```

Thoughts on how this may be worked around?   

**\*EDIT 3\***Looks like this is an issue with performing an unauthenticated wget


Answers:
author: Brenden Smerbeck
body: Solved. Going to need to implement a deployment process to move it to a local directory for retrieval by Yocto


Tags: artefact

checksum
How bamboo java specs get converted to yaml during execution of code
Asked by Kaushal_Samrat:

Hi Team,

I got to know from server logs ,Bamboo spec runner convert specs into yaml while execution and publishing plan to bamboo server. Can u explain me how it happen.


Answers:
author: Alexey Chystoprudov
body: There's Maven mojo which executes conversion of Java specs to internal YAML format when publishSpecs profile is used, locally it happens when you run

```
mvn -PpublishSpecs?
```


Tags: bamboo-administration

bamboo-development
Unable to read bamboo API custom variable send from JIRA automation
Asked by PR:

Hi,

I have an JIRA automation which triggers my bamboo build when an issue is created.I am trying to pass a smart value {{issue.summary.match}} to my bamboo plan.

But when i try to print the value in bamboo it's empty.

My config below:

JIRA Automation web request details:  
Content-Type:application/x-www-form-urlencoded

Authorization:xxxxx

HTTP Methos:POST

Webhook body:Custom data

Custom data:

stage:Job1  
executeAllStages:1  
bamboo.variable.var={{issue.summary.match(\<myregex)}}

NOTE:I tried logging the value for my smartvalue and it does print the expected output.

I referred to <https://docs.atlassian.com/atlassian-bamboo/REST/7.0.4/#d2e1239> .

Can anyone help resolve this issue?


Answers:
author: nil
body: Any update on this . how you resolved this ?
Powershell Script Class
Asked by CarlAtCdgems:

Bamboo version 6.10.4

Powershell version 5.1

I have a Bamboo Task setup as Script Interpreter - Windows PowerShell, Script Location - In Line.

Within the in-line powershell script, I set a few variables, then call .\\Test.ps1

After changes are made to the Test.ps1, it is saved, highlighted and run so PS has the updated version in memory. I need Bamboo to run the new version of Test.ps1 but it is running an old version. How can I force Bamboo to re-read/re-cache the powershell script?

Thanks,

Carl


Answers:
author: Edwin Kyalangalilwa
body: Hi [@CarlAtCdgems](/t5/user/viewprofilepage/user-id/3934633) ,

Is the script being sourced from a code repository? If so, then you may want to clean the build directory.

![Screen Shot 2020-05-26 at 11.39.52 AM.png](https://community.atlassian.com/t5/image/serverpage/image-id/96488iD6F95007F606E4FE/image-dimensions/535x154?v=v2 "Screen Shot 2020-05-26 at 11.39.52 AM.png")
Support for up to data JDK Version
Asked by Thomas Hutterer-Tik:

Please provide support for up to data JDK Versions in Babmoo, JDK 1.8 is definitely out dated.

Thanks


Answers:
author: Moses Thomas
body: [@Thomas_Hutterer-Tik](/t5/user/viewprofilepage/user-id/2941954)

According to the Atlassian information here [Bamboo Support Platforms](https://confluence.atlassian.com/bamboo/supported-platforms-289276764.html) jdk 1.8 is supported so what does it mean jdk 1.8 is definite out dated ?

Kind regards,

Mo

comments: author: Thomas Hutterer-Tik
body: The current Java version 14 and I want to ask Atlassian to support up to date java versions


author: Moses Thomas
body: [@Thomas_Hutterer-Tik](/t5/user/viewprofilepage/user-id/2941954) Well currently java 11 is supported why not try Java 11 first? what do want to achieve with Java 14 ?
Create Maintenance Plan to Pause Alerts for specific Assets Objects - NOC
Asked by Josh Rossman:

Hello,

We are currently demoing JSM as an incident management tool for our NOC. The NOC will focus on monitoring Networking Equipment (Routers/Switches/Voice/Wireless etc). One topic that has been brought up several times is how we will handle maintenance windows. We have several monitoring tools that all send different alerts. Those programs have the ability to pause alerts but it will be best for us to handle this from a centralized location. Currently, we are using Splunk to pause alerts for specific devices (this will go away in the near future.) The pausing works by selecting hostnames of devices you want to disregard alerts for during a specified time.  

From what I can tell, we would not be able to create a maintenance window that pauses alerts for a specific Asset Object. We technically have 1000's of devices that are monitored. Depending on the work being performed we may need to pause monitoring on 10 devices at a site that has 300+ devices for a 3 hour window due to patching/upgrading etc. We don't want to pause monitoring for the whole site since we want to receive alerts if devices outside of the maintenance scope happen to have an issue at the same time. I believe I could accomplish this with Custom created policies for each Network Device but this isn't practical and wouldn't be maintained (unless automated).

Does anyone have any ideas surrounding this subject? It's clearly something that Atlassian could implement and seems like it would be a benefit to many. I may be missing something but the maintenance plan options seems pretty cut and dry.

Excited to see what the community has to say!


Answers:
author: Fabian Lim
body: Hi [@Josh Rossman](/t5/user/viewprofilepage/user-id/5519525)

Unfortunately, you have the correct approach through the policies and maintenance windows configuration, which would be a nightmare to configure and maintain.

A suggestion would be to create all the policies via rest APIs. Then trigger the maintenance creation via a rest api call when a JSM change ticket is tagged with the specific asset/s when is transitioned to "In progress". This way you can get some sort of automation working for you.

Regards,

Fabian

comments: author: Josh Rossman
body: Fabian,

Thanks for the reply. I see an easy opportunity for Atlassian to integrate a feature or function based off of Assets.

Best,

Josh


Tags: cloud

jira-service-management

jira-service-management-cloud
Hello community, When I'm trying to access my portal I received an error 403, but I'm administrator.
Asked by Vinicius:

https://\<mycompany\>.atlassian.net/servicedesk/customer/portal/4


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

Being a Jira Admin does not automatically give you full access to every project and portal. It still depends on the Permission Scheme for the project. Do you have access to the overall Help Center for the site?


author: Kristj?n Geir Mathiesen
body: Hi [@Vinicius](/t5/user/viewprofilepage/user-id/5535436) Have you granted yourself access to the project as a "Customer"?

HTH,  
KGM


Tags: cloud

jira-service-management

jira-service-management-cloud
meaning of "Support group" category in Jira Assets
Asked by Ma?l P?gny:

Hi everyone,

I am wondering what the meaning of the "Support group" entry is in Jira Assets.

A brief textual definition followed by a couple examples would be greatly appreciated.

I am familiar with ISO norm terminology for assets and I wonder in particular if Support group is similar to ISO Support Level.

Thank you very much for your kind help,

Ma?l


Answers:
author: Fabian Lim
body: Hi [@Ma?l P?gny](/t5/user/viewprofilepage/user-id/5535405)

Welcome to the community!

If you are referring to the attributes in the "Application" Objects under "Application Portfolio" noted below, it's just the Jira Group that supports that application.

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

You can use that attribute to automatically tag the issue to notify that group or put it in their queue.

The way you can use this is as follows:

- A customer creates an Incident with the jira asset field that represents the application "Apach-Spark". (A custom field may have be created for this if it doesn't exist)

- At creation, you can use jira automation to pick up the "support groups" content, "Web Services", from this application and then copy it to a custom field "Assigned Team" which is a group picker field.

- Then if you have Queue for "Web Services" filbered by the "Assigned Team" custom field it will appear on their queue.

- You could have also have a notification in the automation to notify the group that a new ticket was created

I hope this helps.

Fabian

comments: author: Ma?l P?gny
body: Thank you very much for your clear and detailed answer Fabian! This does very much help. Just one last follow-up question, that I cannot answer myself because my trial session just expired: are the people in your Jira group meant to be members of your company, or could an external organization be referred to as a support group? This question is meant to clarify where external support information is supposed to go.


Tags: cloud

jira-service-management

jira-service-management-cloud
meaning of "Ownership group" and "Ownership type" in Jira Assets
Asked by Ma?l P?gny:

Hi everyone,

Could anyone clarify the meaning of "Ownership group" and "Ownership type" in Jira Assets?

A brief textual definition followed by a couple examples for clarification would be much appreciated.

I am familiar with the ISO norm Category of "Owner" for assets, which is meant to describe the person or department who owns the asset, and I am just wondering what the difference is here in Jira Assets terminology.  
Thank you very much for your help,

Ma?l


Answers:
author: Christopher Yen
body: I think it gets confusing because Jira mixes IT Assets and CMDB into one record so I wouldn't focus too much on out of the box fields unless you have a need for them. You will also get better adoption if the names of the fields are familiar and fit your existing company culture.

Seems like **ownership type** is for values like BYOD, Company Owned, and maybe something like Leased could be a potential value.

My interpretation of **Ownership group** could be for compliance, who is accountable for the asset / CI? which could potentially be different than Support Group which is why they have it separated.

We also added a field that's linked to our user objects of "Current User" which is for who is the assigned user to that asset/CI

But I would try to minimize the amount of fields that are manually managed stick to what is needed for your workflows and compliance requirements. We deleted or renamed most of the fields in our setup


Tags: cloud

jira-service-management

jira-service-management-cloud
Meaning of "Created" data category in Assets
Asked by Ma?l P?gny:

Hi everyone,

I would like to understand the exact meaning of the "Created" data entry in Jira Service. Is it a metadata on the creation of the Asset object or is it data on the asset itself, for instance its date of acquisition?

The same question naturally propagates to the "Updated" category. Is it about date of update of the Asset object or is it about updating the asset itself "in real life", for instance updating a software to a new version?

Thank you very much for your help even if my question is very basic!

All the best,

Ma?l


Answers:
author: Fabian Lim
body: Hi [@Ma?l P?gny](/t5/user/viewprofilepage/user-id/5535405)

Welcome to the community!

I believe is the date the assets was created into the Object Schema. Same with the "updated" attribute.

If you go under the "Activity" of one of the objects you will see that the dates should match on the creation and last update made to the object.

Regards,

Fabian

comments: author: Ma?l P?gny
body: Thank you very much for your kind welcome Fabian, and your very relevant answer. This completely solves my issue.


Tags: cloud

jira-service-management

jira-service-management-cloud
Client configuration
Asked by Rodrigo Buch:

Hey Is it possible to configure Jira Service Management to allow opening tickets only through the customer portal?

And how to allow the customer to register through the portal?

And where can I export all registered customers?


Answers:
author: Bibek Behera
body: [@Rodrigo Buch](/t5/user/viewprofilepage/user-id/2150975)

1.You will have to disable the email request![2024-07-03_20.33.51.png](https://community.atlassian.com/t5/image/serverpage/image-id/333335iE37A8CB03A73B80A/image-size/large?v=v2&px=999 "2024-07-03_20.33.51.png")

2.allow the customer to register through the portal?

You can manage this via Customer access <https://support.atlassian.com/jira-service-management-cloud/docs/how-global-permissions-affect-project-permissions/>

3. <https://confluence.atlassian.com/jirakb/how-to-export-portal-only-customers-list-from-jira-service-management-1224782478.html>

comments: author: Rodrigo Buch
body: Hi, [@Bibek Behera](/t5/user/viewprofilepage/user-id/510396)   
In the 2nd option, everything is permitted but does not ask the customer to register.  
In option 3, it only exports users from my organization. I want to export the contacts of customers who are associated with organizations or who have sent a support request via email.


author: Rodrigo Buch
body: Hi [@Bibek Behera](/t5/user/viewprofilepage/user-id/510396)

I was able to perform the configurations following the documentation

Thanks


Tags: cloud

jira-service-management

jira-service-management-cloud