youngmon/atlassian-qna huggingface dataset:
How to enforce line endings on commit in SourceTree
Asked by Dan Fogg:

On SourceTree 1.3.2 on mac OS X how does one enforce line endings on commit?

I want to enforce line endings on commit which would be the same as running this command from command line version of git:

git config --global core.autocrlf input


Answers:
author: stevestreeting
body: That config setting persists across all uses of Git, including SourceTree. When SourceTree calls git, your global config is used so it will behave no differently to the command line.

comments: author: Dan Fogg
body: Thanks. I had run that command against my command line git instance and pointed SourceTree to use that git instance instead of its packaged one, which works. Alternatively I could probably have run that command against the packaged git instance that comes with sourcetree (again using the command line) but I don't see a way to do this from SourceTree itself.


author: stevestreeting
body: There is no difference. This command changes the \~/.gitconfig file, which is global and nothing to do with where git is run from. Changes in this file affect SourceTree too. This may change if we're forced to sandbox SourceTree in future (the user home directory is then not shared with the app), but in its current form the global gitconfig applies to all git installs, regardless of their location.


author: Rob Newman
body: > Yeah, we do expose quite a few options in Preferences, this just wasn't one of them :)

I notice a couple of years on, that this is still the case


author: Dan Fogg
body: Gottcha, thanks. It'd be nice to have the ability to change global config such as that accessible from SourceTree gui.

comments: author: stevestreeting
body: Yeah, we do expose quite a few options in Preferences, this just wasn't one of them :)


author: Paul O'Flynn
body: It's a very common requirement, you should really add it, thanks.


author: gibbo77
body: Still waiting for an update of AutoCRLF from SourceTree....


author: clith
body: and now it's 2017 and still nothing..


Tags: line-break
Sourcetree Application Icon not showing
Asked by Krister Renaud:

Hello,

I just downloaded Sourcetree 1.3.2 and installed it in Lion 10.7.3. The application has no icon / an empty icon, both within the .DMG and when I copy it to /Applications.

The .icns-file is present inside the app-bundle and displays correctly when I double click it.

Has anyone else experienced this issue?


Answers:
author: stevestreeting
body: I've seen this happen really, really rarely (perhaps once or twice in almost 2 years), it usually fixes itself after either re-downloading or restarting OS X. I've no idea what causes it since the icon is definitely there and referenced by the .plist.

comments: author: Krister Renaud
body: Tried both at once just to be sure and the problem is solved. Thx.


author: matthewdean
body: Yeah, it happens for me every few weeks - The application icon is gone as are many of the toolbar icons, and some functions cease to work (like committing to remote). Sometimes a restart helps; other times I've had to reinstall SourceTree.
Merging a single file?
Asked by Thomas Williams:

Hi,

I've been using your product for a while now and I'm loving it. I do have one question, however: When merging, if another developer and I are working on the same file, it causing a conflict and we have to choose one or the other and one of us will end up losing the work. Is there a way to merge a single file into itself and keep both developers changes?

Thank you for any help!


Answers:
author: stevestreeting
body: Sure, when you merge (so after you've pulled changes and either have 2 heads in Mercurial which you merge, or in git if the merge has already got conflicts), just right-click on a file which has conflicts and select 'Resolve Conflicts \> Launch External Merge Tool'. The default is FileMerge, and you can then go through each change and resolve the merge by combining the changes or choosing one or the other in each case within the file.
Mac SourceTree produces a lot of errors due to old hg extenson, how do I reset to the correct ones
Asked by Duane Johnson:

I had TortoiseHg installed when I first ran SourceTree, I have since deleted it, but now SourceTree give me these errors.

\*\*\* failed to import extension gestalt from /Applications/TortoiseHg.app/Contents/Resources/kilnext/gestalt.py: \[Errno 2\] No such file or directory  
\*\*\* failed to import extension kilnauth from /Applications/TortoiseHg.app/Contents/Resources/kilnext/kilnauth.py: \[Errno 2\] No such file or directory  
\*\*\* failed to import extension kilnpath from /Applications/TortoiseHg.app/Contents/Resources/kilnext/kilnpath.py: \[Errno 2\] No such file or directory  
\*\*\* failed to import extension big-push from /Applications/TortoiseHg.app/

etc.

I've got no extensons defined in my .hg/hgrc file but can't find where SourceTree set these paths.

Thanks


Answers:
author: stevestreeting
body: Tortoise probably added this to your \~/.hgrc (the global one, not the local .hg/hgrc), if you delete them there you should be fine.


author: Garrett Henson
body: I'm having the same problem.. where would I find the global hgrc file?

A little new to all this still

comments: author: stevestreeting
body: It's in your user home directory, a file called '.hgrc'. This is a hidden file becuase of the leading period so you won't see it in Finder unless you [show hidden files](http://lifehacker.com/188892/show-hidden-files-in-finder). More simply as a one-off, you can just open Terminal and type:

```
open -t ~/.hgrc
```


author: Duane Johnson
body: Thanks for the info.


Tags: moderators
add a local git repo in SourceTree
Asked by Rafael Carrascal Reyes:

Hi. I have a local workspace with some projects, sincronized with a remote git repo. ?How to add the existing working copy (git local repository) to SourceTree?


Answers:
author: stevestreeting
body: Lots of ways! :)

1. Drag \& drop the folder from Finder into the Bookmarks window to add it to your bookmarks
2. Drag \& drop the folder onto your dock icon
3. File \> Open (Cmd-O) and browse to the path
4. Click 'Add Repository' on the bookmarks window, select the 'Add Working Copy' tab and browse to the local repo

comments: author: Paul Wehr
body: I was confused for a while (neophyte!) I wanted to add the hidden .git directory or one of the sub files/directories but it was the parent directory where the .git file was located.

All is good to go after migrating to a newer computer. Thanks for the direction and hints.


author: gbosio
body: Hello,  
I have a problem with local repo: if I add a repository with "Add Working Copy" it seems to be ok, SourceTree tells me that it a git repository, but when I open it I have this error: "'git status' failed with code 128:'fatal: Not a git repository (or any of the parent directories): .git".

What can I do?

comments: author: stevestreeting
body: The check when you provide a path to add as a working copy is actually quite rudimentary, it just checks for the presence of the .git folder. If git is failing when it's added and \*real\* git commands start being called on it, that means that the .git folder is a red herring and that it really isn't a git repo after all.


author: Rafael Carrascal Reyes
body: Yeah, very intuitive. I could find the way just five after doing the question. Thanks!.


Tags: git
Connect by git instead of Hg
Asked by AndreasK:

Hey there,

we have set up a mercurial repository which works fine when used from command line or other hg clients from Mac, Linux and Windows.

Somehow SourceTree tries to connect to the hg repo by using the git commands, which obviously fails. Any hints on how to prevent this behaviour?

Cheers,

Andreas


Answers:
author: AndreasK
body: https://jira.atlassian.com/browse/SRCTREE-914

Thanks again!


author: stevestreeting
body: Hmm, that's odd - what SourceTree does when you give it a URL is to check out what type of repo it is. Basically, it fires commands at it and checks what works: 'git ls-remote' and 'hg identify' to be specific. This has always worked in my experience.

Unless however, you mean that you've added a local repo? If the local repo has both .git and .hg subfolders, ie it has both git and mercurial repositories within it, SourceTree will pick the git one. We don't support co-located repositories. If the git repo is there by accident, deleting the .git folder will fix it. Other tools work because they're only looking for hg so would not notice if you had a git repo in there too.

comments: author: AndreasK
body: Ok, I tried hg identify on the repositoriy and it is working from the command line. We use SSL authorization, but SourceTree never aks for a user or a pw. Currently, the certificate is currently not verified which results in some warnings. Can SourceTree handle these warnings?

I created a test repo with a test user with the exact same behaviour. Can I send you the details?

Thanks for your quick support!


author: AndreasK
body: Unfortunately our admins will freak out, if I post our link online -.- Is there a way to share the url and stuff just with you developers?


author: stevestreeting
body: Yes, SourceTree can handle warnings.

Please send a reproduction example if you have one, you can either post a link here or log a case at <https://jira.atlassian.com> and attach it.


author: stevestreeting
body: Yes, if you create an issue on <https://jira.atlassian.com>, you can set the security level to 'Reporters and Developers', which means the issue can only be seen by you and Atlassian. But if you have a test repo with a test user which doesn't include any information you don't want to share, that would be even better.
What about the PDF export option? when this one is going to be fixed.
Asked by Michael Milano:

What about a proper PDF export tool? Every other content manager has one and it's working as it should.

This one is a mess. Cuts pictures, cuts tables...loooong export times. So many other issues.

Is there something we can do?

Is there any other option to export a page from confluence??!?


Answers:
author: Sven Schatter _K15t_
body: Hi [@Michael Milano](/t5/user/viewprofilepage/user-id/4944747),

Have you had a look at the [Scroll PDF Exporter](https://marketplace.atlassian.com/apps/7019/scroll-pdf-exporter-for-confluence?hosting=cloud&tab=overview&utm_source=atlassian-community) created by my team at K15t? It gives you a lot more control over the output and might be exactly what you need.

Cheers,  
Sven

comments: author: Michael Milano
body: Hey. Actually just asked my admin to install the trial.

I hope it's what we are looking for.

Thank you.


Tags: cloud

confluence-cloud
Office PowerPoint macro does not export images to word or PDF
Asked by Hector H.:

I have several confluence pages with the Office PowerPoint macro embedded, In the Macro configuration I specified a slide number. The pages show correctly.

When I Export to Word (option1) ![macroppterror3.png](/t5/image/serverpage/image-id/256309i975C7E5291B6A3AC/image-size/large?v=v2&px=999 "macroppterror3.png")the exported file shows no image and the following error:  
"The Link image cannot be displayed. The file have been moved, renamed, or deleted. Verify that the link points to the correct file and location"  

![macroppterror1.png](/t5/image/serverpage/image-id/256306iBF016D8FA6221B10/image-size/large?v=v2&px=999 "macroppterror1.png")

When I Export to Word (option2) ![macroppterror2.png](/t5/image/serverpage/image-id/256308i79F36A2892FCC66C/image-size/large?v=v2&px=999 "macroppterror2.png")the exported file shows no image and the following error:  

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

If I export to PDF, no image is exported and no error is shown.

Does this macro allow exporting images to word or PDF?


Answers:
author: Dan Breyen
body: Hi [@Hector H.](/t5/user/viewprofilepage/user-id/3415117) I did a quick search through JIRA and found this issue: [CONFSERVER-65893](https://jira.atlassian.com/browse/CONFSERVER-65893) . It sounds like the issue you are having. There are some other JIRA issues for Exporting on Confluence Server that could be related as well. You can search jira.atlassian.com to see if there are any others that might be related.

comments: author: Hector H.
body: Thanks [@Dan Breyen](/t5/user/viewprofilepage/user-id/5086375) . I've found the specific issue on Jira: [CONFSERVER-43560](https://jira.atlassian.com/browse/CONFSERVER-43560)

It is a known issue that won't be fixed as it didn't gather interest. In conclusion, the PowerPoint Macro doesn't support export images to word or PDF.


Tags: confluence-server

server
Planning to set up Confluence/Jira/Bitbucket on personally-managed AWS instance
Asked by Jec Jec:

A client is requesting for a Confluence/Jira/Bitbucket set up that is hosted on their own AWS account (as opposed to Atlassian Cloud), in part due to their client's strict data policy. But I have also read something that Atlassian already stopped selling new server licenses way back 2021.

Is above scenario still possible? Like does AWS currently have an available AMI for Atlassian products? Or is the only option now to go to Atlassian Cloud?


Answers:
author: Charly [DEISER]
body: Hi [@Jec Jec](/t5/user/viewprofilepage/user-id/5215878)

This is still possible, Atlassian stopped providing server licenses but they still provide data center licenses, as of right now we have 2 deployment options (Cloud and Data Center). Here you will find more info regarding AWS Data Center templates for Atlassian's products.  
[Data Center on AWS \| Atlassian](https://www.atlassian.com/enterprise/data-center/aws)

Hope this helps!

Regards

comments: author: Jec Jec
body: thank you!


Tags: aws

bitbucket

confluence-server

jira

server
Selecting a specific cell from a table based on entries from another table
Asked by lthln:

I want to excerpt a specific cell out of this table:

![issue_1.png](/t5/image/serverpage/image-id/256288i2AF76A529BA22B9C/image-size/large?v=v2&px=999 "issue_1.png")

based on entries made in another table:

![issue_2.png](/t5/image/serverpage/image-id/256290i72411581EBAAC623/image-size/large?v=v2&px=999 "issue_2.png")

So in this example, I want to excerpt the cell out of the first table which states "**Medium**". I already tried something with table transformer macro, but could not find a solution.


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

Seems that the original case is a bit complex for the Table Transformer macro. It is possible to filter your first table using your second table as a variable. But the second table should contain only this variable (header for variable name and one row for variable itself).  
Please check [this Community thread](https://community.atlassian.com/t5/Confluence-questions/Table-Filter-Macro-using-Variable-as-Input/qaq-p/1733811) for the details.  

Maybe you'll be able to reorganize the initial use case.


Tags: filter

table

table-filter

table-filter-and-charts

table-transformer
Restrict a group from viewing KB that is linked to JSD
Asked by Alex Gavrysh:

Hello.

We have a KB (shared Confluence space) for ProjectA. Also, we have a set of licensed users from ProjectB that should have access to Confluence. The problem is that users from ProjectB can see ProjectA KB Confluence space.

How can we restrict ProjectB users from accessing ProjectA space?

Here was the similar question 4 years ago: <https://community.atlassian.com/t5/Confluence-Cloud-questions/How-to-restrict-a-group-or-a-user-from-viewing-our-KB-that-is/qaq-p/1253663>


Answers:
author: Judd Garratt - Path of Trees
body: Hi Alex,

I remember designing the original JSD knowledge base feature when I was still at Atlassian. We needed a way for portal-only users to view KB articles through the JSD portal without a Confluence license. To solve this, we created a new permission for Confluence spaces - 'any active user can view'. This functions a bit like 'anonymous access' but requires the user to be logged in.

You can see on the space permissions screen when this is active for a KB space.

![Screen Shot 2023-05-11 at 12.55.03 pm.png](https://community.atlassian.com/t5/image/serverpage/image-id/256503i9871F70C73881EDA/image-dimensions/490x172?v=v2 "Screen Shot 2023-05-11 at 12.55.03 pm.png")

Any user who can login to your Atlassian site (i.e. isn't suspended) can view spaces that have this permission turned on, including portal-only users.

Confluence doesn't allow users to be blocked from a specific space (although this would be a useful feature), so there are only two ways around the problem you have currently and both come with compromises.

1. If the ProjectB users in your example only need access to one space, you can use the new Confluence guests feature (which is in beta) to limit them to one space in Confluence. This will block them from all other spaces, including KB spaces with the 'any active user can view' permission turned on (they then won't be able to view these spaces through the JSD portal either). This is probably your best bet.

2. If the users for ProjectA have Confluence access, you can change the KB space permissions to 'only Confluence users' in the knowledge base settings page for the JSD project and then use normal Confluence space permissions to restrict which spaces each group of users can view. I'm guessing this is not the scenario you're in, but worth mentioning.

Good luck! I know permissions can be a headache.

comments: author: Alex Gavrysh
body: [@Judd Garratt - Path of Trees](/t5/user/viewprofilepage/user-id/5086594) , thank you very much!!! Point 1 works like a charm! You saved me tons of time!


author: Judd Garratt - Path of Trees
body: My pleasure! Glad to help :)


Tags: cloud

confluence-cloud
I wonder how to enable Setup authentication on the Scroll Viewport site.
Asked by Kyle Song:

Hello, I am managing Jira in the company's security team.

<br />

I'm working on exposing the content created by confluence to an external URL, but **I can't find it when I try to activate the "Set up authentication" button in "Site settings".**

I ask for help.

Thanks.

![?????????? 2023-05-10 ???? 5.56.20.png](/t5/image/serverpage/image-id/256286i254D59230AA9DF32/image-size/large?v=v2&px=999 "?????????? 2023-05-10 ???? 5.56.20.png")


Answers:
author: Sven Schatter _K15t_
body: Hi [@Kyle Song](/t5/user/viewprofilepage/user-id/5214773),

your site needs to have a custom domain in order to set up authentication. If you want more details you can check out the official documentation here: <https://help-cloud.k15t.com/scroll-viewport/set-up-authenticated-access>

Hope this helps!

Cheers,  
Sven

comments: author: Kyle Song
body: Hi [@Sven Schatter _K15t_](https://community.atlassian.com/t5/user/viewprofilepage/user-id/4546729)

Thank you for your help.

I'll try it based on your comment. =)

Thanks,


author: Kyle Song
body: Hi [@Sven Schatter _K15t_](/t5/user/viewprofilepage/user-id/4546729)

First, Thank you for your help.

I'll try it based on your comment. =)

Thanks,


Tags: cloud

confluence-cloud

set-up-authentication
Using Choose Label while keeping the label text
Asked by Gena Ch_:

Hi,

I am looking for a way to add labels from checkbox / drop down box.

The Choose Label tool fits my need perfectly, except from one issue - after you select the label, the text of the label disappears from the page together with the checkbox (the label is added to the label list).

I am looking for a way to keep the text.

For example - I want the user to choose between two brands, say Costco and Wallmart.

I add :

Brand : Choose Label macro

But after the user select Costco, I want the label Costco to be added to the page + to see the following -

Brand : Costco

Appreciate any help or alternative solution.


Answers:
author: Gena Ch_
body: Anything ?


Tags: confluence-server

label

server
API to get data from third party source like excel or any endpoint
Asked by Alberto_Fernandez:

How is possible to connect to Confluence in order to get data from another source?

API to get data from third party source like excel or any endpoint


Answers:
author: Alex Koxaras _Relational_
body: Hi [@Alberto_Fernandez](/t5/user/viewprofilepage/user-id/5215658) and welcome to the community,

In order to do that you have to develop your own app using Forge or Connect. Or simply try an app from the marketplace that can do what you want.

comments: author: Alberto_Fernandez
body: To be hones not clear for me,

why Confluence not accept any endpoint with the respective authentication as another

software in the market, nowadays integration is based in EndPoints.


author: Alex Koxaras _Relational_
body: Confluence has a rest api. But you want to get data from another source and bring it to confluence, correct? From within confluence, e.g. inside a page, you can't make http requests to bring other data. But you can send e.g. from postman an http request to create data to confluence.

If you want to automate the way you create/update data to confluence from another source, then you have to do that outside of confluence, either by creating an app for confluence, or create your own code which will run with http requests from source A and send the payload with another https request to confluence.


author: Alberto_Fernandez
body: Thanks a lot for your feedback.


author: Alberto_Fernandez
body: Hi Alex,

May I know more details about RES API in confluence any online documentation?

also about Forge or Connect any documentation how to create it?


Tags: cloud

confluence-cloud
Can't see the CSV export option for confluence spaces anymore
Asked by Leonardo Bragagnolo:

Hi, since today I'm unable to see the 'CSV' option to export a confluence space. I'm performing a migration of both Jira projects and confluence spaces and yesterday I performed a few confluence migrations using the CSV export option. Today I'm not able to see it anymore. Wondering what happened. One thing that might help is that my colleague grant me the admin rights for one of the spaces I wasn't admin of.

What can I do? I'm actually stuck.


Answers:
author: Dave Mathijs
body: Hi [@Leonardo Bragagnolo](/t5/user/viewprofilepage/user-id/5215581) welcome to the Atlassian Community!

Here's the documentation articles for exporting content: [Export content to Word, PDF, CSV, HTML, and XML](https://support.atlassian.com/confluence-cloud/docs/export-content-to-word-pdf-html-and-xml/)

You indeed need to be a space admin to export an entire space or a group of selected pages in a space.


Tags: cloud

confluence-cloud
How to set the permission to children page based on parent page id
Asked by Rauzan Fikri:

Hi [@Alex Medved _ConfiForms_](https://community.atlassian.com/t5/user/viewprofilepage/user-id/781630)

Any solution or function that I can use for set the permission of page (view or edit) on evert the children of page based on parent page id?

Example tree:

Page A (I know the page id)  
---Page Child 1

---Page Child 2

---Page Child 3

Page Child 1, 2, and 3 is the children page of page A that I want to set the permission from confiform but the page id that I know is only the parent ID or id of Page A.

Thanks


Answers:
author: Alex Medved _ConfiForms_
body: View permissions are inherited from a parent, while edit permissions are not ([Atlassian decision](https://jira.atlassian.com/browse/CONFSERVER-5095))

So, restricting view permissions on the parent should also restrict the view permissions on the child pages.

With edit permissions you have to restrict each page individually

Alex

comments: author: Rauzan Fikri
body: Any solution for edit permissions with bulky number?


author: Alex Medved _ConfiForms_
body: As mentioned before, you need to set permissions individually


author: Rauzan Fikri
body: Okay Alex, now we're do some hacking to made this possible. Thanks for the answers.


author: Rauzan Fikri
body: Also we are have trying the iftt function for **set permission** of page with passing multiple page ID is doesn't want to run.


Tags: addon-com.vertuna.confluence.plugins.confiforms-confiforms

confiforms

confluence-server

server