youngmon/atlassian-qna huggingface dataset:
How to access path of a file in bamboo working directory using JAVA code
Asked by V gopi:

Hi, I am currently in need of reading a file path which is present in bamboo build working directory. This is how i am doing currently. but im not able to get the path

![bamboo variable.png](/t5/image/serverpage/image-id/289337i7CC95137B991BC45/image-size/large?v=v2&px=999 "bamboo variable.png")

Can you help me to resolve this?


Answers:
author: alok m
body: The snippet of code you've provided seems to be attempting to open a KeePass database file by constructing a file path that includes a system property for the Bamboo build working directory and a relative path to the KeePass file. Here's a breakdown of what the code does:

1. **System.getenv("bamboo.build.working.directory")** tries to access an environment variable named **bamboo.build.working.directory** which is expected to hold the path to the Bamboo build working directory.
2. It then appends **"\\Temp\\KEEPPASS\\mongodb.kdbx"** to this path, which is the relative path to the KeePass file you want to access.
3. The **.openDatabase("remove\&credentials@1527");** method is then called with a passphrase.

If you are not able to get the path, there might be a few reasons:

* The environment variable **bamboo.build.working.directory** might not be set or could be incorrect.
* There may be a typo or a mismatch in the case of the environment variable name.
* The file path may not be correct, or the file might not exist at the specified location.
* File permissions might be preventing access to the file.

To debug this issue, you could add logging to print out the constructed file path before trying to open the database. This way, you can verify whether the path is correct. Here's an example in Java:

String workingDirectory = System.getenv("bamboo.build.working.directory");

String filePath = workingDirectory + "\\\\Temp\\\\KEEPPASS\\\\mongodb.kdbx";

System.out.println("The constructed file path is: " + filePath);

// Now proceed to open the database with this file path

KeePassFile database = KeePassDatabase.getInstance(filePath)

.openDatabase("remove\&credentials@1527");

Make sure the KeePass file exists at that path and that the application has the necessary permissions to access it.

If the environment variable isn't set, you may need to check your Bamboo configuration to ensure that it is being passed to your build environment correctly. Alternatively, if the Bamboo build working directory follows a consistent structure, you might be able to construct the path based on known values instead of relying on an environment variable.


Tags: bamboo-development
Trigger or start a new build on a bamboo plan using rest api from a powershell script
Asked by Suguna Tejaswini Nandakumara:

In order to do the trigger I am using the below powershell commands(Also I don't want to use the username password for auth, is there any other way to to that? may be using a PAT or something):

$url = "https://\<host\>/rest/api/latest/queue/\<ProjectKey\>-\<BuildKey\>"  
$header = @{  
"Content-Type"="application/json"  
}  
$body = @{  
"Authorization"="Bearer \<Key\>"  
} \| ConvertTo-Json

<br />

Invoke-RestMethod -Uri (\[Uri\]$url) -Method Post -Headers $header -body $body

But I keep getting the below error:

Invoke-RestMethod : Unable to connect to the remote server..

What am I missing in the above line..or is there any other way to achieve this?


Answers:
author: Shashank Kumar
body: Hello Suguna,

Welcome to Atlassian community.

You can use the use the below 2 links to get more information about this, instead of using userid password you can generate PAT tokens.

1. <https://docs.atlassian.com/atlassian-bamboo/REST/8.2.5/#d2e5904>

2. <https://developer.atlassian.com/server/bamboo/using-the-bamboo-rest-apis/>

Sample example ( replace the appropriate values accordingly )

curl -H "Authorization: Bearer NDc4NDkyNDg3ODE3OstHYSeYC1UgXqRacSqvUbookcZk" POST <http://localhost:8085/rest/api/latest/queue/PROJECTKEY-PLANKEY>

Regards,

Shashank Kumar

comments: author: Suguna Tejaswini Nandakumara
body: Thank you for the details.

I tried doing below, by adding a powershell script task in a build plan.

$token = "\<PAT\>"  
$headers = @{  
Authorization="Bearer $token"  
}  
Invoke-RestMethod -Method Post -Headers $headers -Uri "<http://localhost:8085/rest/api/latest/queue/>\<[PROJECTKEY-PLANKEY\>](http://localhost:8085/rest/api/latest/queue/PROJECTKEY-PLANKEY)"

I still get the error as below:

Invoke-RestMethod : Unable to connect to the remote server


author: Shashank Kumar
body: Hello Suguna,

I was able to trigger a REST API with the exact same configurations, example below

```
$token = "acd"
$headers = @{
Authorization="Bearer $token"
}
Invoke-RestMethod -Method Post -Headers $headers -Uri "http://localhost:8085/rest/api/latest/queue/BAM-BOO"
```

<br />

I think the error which are getting **Invoke-RestMethod : Unable to connect to the remote server ,**i think localhost is not being able to resolve by the agent where you are running the builds.

Are you running this on a local agent or a remote agent and can you see if the URL you have put for your Bamboo Instance is correct?

Similar question is explained here \> <https://stackoverflow.com/questions/38830912/powershell-invoke-restmethod-unable-to-connect-to-the-remote-server>

Regards,

Shashank Kumar


author: Suguna Tejaswini Nandakumara
body: Hi,

Yes the URL is correct. May be its because of the authentication issues.

I will look into the link you have added.

Thanks and regards,

Tejaswini N.S
Subscriber maintenance: unconfirmed subscribers and subscribers that no longer exist
Asked by w.bos:

Hello,

I have two questions about subscriber maintenance.

I know "quarantined" subscribers with no action are deleted after 90 days.

But what happens with:

1. "Unconfirmed" subscribers?
2. Subscribers where the mail address becomes at one point invalid?

Cannot find it in the documentation... who knows the ansers?

Kind regards,


Answers:
author: Kevin Paulovkin
body: They stay in "Unconfirmed" - but the initial email confirmation that gets sent expires after 90 days and must be re-sent to the subscriber after this time.

<https://support.atlassian.com/statuspage/docs/enable-subscribers/>

"When they subscribe, they will receive an email with a confirmation button. The confirmation link must be clicked in order to receive any notifications; it expires after 90 days."

comments: author: w.bos
body: Thanks! This solves 50%.


Tags: cloud
Embed for private pages
Asked by Des Armstrong:

Hi - we'd like to be able to use the Embed feature for our private page. Is this on the roadmap? If so when can we expect to see it?

I see there's an app for use with JIRA Service desk so I'm hoping there's something available or coming up for other applications.


Answers:
author: Jesse Klein
body: Hi Des,

This is Jesse from the Statuspage support team. Welcome to the community. We don't have this on the roadmap at this time and the ticket is still in a state of gathering interest.

I can add this community post to the feature request we have to show more interest but it might be a while before this gets prioritized. If you want to provide more details about your use case, please feel free to open a ticket with us so we can add the context. Thanks for your time!

Regards,  
Jesse
StatusPage Attachments
Asked by Chris Milton:

Hi team,

Is it possible to add attachments to StatusPage notifications?

Thanks,

Chris


Answers:
author: G subramanyam
body: Hi [@Chris Milton](/t5/user/viewprofilepage/user-id/5209274) welcome to the Atlassian community.

I don't think, we can directly attach files to Atlassian Status page notifications.

Their are few workarounds, like:  
1. Proactively notifying users of downtime.  
2. Let end users opt-in to the subscriptions of the services they are interested in.  
3. Add links to relevant resources within the incident or maintenance page itself for easy access.

If you haven't already, check this [official status page](https://www.atlassian.com/software/statuspage/features/notifications) notifications link for helpful information.


author: Kevin Paulovkin
body: I don't believe so. Found this question answered by Atlassian here: <https://community.atlassian.com/t5/Statuspage-questions/Attach-files-to-scheduled-maintenance-or-incidents/qaq-p/2111786>

"With the current product design, we don't have the ability to attach files to incidents or maintenance details. The best workaround to do this would be to upload the document/file to a central \& accessible location and add the document/file URL in the incident/maintenance message.

Please note we do have a feature request open with our engineering team to be able to achieve this request. STATUS-75 is the feature request ID for your reference."

comments: author: Chris Milton
body: Thanks Kevin. Any idea how I can track the status of STATUS-75?


author: Kevin Paulovkin
body: For some reason, Atlassian's feature requests for StatusPage are not open publicly like they are for Jira or other products. So there isn't a link to vote or follow for updates unfortunately.


author: Kevin Paulovkin
body: Actually, just found this page - <https://jira.atlassian.com/projects/STATUS/issues/STATUS-373?filter=allopenissues> but I don't see STATUS-75 - looks like only Bugs are visible to the public


author: Chris Milton
body: Thanks Kevin. That's frustrating.


Tags: cloud
Atlassian user as Statuspage subscriber
Asked by JS:

When I add a user to my Atlassian site, using admin.atlassian.com, is it possible to give that user subscription access to my private or audience-specific Statuspage?

I want the user to be able to log in to both our service desk and Statuspage using their Atlassian account.


Answers:
author: Jesse Klein
body: Hello there,

This is Jesse from the Statuspage support team. Thanks for the question about users. The users through admin.atlassian.com are separated from adding subscribers with the pages.

If you want to have this user setup to be an admin in Statuspage and have access to the service desk, this can be accomplished by giving the user the correct group permissions within admin.atlassian.com

If, however, you want them to have access to the service desk and be a viewer of Stautspage, you wouldn't be able to use admin.atlassian.com to accomplish this. Statuspage page viewers are entirely managed within the product so if you needed to go this route, you would need to do it separately. Please let me know if you have any questions about this.

Regards,  
Jesse
Change icon of page in the https://manage.statuspage.io/pages/<id>
Asked by Pierre-Alain Galtier:

Hello Community,

I have 3 different pages (=3 different web apps) in my statuspage.io application.

I can change the page I want to manage by using the combo-box in the left part of the page. Each of them has an icon and a label.

I'm wondering how I can change the icon before the label (using the web application icon)?

Thank you


Answers:
author: Kevin Paulovkin
body: You can change the Favicon as well as the icon you are referring to by going to "Your Page" \> "Customize page and emails" \> "Fav icon"

Note: this only changes the favicon when you are viewing the front end of your page. It does not change the Favicon or browser icon when you are in the back end (<https://manage.statuspage.io/pages/>\<id\>). However the icon next to the title of each page in the page dropdown will be updated.

comments: author: Pierre-Alain Galtier
body: Thanks ! It works by changing the FavIcon


author: Eugenio Onofre
body: Hi [@Pierre-Alain Galtier](/t5/user/viewprofilepage/user-id/3537146)

This is only allowed on the paid-plans of Atlassian StatusPage that allow custom CSS/HTML.

Font icons can be used by embedding the Fontawesome CDN code in the head section of "Custom header HTML". Once that is added, you can input your font icon code to your preference.

![Statuspage_-_Customize_page_and_Slack___sp-feedback___Atlassian.png](https://community.atlassian.com/t5/image/serverpage/image-id/124750iC39BB9D50F598D9A/image-dimensions/451x330?v=v2 "Statuspage_-_Customize_page_and_Slack___sp-feedback___Atlassian.png")

Please remember to accept this answer in case it helps you resolve your question as it may also help other community members in the future.

Regards,  
Eugenio


Tags: cloud
published API does not return data as documented and needed
Asked by Roy Speier:

calling the API to return a list of component groups.  

using curl: curl <https://api.statuspage.io/v1/pages/{page_id}/component-groups> \\  
-H "Authorization: OAuth your-api-key-goes-here" \\  
-X GET  

api-info page from <https://manage.statuspage.ioc> provided the your-api-key-goes-here  

The data returned was NOT a list of component groups, the data looked like it contained information specific to the UI elements on the page, as included in the output were several element values, such as  
"favicon_logo", "transactional_logo", "normal_url", "retina_url", "hero_cover", "email_logo" and "twitter_logo"  
I'm looking to retrieve the list of current component groups. I'd REALLY like an API that would retrieve the data for a specific component group, specified by name in the query API call. That API call doesn't currently exist so I need to use the API to get the list of component groups and iterate over this list looking for a matching group name. This approach should work but only if the API call to fetch the list of component groups works as documented.  

I can provide the full response (after redacting any sensitive info if any) from the API call to retrieve the component group list if needed.


Answers:
author: Kevin Paulovkin
body: Are you looking for a list of Components in your instance or Component Groups? If you don't have any Component groups created, perhaps that's the issue?

When I run this API against my instance, it works fine and returns a Response similar to example seen below. Includes the name of each component group along with list of components underneath.

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

comments: author: Roy Speier
body: I'm looking for a list of Component Groups - even better would be an API that returns a component group by name but that API is not available


author: Roy Speier
body: I found the source of my error - I thought I was executing this:  

curl <https://api.statuspage.io/v1/pages/{page_id}/component-groups> \\  
-H "Authorization: OAuth your-api-key-goes-here" \\  
-X GET  

but somehow I lost the component-groups at the end of the URL and then when I added it I originally spelled component-groups as component_groups  

running the API as I listed above succeeds returns the desired list of component groups!
Turn off Uptime report on Statuspage
Asked by reza_jugon:

I'd like to hide the uptime reporting on our customer facing statuspage and leave just the Incidents tab viewable.

I couldn't find an answer for this here : <https://support.atlassian.com/statuspage/docs/display-historical-uptime-of-components/>


Answers:
author: Eugenio Onofre
body: Hi [@reza_jugon](/t5/user/viewprofilepage/user-id/5324904)

Welcome to the Atlassian Community.  
This configuration resides under each component.

To disable it, simply uncheck this box:

![Screen Shot 2024-01-15 at 11.06.47.png](https://community.atlassian.com/t5/image/serverpage/image-id/300582iF65198C91D3070D4/image-size/large?v=v2&px=999 "Screen Shot 2024-01-15 at 11.06.47.png")

Please remember to accept this response in case it helps you resolve your question as it may also help other community members in the future.

Best Regards,  
Eugenio
How can I report my opened issues using jira automations? I don't want to upgrade to the premium ver
Asked by ami Provasi:

How can I report my opened issues using jira automations? I don't want to upgrade to the premium version of jira for now. I need to report my tasks regularly. Deadlines, dates and similar information will be critical. I dream of collecting all of them in one area and then a flow like an information e-mail. Is there anyone who can support?


Answers:
author: Eugenio Onofre
body: Hi [@ami Provasi](/t5/user/viewprofilepage/user-id/5399857)

You may use the Jira Automations to do so, but they may require custom coding / scripting.

Automations can have a scheduled trigger (every 24 hours, for example). The action would be to send an email and then you will need to customize the JSON of the email body. Please note, in this case, you will have limited access to look and feel customization.

Please remember to accept this answer in case it helps you resolve your question as it may also help other community members in the future.

Regards,  
Eugenio


Tags: cloud
Does Statuspage have a component for support of Symitar/Episys core?
Asked by bhaueter:

We are in the process of creating a status page using Atlassian's Statuspage app. But I do not see any components that support the Symitar Episys product, or any of the Symitar products for that matter. Nor do I support for Zoho's ManageEngine HelpDesk application.


Answers:
author: Eugenio Onofre
body: Hi [@bhaueter](/t5/user/viewprofilepage/user-id/4034109)

There are no out-of-the-box integrations with Symitar Episys or Zoho's application.  
In case you need StatusPage to be automatically populated in case of incidents on these applications, my recommendation would be using StatusPage APIs.

Please find the official documentation below:  
<https://developer.statuspage.io/>

Please remember to accept this answer in case it helps resolve your query as it may also help other community members in the future.

Regards,  
Eugenio

comments: author: bhaueter
body: Thank you Eugenio...

Does Statuspage offer PRTG network monitoring as an out of the box component?


author: Eugenio Onofre
body: Hi [@bhaueter](/t5/user/viewprofilepage/user-id/4034109)

Unfortunately not.


Tags: cloud
Problem with Login
Asked by Daniel Inderbinen:

I add the Saml over Azure AD. All good, works but every time someone try to login he got this error:

![2024-01-09 13.06.57.png](https://community.atlassian.com/t5/image/serverpage/image-id/299619i8C8CFC73AFBEEDCA/image-size/large?v=v2&px=999 "2024-01-09 13.06.57.png")

When the Error is showing and you open the page: xxx.statuspage.io again it works ...

Thanks for the Help !


Answers:
author: Eugenio Onofre
body: Hi [@Daniel Inderbinen](/t5/user/viewprofilepage/user-id/5401161)

This issue usually happens when there is a misconfiguration in the SAML properties / redirects. I strongly suggest reviewing all the SAML configuration to make sure the values are all correct and, in case you are still facing the issue, raise a ticket with Atlassian Support at <https://support.atlassian.com>

In case this answer helps you resolve your query, please accept it so it can help other community users in the future.

Regards,  
Eugenio

comments: author: Daniel Inderbinen
body: Hey [@Eugenio Onofre](/t5/user/viewprofilepage/user-id/4992586) can you please quick tell me witch part can be have inpact on the Setup?


author: Eugenio Onofre
body: Hi [@Daniel Inderbinen](/t5/user/viewprofilepage/user-id/5401161)

I am not quite sure as I do not have access to your instance to check.  
I would strongly recommend getting in touch with Atlassian Support as they have access to your instance and may be able to debug it.

Regards,  
Eugenio


Tags: cloud
Cannot update multiple component subscribtions through csv import
Asked by w.bos:

I have a CSV with one subscriber and I want to update its subscriptions to components.

I use this format:

* **email,NAME@MAIL.EXAMPLE,yes,COMPONENTCODE1,COMPONENTCODE2**

The import only results in addressing the first component ID:

* - when it is the same ID as the first component that is allready subscribed to, it does nothing;
* - when it is not the same as the first component allready subscribed to, it changes it. (So the first component ID in de CSV is now the only one subscribed to.)

It ignores all compontents codes after the first one... what am I doing wrong?

Note that in de documentation it says the list should be semi-colon seperated... but in the example CSV it is comma separated. Only comma works for the first component.


Answers:
author: Eugenio Onofre
body: Hi [@w.bos](/t5/user/viewprofilepage/user-id/5293493)

Welcome to the Atlassian Community.  
As stated on the official documentation, component codes column should be a semi-colon separated list of component codes that you want the subscriber to receive notifications for.

You should use a CSV file formated as below:

* email,NAME@MAIL.EXAMPLE,yes,COMPONENTCODE1;COMPONENTCODE2;COMPONENTCODE3

Please remember to accept this answer in case it helps you resolve this issue as it may also help other community users in the future.

Regards,  
Eugenio

comments: author: w.bos
body: Thanks Eugenio,

* When I use "," as a seperator, at least it uses the first ID to subscribe to.
* When I use ";" as a seperator between the ID's, it does nothing (there is no update, even if there are different ID's used).

Note that in the example upload file, the file has only "," a seperator...

|-------------------------------------------------------------|--------------|
| Email Subscribers,,,,,,,,,,,,,,                                           ||
| type,email address,skip confirmation notification,component codes (optional),,,,,,,,,,, ||
| email,first_email_subscriber@statuspage.io,yes,n097s9kg06ry | ,,,,,,,,,,,  |
| email,another_example@statuspage.io,yes,0bnr0wzc16dv        | ,,,,,,,,,,,  |
| email,example_subscriber@statuspage.io,yes,0bnr0wzc16dv     | n097s9kg06ry |
| ,,,,,,,,,,,,,,                                              |              |


author: w.bos
body: I have found the solution!

Until the first component ID it uses "," as a seperator.

From the first component and beyond it uses "tabs".


author: Eugenio Onofre
body: Great it worked! Documentation says it is semicolon so I will report it back to atlassian.

Thanks for sharing!
Deactivate Subscribe Option
Asked by Daniel Inderbinen:

Hey Everyone,

Is there a way to deactivate the Subscribe to Updates option? The Page should be only report to a small group. No buddy should be able to add his own Mail adress.


Answers:
author: Daniel Inderbinen
body: Can be closed.


author: Shiran Manor
body: Hey I have the same question, is it possible?


Tags: cloud
How to check site availability?
Asked by Viktor:

Hello, I'm using atlassian status page  
I just need to make status page show my site is available or not  
what is the simplest way to implement it?  


Answers:
author: Nic Brough -Adaptavist-
body: Welcome to the Atlassian Community!

What monitoring tools are you using? Statuspage can be configured to display monitoring information from a lot of them.


Tags: cloud