youngmon/atlassian-qna huggingface dataset:
No targets in firebase.json match "--only hosting"
Asked by michaeloconnell:

After upgrading to atlassian/firebase-deploy:1.0.0 from 0.6.0, I am getting the following error:

```
Error: Cannot understand what targets to deploy/serve. No targets in https://bitbucket.org/shinewed/shine-website-v5/src/d4ec8c7d590f82f461a58d21a0ad43115aa4e47b/firebase.json match '--only hosting'.
```

In my bitbucket-pipelines.yml file, "--only hosting" is specified under the variable "EXTRA_ARGS", so **I don't understand why the script is looking for a target project matching "--only hosting"**

Oddly enough, this error only throws in my **development** branch. Deployment is successful for my **production**branch, even though everything appears to be the same except for the project_id and the build step.

![bitbucket-project-yaml.png](https://community.atlassian.com/t5/image/serverpage/image-id/138479i2614AE56CB906EAD/image-size/large?v=v2&px=999 "bitbucket-project-yaml.png")![firebaserc.png](https://community.atlassian.com/t5/image/serverpage/image-id/138477iD9382B9E99CF69DB/image-size/large?v=v2&px=999 "firebaserc.png")![firebase-json.png](https://community.atlassian.com/t5/image/serverpage/image-id/138478i812373FF2F96F12E/image-size/large?v=v2&px=999 "firebase-json.png")

Steps taken to solve:

Added the project information from .firebaserc to firebase.json


Answers:
author: michaeloconnell
body: I fixed this by re-running \`firebase init\` in my project folder, which updated \`firebase.json\`, using the latest version of \`firebase-tools\` (9.9.0 at the time).


author: Oleksandr Kyrdan
body: Hi [@michaeloconnell](/t5/user/viewprofilepage/user-id/2397099) ,

Thank you for sharing this experience with our community.

Cheers,  
Oleksandr Kyrdan


Tags: bitbucket-pipelines

cloud

deployment

firebase
Import .sh file into bitbucket pipeline
Asked by Mikhail Sapozhnikov:

Hi, i take some issue. Exactly, i need to import some .sh file to my pipeline script for using function from this file later, maybe, it's like YAML anchors, but in another file. And it should execute before all scripts every time, when i started pipeline. Earlier i use gitlab pipeline and it look like this: ![multiproduct ? .gitlab-ci.yml 2021-04-13 11-32-05.png](https://community.atlassian.com/t5/image/serverpage/image-id/138430iFA027935D872C33F/image-size/large?v=v2&px=999 "multiproduct ? .gitlab-ci.yml 2021-04-13 11-32-05.png")

I just import file and can use it. Can you help me realize it on bitbucket pipelines?

I already done this:

![blink ? bitbucket-pipelines.yml 2021-04-13 11-35-26.png](https://community.atlassian.com/t5/image/serverpage/image-id/138433iC99029CD8B78F7B2/image-size/large?v=v2&px=999 "blink ? bitbucket-pipelines.yml 2021-04-13 11-35-26.png")

Where "test_import" it's a simple function from .sh file

In pipelines i have the next one:

![enwaycom blink Pipelines ? Bitbucket 2021-04-13 11-39-05.png](https://community.atlassian.com/t5/image/serverpage/image-id/138436iEE1B23163A8CDE55/image-size/large?v=v2&px=999 "enwaycom blink Pipelines ? Bitbucket 2021-04-13 11-39-05.png")


Answers:
author: Justin Thomas
body: [@Mikhail Sapozhnikov](/t5/user/viewprofilepage/user-id/4224199) Bitbucket Pipelines currently doesn't have a way to specify a before script, you will have to add it as the first line for each of your steps. There is a [feature request](https://jira.atlassian.com/browse/BCLOUD-13773) to add before script support, please vote for the [issue](https://jira.atlassian.com/browse/BCLOUD-13773).

comments: author: Mikhail Sapozhnikov
body: Thank you for answer. I asked some another thing and already i resolved the issue.Following code works for me:

```
definitions:scripts: Load Scripts: &loadScripts source "scripts/gitlabci/gitlab-ci-scripts.sh"
pipelines:
 custom: 
start-feature-development: - variables: - name: USER_EMAIL - step: script: - *loadScripts - authenticate "DEVHUB" $DEVHUB_AUTH_URL -d - create_scratch_org $BITBUCKET_BRANCH $USER_EMAIL - push_to_scratch_org - create_developer_user $BITBUCKET_BRANCH $USER_EMAIL artifacts: - artifacts/**
```


author: Mikhail Sapozhnikov
body: ![blink ? gitlab-ci-scripts.sh 2021-04-13 12-07-57.png](https://community.atlassian.com/t5/image/serverpage/image-id/138441iC8674E93D21D28BA/image-size/large?v=v2&px=999 "blink ? gitlab-ci-scripts.sh 2021-04-13 12-07-57.png")Example of my .sh file


Tags: bash

bitbucket-pipelines

cloud

import
Merge checks/automatic merge ignored when merging pull request via API
Asked by Dimitri Snijder:

Hi all,

For a master branch, we have enabled the merge check "Check the last commit for at least 1 successful build and no failed builds" and enabled "Allow automatic merge when builds pass".

Using the Bitbucket API, we create a pull request and run two builds.

After creating the pull request, we already merge the pull request using the Bitbucket API. By doing this, we try to achieve the following:

- When both builds pass, automatically merge the pull request in master  
- When one or more builds fail, don't automatically merge the pull request in master

However, it looks like the merge checks or "Allow automatic merge when builds pass" are ignored when merging the pull request using the API. The pull request gets merged into master directly, without waiting for both builds to pass.

The merge checks are taken into account when the pull request is merged manually using the merge button on the pull request page. The pull request doesn't get merged immediately, but it waits for both merge checks pass before merging.

Does anybody have the same problem with merging via the API and "Allow automatic merge when builds pass"?


Answers:
author: Theodora Boudale
body: Hi [@Dimitri Snijder](/t5/user/viewprofilepage/user-id/2429126) ,

The feature to "Allow automatic merge when builds pass" is a UI feature only.

I'm afraid that it is not possible to do this via the API.

I can open a feature request in our issue tracker to add this functionality in the API as well, please feel free to let me know if you'd like me to do that.

In the meantime, the only way to prevent PRs with failed builds from getting merged when using the API would be by enforcing the merge checks, with the "Prevent a merge with unresolved merge checks option".

Please feel free to let me know if you have any questions.

Kind regards,  
Theodora


Tags: bitbucket-cloud

cloud
Can we create a Pipeline in Bitbucket Datacenter?
Asked by Shad:

Similar to pipelines on Bitbucket cloud, can we create pipelines on Bitbucket datacenter? Or do we must have Bamboo to create the pipeline?


Answers:
author: Christian Glockner
body: Hi Shad,

Pipelines is only available in Bitbucket Cloud, it is not a feature of Bitbucket Data Center. As you mentioned, you can use Bamboo for this purpose.

Cheers,

Christian

Premier Support Engineer

Atlassian


Tags: bitbucket-server

server
Re: Not receiving invitation emails from Atlassian for bi...
Asked by andresramirez:

Hi Daniel, Im having a similar issue, so Id been invited to a bitbucket repository, but the invite never arrives to my indbox nor the spam folder, Im guessing I have a similar problem to the one described above, if you could provide any help


Answers:
author: Daniel Eads
body: Hi [@andresramirez](/t5/user/viewprofilepage/user-id/4345997) , welcome to the Community!

I've broken this question out from [the original thread here](https://community.atlassian.com/t5/Bitbucket-questions/Not-receiving-invitation-emails-from-Atlassian-for-bitbucket/qaq-p/1443899) to track it a little more easily.

Your organization's mail server returned an error to our mail service (with no details) on April 7, and several emails to your address have been suppressed since then. I unfortunately can't give you a specific reason why the mail server gave an error initially since it didn't provide any details in its initial message rejection, but as general guidance I can suggest [checking that our mail service IP range is in your organization's allowlist](https://support.atlassian.com/organization-administration/docs/ip-addresses-and-domains-for-atlassian-cloud-products/#AtlassiancloudIPrangesanddomains-Outboundemail) and that your email address can receive messages from other addresses such as a personal account.

Once you've checked that the email address is working as you expect it, you can try having the invitation email re-sent from Bitbucket. I've cleared the error on our mail service, so it will attempt to deliver the next invitation.

Cheers,  
Daniel

comments: author: andresramirez
body: Thanks Daniel, I will check this with my org and then try the invitation again, I will update here once I complete all the previous verifications.
Provided solution for merging usernames from different domains does not work!
Asked by Faryad Kashef:

Dear Community,

We are migrating our domain from "at.xxxxx.com" to "xxxxx.com" (both in the same forest) and want our users to use their new usernames in the new domain while keeping the same permissions and contents from their old usernames. Apparently the only solution or workaround is this:

[How to merge two users' content ownership and permissions in Confluence \| Confluence \| Atlassian Documentation](https://confluence.atlassian.com/confkb/how-to-merge-two-users-content-ownership-and-permissions-in-confluence-957149073.html)

I did proceed with this and converted queries to MSSQL but at some point it returns errors. For instance:

    ALTER TABLE user_mapping DROP PRIMARY KEY;

Returns an error like:

Msg 3725, Level 16, State 0, Line 1  
The constraint 'PK__user_map__E1CC8CC0D5F8' is being referenced by table 'LABEL', foreign key constraint 'FK_LABEL_OWNER'.  
Msg 3727, Level 16, State 0, Line 1  

I manually removed the key using the Object Explorer interface but I am not sure if it is correct. Again, while performing the next queries I get some errors with the queries. Has anyone recent experience with this?


Answers:
author: Brant Schroeder
body: [@Faryad Kashef](/t5/user/viewprofilepage/user-id/5164964) welcome to the Atlassian community

I have run into issues like this. Most of the SQL is for Postgres and MySQL and will not always work on MSSQL. You can submit a support issue to Atlassian and they will provide scripts for MSSQL.


Tags: confluence-server

server

sql
Executing the "insert 'Code Block' Macro" results in the circle spinning continuously
Asked by Allen Chen:

When editing a page, executing the "insert 'Code Block' Macro" results in the circle spinning continuously, and the input screen does not appear. When opening the browser's F12 network tab, it continuously loops the following web pages:

bulk  
startheartbeatactivity.aciton  
count?...  
startheartbeatactivity.aciton  
count?...  
bulk...  
startheartbeatactivity.aciton ....


Answers:
author: Mirek
body: HI [@Allen Chen](/t5/user/viewprofilepage/user-id/701076) ,

Is this related to the code that you are inserting? What would happen if you add something simple?

Do you have any browser plugins that might prevent from executing a UI elements like Adblock or any antivirus software that is running and checking web requests?

Did you tried edit it on a different browser?

Are you able to give the code to someone else and ask him to try to upload the same code block on that page?


Tags: confluence-server

server
How do I add an iframe to a confluence page?
Asked by Romeo Soebrati:

I use Confluence cloud and I'm trying to embed a YouTube video to a Confluence page by adding an iframe. In the iframe settings window I am supposed to insert the URL for the webpage I want to embed. Unfortunately, when I do this it shows up as "broken". Wondering if I need to make adjustments as an admin to allow for embedding an iframe?


Answers:
author: Connor
body: Hi [@Romeo Soebrati](/t5/user/viewprofilepage/user-id/5181826) simply paste the YouTube video URL onto your page instead of using the iframe macro. Then click the URL and select the **Embed** option to have the video embedded into the page. If at first you don't see the Embed option, click the **Card** option, then click the card and the Embed option should be visible.

I created this gif to demonstrate.

![2023-03-28 Confluence-Embed-YouTube.gif](https://community.atlassian.com/t5/image/serverpage/image-id/248334i0DCB64A5AC0A73E7/image-size/large?v=v2&px=999 "2023-03-28 Confluence-Embed-YouTube.gif")

comments: author: Romeo Soebrati
body: Hi Connor, that works! Thank you for your answer ;-)


Tags: cloud

confluence-cloud
Confluence REST API v2 - no body content (tasks)
Asked by Suhrab Baryal:

Hello community, I am trying to pull the data from Confluence tasks

I got the json objects back from the API but there is content missing

Does anyone know how to get the body of these tasks?

Please see screenshot below

![1.png](/t5/image/serverpage/image-id/248231i01C65BCC2A0B4EFF/image-size/large?v=v2&px=999 "1.png")  
Also, I'm writing an app that fetches and maps confluence tasks, but I can't get the json responds.

What am I doing wrong, I have all rights to view and in the web view of the rest of the call I can see the Json objects, but why can't I call them up via the app?  

const loadTasks = async () =\> {

const response = await api  
.asUser()  
.requestConfluence(route\`/wiki/api/v2/tasks\`, {  
headers: {  
'Accept': 'application/json'  
}  
});  

const responseJson = await response.json(); //extract JSON from the http response  
// log response to console for testing  
console.log(\`Response: ${response.status} ${response.statusText}\`);  
console.log(await response.json());  
console.log(responseJson)

return responseJson;  
}  

Thanks in advance


Answers:
author: Ben Rivlin
body: Super late to this, I know, but I came across this and had the same issue, you need to provide a **body-format** parameter in order to see the body. As per the [documentation](https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-task/#api-tasks-id-get).


Tags: cloud

confluence-cloud
Saved pages do not render the same as preview or editor
Asked by alex_kato:

Currently running Confluence Datacenter 7.19.0. When editing or previewing a page all the macros and lists render well, but once saved to the page the page does not render correctly. Below are screen shots of the differences.

Preview:

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

Saved:

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


Answers:
author: Mirek
body: Hi [@alex_kato](/t5/user/viewprofilepage/user-id/5181820)

Is this part of text copied from other source or written from scratch?

What browser are you using? Did you tried on a different one?

What would happen if you start remove specific points (levels) from bottom to top? Could you do that kind of basic troubleshooting and see if after removing some it would start working?

comments: author: alex_kato
body: This was text was all written from scratch and I did try other browsers. This was not an issue with confluence, but an issue with my banners I set up which I did not apply the CSS correctly. I applied the CSS to all classes when configuring my announcement banner which conflicted with all web pages.

If anyone is having any styling issue and you have announcement banners configured, remember that the CSS applied is applied to everything in the instance and you should add classes to any html to apply the CSS properly.


author: Mirek
body: Glad that you found the root cause of this problem! Thank you for information.


author: alex_kato
body: I have resolved the issue, it was user error.


Tags: confluence-server

server
Mailto url opens in a browser and not Outlook
Asked by Aparna Ganesan:

Hi,

I'm quite new to Confluence and having a hard time trying to figure out the mailto url link. I had given an email address in that field but when someone clicks on that email link, it opens a new browser but I want it to open in Outlook. I googled and tried to find articles and videos but couldn't find any. Wanted to see if I can get any help here. Thank you in advance.


Answers:
author: Connor
body: Hi [@Aparna Ganesan](/t5/user/viewprofilepage/user-id/5052523) your operating system usually controls the mailto link behavior, though your browser could override it.

#### Set/verify the OS default {#toc-hId-233294761}

For Windows open **Settings** \>**Apps** \> **Default apps** and set Outlook as the **Email** default app.

#### Verify the browser isn't overriding the OS {#toc-hId--1574159702}

For Edge open **Settings \> Cookies and site permissions \> Protocol handlers** . Under **Handlers for email links** , click the 3 dot (**...**) menu and remove any "Default" entry that's not Outlook. The steps will be similar for Chrome/Firefox/Safari, Google for the instructions if needed.

comments: author: Mm Mmmm
body: Thank you, this was very helpful!


Tags: confluence-server

server
'Training Record'
Asked by Alastair Cupples:

I', looking to keep a sort of 'training record' of documents in confluence. I have applied training tags to the documents i would want my staff to read as part of a training record. Is there a way to display a page showing all documents with the training tag and a checkbox where I can tick if its been completed for each staff member. or is there a more suitable solution


Answers:
author: Anna Mitina _Stiltsoft_
body: Hi [@Alastair Cupples](/t5/user/viewprofilepage/user-id/5181819)

We have an app that enables to create courses and quizzes right in Confluence - [izi LMS for Confluence](https://marketplace.atlassian.com/apps/1214110/izi-lms-for-confluence-courses-quizzes-forms?hosting=cloud&tab=overview&utm_source=atl_community&utm_medium=answer&utm_id=1216111&utm_content=Training+Record). It would make it easier to store all the trainings in one place and keep a track of the "training record". You would also be able to use the Confluence pages as course modules and it would take just a couple of seconds.

Our report system allows to see who was enrolled to the course and who has started or completed it. Reports can also be exported in a CSV format.

[Watch a 2-minute video](https://www.youtube.com/watch?v=X-Qne0LAXtI&utm_source=atl_community&utm_medium=answer&utm_campaign=quizzes-traffic-sources&utm_content=Training+Record)

Let me know if you have any questions :)

comments: author: Alastair Cupples
body: That sounds ideal, I'll take a look. Thanks


author: Mikael Sandberg
body: Hi [@Alastair Cupples](/t5/user/viewprofilepage/user-id/5181819),

Welcome to Atlassian Community!

There is a template called 90-day plan that you could use as a starting point, it has checkboxes and you could add links to each document that the user should complete.

Another option is to use an app, the [Marketplace](https://marketplace.atlassian.com/search?hosting=cloud&product=confluence&query=training) have a handful of them that allow you to create records of courses.

comments: author: Alastair Cupples
body: Thanks, I'll take a look


Tags: cloud

confluence-cloud
How do we evaluate use of add-on's in confluence?
Asked by Tejaswini Donga:

Need to find out which addon's were in use and which are not


Answers:
author: Sushant Verma
body: Hi [@Tejaswini Donga](/t5/user/viewprofilepage/user-id/5181800)   

Welcome to the community!  

Most of add-ons in Confluence add macros. You can check macros usage on pages. Confluence list all macros from plugins and show where it is used. If no macros are used from specific project (Confluence shows what macros are from what add-on), then is there a big chance that add-on is not used.

More info: <https://confluence.atlassian.com/doc/macros-139387.html#Macros-Macrousagestatistics>  

Regards,  
Sushant Verma


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

Macros are only one thing apps can add to

There's no way to know what an app is doing for a user unless the vendor has built some form of logging into it.

Apart from macros, you're going to need to look at each app, work out if and how it might be recording activity (if at all) and read whatever it is doing.


Tags: confluence-server

server
are there any free apps/plugins to create nice gaant charts in confluence?
Asked by Ananth Subramanian:

I would like to create a mid-high level plan without leaving confluence. Is there any app or plug in that can do the job? when i looked in the market place I could not find any? I wonder if anyone has done it and can help/guid me?


Answers:
author: Katerina Rudkovskaya [Stiltsoft]
body: Hi [@Ananth Subramanian](/t5/user/viewprofilepage/user-id/3065972),  

We can suggest trying the [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?tab=overview&hosting=cloud&utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111) app (it is the add-on that we develop).  

The app is free for Confluence Cloud 1-10 users, otherwise it's a paid one but you'll get 1 month of free trial.  

You'll be able to create advanced Gantt charts based both on manually created tables and Jira Issues macros (our macros support the dynamic tabular Confluence macros).  

Please check here for the examples:  

[Gantt Chart based on manually created table](https://docs.stiltsoft.com/tfac/cloud/gantt-chart-type-42239634.html?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111)  

[Gantt Chart based on the Jira Issues macro](https://docs.stiltsoft.com/tfac/cloud/building-a-gantt-chart-42242448.html?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111)  

The only difference for you as a Cloud user is that you'll need to use the [Table Toolbox](https://docs.stiltsoft.com/tfac/cloud/how-to-use-table-toolbox-macro-42245927.html?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111) macro to nest several macros. Other steps/settings are the same.

comments: author: Ananth Subramanian
body: Thanks Katerina for the response. I will take a look and give it a try.


author: Takafumi Ohtake -Ricksoft-
body: Hi [@Ananth Subramanian](/t5/user/viewprofilepage/user-id/5180316) ,

[**Gantt Chart Planner for Confluence**](https://marketplace.atlassian.com/apps/1227063/gantt-chart-planner-for-confluence-fast-roadmap-timeline?tab=overview&hosting=cloud&utm_medium=atlassian-community&utm_source=questions&utm_campaign=20230330) is also one of the options to draw Gantt charts easily.  
You can watch a [demo video on YouTube](https://youtu.be/PCykh6LuYrw).

The app is a paid app, but it's free for up to 10 users.

And I introduced other options, including Confluence built-in methods and Jira integration, in [this article](https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Plan-Projects-and-Roadmaps-with-Gantt-Charts-in-Confluence-Cloud/ba-p/1929687).

(Disclaimer: I'm one of the folks in the vendor.)

comments: author: Ananth Subramanian
body: Hi Takafumi,

Thanks for your reply and the links you shared. I will give it a try. your help is appreciated.


Tags: gantt

cloud

confluence-cloud

filter

table

table-filter

table-filter-and-charts
User macros not evaluating after upgrade to 8.1.3
Asked by Scot Greber:

Sample user macro:

**## @noparams**   
**Last Modified: $action.dateFormatter.formatDateTime($content.lastModificationDate)**

is no longer rendering as of 8.1.3. We see:

Last Modified: $action.dateFormatter.formatDateTime($content.lastModificationDate)

on the screen instead of the pages, last modification time.

Thank you.


Answers:
author: Andreas Wisler
body: Same here

Is there a reason and a solution for this problem?

comments: author: Scot Greber
body: <https://jira.atlassian.com/browse/CONFSERVER-82741>

Following the document worked for us .... adding in the startup params.


Tags: confluence-server

server