youngmon/atlassian-qna huggingface dataset:
Discard selected files
Asked by neoneye:

I want to undo my latest changes, but I also want to keep some of the files around.

I did a cocoapods update that added lots of new files to my repository and removed lots of files as well and modified even more files.

I would like to select all the changes and just tap \`Reset...\` to discard the changes.

However the \`Reset...\` menu action is disabled for new files that aren't yet tracked.

![](http://i.imgur.com/Ga4s0PL.png)

I solved my problem like this:

1. Copy the \`Podfile\` to my Desktop folder.

2. Do a \`git --reset hard\` to discard all the unwanted changes.

3. Copy the \`Podfile\` from my Desktop folder back into the repository.

This have happened to me several times, so it would be nice if it was easier to discard selected changes.

Perhaps make \`Reset...\` able to discard new files?


Answers:
author: Seth
body: This is a dangerous thing to add. Because these files are untracked, there is no way to recover them if you delete something accidentally.

For your situation, I would recommend committing the files you want to keep, then doing a git --reset hard to trash the rest.

You may also consider configuring git to ignore files with those extensions, if that works for you.


Tags: discard

git

mac

reset
Fitbit API rate limiting
Asked by Fang Lin:

what meaning "The Fitbit API is currently rate limited to ensure that we can provide stable and consistent access for all client applications. The current rate limiting quota is set at 150 calls per hour" is? an API consumer key can 150 calls per hour or a user account can 150 calls per hour?


Answers:
author: Seth
body: I don't believe Fitbit is an Atlassian product, so this is the wrong forum for this question. Sorry.
Whitespace Problems in a Windows / FTP / Mac Environment
Asked by Matthew Pinto:

Hi,

We are configuring SourceTree for our dev environment. I am on a Mac and my partner on a Windows 7 PC. We have a master repo set up on a NAS and clone locally to our own machines. We typically work on a site via FTP on an external server, then copy our modified files over to our local clone directory, review, commit, and push up to the master repo.

We are having an apparent issue with Line Endings between Windows and Mac. When I download a file from the FTP server to my local clone, SourceTree identifies every file as being modified. I know that you can toggle 'Ignore Whitespace', which works to ignore these non-changes, but in the list of Pending files, every file still appears to be modified, and shows up in the Commit list as well.

There are several SO answers regarding .gitattributes which we've tried, with no luck.

Do you have any tips for fixing this issue?

Thank you!


Answers:
author: Seth
body: If the shared server is Linux-based and you have SSH access, I'd recommend running dos2unix (for the mac) or unix2dos (for windows) on the entire batch prior to downloading. You may consider looking for FTP clients or local utilities that make these conversions for you instead.


author: Matthew Pinto
body: Thanks Seth. The answer was to install homebrew and then use the terminal, filtering by filetype to convert some dos files to linux and vice versa:

find . -name "\*.css" -type f -exec unix2dos {} \\;

find . -name "\*.php" -type f -exec unix2dos {} \\;

find . -name "\*.js" -type f -exec dos2unix {} \\;

find . -name "\*.svg" -type f -exec dos2unix {} \\;


Tags: line-break

mac

whitespace
Setup Wizard
Asked by James Liu:

For some reason the setup wizard won't progress beyond the "connect to online services" page. I have entered my GitHub info, and the "Next" button becomes blue. However when I press the "Next" button it greys out but nothign happens. I can make the button blue again by clicking inside the text fields, but the setup wizard never progresses beyond this point. Help?


Answers:
author: Didier Hampl
body: I do have the same problem. Please help to solve this. Thank you.


author: Didier Hampl
body: I do have the same problem. Please help to solve this. Thank you.
Retrieving a deleted user's work
Asked by Bibiana:

I accidentally deleted instead of taking away access from someone leaving the company. now i cannot access any of his work. is it possible to get this from his personal space by reaching out to Atlassian.


Answers:
author: Andy Gladstone
body: [@Bibiana](/t5/user/viewprofilepage/user-id/5027363) first of all, best practice is always to deactivate a user rather than delete them. Deactivating will also remove them from billing, but deleting will have greater consequences. If you want to know the difference between the two actions, you can reference this document:

<https://support.atlassian.com/confluence-cloud/docs/what-happens-when-an-account-is-deactivated-vs-deleted/>

Now that's out of the way, you should still be able to find the user's personal space even though you deleted the user. This is because the act of deleting a user will cause their personal space to be archived. You can retrieve it from the archive by following these steps:

Restore an archived space {#toc-hId--442858837}
-----------------------------------------------

1. Select **Spaces** in the Confluence top navigation.

2. Select **View all spaces** at the bottom of the dropdown to go to the Space Directory.

3. Select **Archived**in directory's navigation.

4. Find your space and click the "i" info icon to the right of the star.

5. Select **Space settings**.

6. Select **Edit Space Details**.

7. Change the**Status**field from "Archived" to "Current."

8. Select **Save**.

These steps come from this document:

<https://support.atlassian.com/confluence-cloud/docs/archive-a-space/>

You will need to be an admin to perform this action.

I hope this helps!

comments: author: Bibiana
body: Thank you Andy :D


Tags: cloud

confluence-cloud

jira
Installation
Asked by Baptiste Avio:

Hello

I am not an IT professional and I have been looking for a day to install the Confluence software on my computer. For Trello this may have been possible via the microsoft store, and confluence is only available and works very well on the apple store on iPhone. I have followed all the necessary steps and I am stuck in the place you will find attached:

![Capture d??cran 2023-07-04 134136.png](https://community.atlassian.com/t5/image/serverpage/image-id/266536iDBE93EA96D41A8D6/image-size/large?v=v2&px=999 "Capture d??cran 2023-07-04 134136.png")

Except that I know nothing about the "database" and other information I am asked.

Thank you in advance.

Kind regards.


Answers:
author: Sayed Bares [ServiceRocket]
body: I believe you are looking for a desktop app to use Confluence cloud. I am afraid to say this is not possible at the moment, you can have a look at the following suggestion raised:

* [CONFCLOUD-54750](https://jira.atlassian.com/browse/CONFCLOUD-54750?)

The screenshot you have shared is for installing and setting up your own Confluence Server/DC (On Premises) in your computer.

comments: author: Andy Gladstone
body: As [@Sayed Bares \[ServiceRocket\]](/t5/user/viewprofilepage/user-id/1480984) said, Confluence currently comes in two flavors - Data Center and Cloud. You would not be installing Data Center unless you are part of a large enterprise organization. You can get started on Cloud for free using this link:

[https://www.atlassian.com/try/cloud/signup?bundle=confluence\&edition=free](https://www.atlassian.com/try/cloud/signup?bundle=confluence&edition=free)

Good luck!


Tags: cloud

confluence-cloud
This resource requires WebSudo
Asked by Daniel:

I'm trying to use Confluence's REST API to disable users:  

```
# Confluence REST API Configuration
confluence_url = 'http://localhost:8888/rest/api'
confluence_token = 'token'
headers = {'Authorization': f'Bearer {confluence_token}'}
...
...
try:
# Execute the SQL query
cursor = connection.cursor()
cursor.execute(sql_query)

# Fetch the result
users = cursor.fetchall()

# Loop through users and print them out
for user, last_login in users:
print(f"User: {user}, last login: {last_login}")

# API endpoint to disable a user
disable_user_url = f"{confluence_url}/admin/user/{user}/disable"

# Making a PUT request to disable the user
response = requests.put(disable_user_url, headers=headers)

# Printing the response
print(f"Response: {response.status_code}, {response.text}")

finally:
# Close the connection
connection.close()
```

Ignore the indentation. The error I get is:

```
Response: 401, <?xml version="1.0" encoding="UTF-8" standalone="yes"?><status><status-code>401</status-code><message>This resource requires WebSudo.</message></status> 
```

Also ignore the *localhost* part, I'm port forwarding.

I don't understand what I need to do. I want to automate this process and run it as a cron job.

Edit because I can't comment for some reason:

I managed to get around Websudo by using my username and password with basic authentication, just had to use secrets :)

Thanks!


Answers:
author: David Yu
body: This seems like a bug. APIs shouldn't require websudo.

comments: author: David Yu
body: After some more testing, it seems that the use of cookies is not possible, and you must supply the basic auth headers with each call.


author: AutomationUIUser
body: Hi , we have faced a similar issue with the http://\<jirahost\>/rest/api/2/workflowscheme/{workflowschemeid}/workflow API on the on-premise jira instance with cookie based authentication, can you please let us know it is expected behavior?


author: Craig Nodwell
body: Hi [@Daniel](/t5/user/viewprofilepage/user-id/4368238) here's a [page](https://confluence.atlassian.com/adminjiraserver/configuring-secure-administrator-sessions-938847890.html) for your reference hope it helps.


Tags: confluence-server

server
Adding search keywords to a page
Asked by Thejwal Pavithran:

Hi,

I have a confluence page with an embedded spreadsheet (/table spreadsheet).

I want to be able to display this page as a search result when any content inside the excel is used as a search term. Currently it displays the attachment in the search result which can be confusing. Is there any way to do this ?


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

The [Table Spreadsheet](https://docs.stiltsoft.com/tfac/cloud/how-to-use-table-spreadsheet-macro-83100938.html?utm_source=atl_community&utm_medium=answer&utm_campaign=table-filter-traffic-sources&utm_vendorID=1216111) macro is our macro, and it belongs to 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.  

The macro is indeed stored as an attachment of your page. You may visit the Attachments section and check it yourself: each .tfss attachment corresponds to each Table Spreadsheet macro. You may also open the list of versions under every attachment and download (and restore later by importing) any previous version of your spreadsheet.  

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

So, the logic of the search engine is correct.  
But we've got your idea and added it to our backlog, thank you!

comments: author: Thejwal Pavithran
body: Is there any workaround you could think of ? perhaps adding the spreadsheet as a regular table and hiding it so users dont have to see the same spreadsheet twice ?? I tried quite a few things without success


author: Stiltsoft support
body: Hi [@Thejwal Pavithran](/t5/user/viewprofilepage/user-id/5259587) ,

As for now, there is no any workaround, I'm afraid.

If you need to search within your tables, you may use native Confluence tables wrapped in 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. Inside the macro you'll be able to create different sequences of other macros (Table Filter, Pivot Table, Table Transformer for filtration, aggregation and calculations).


author: Thejwal Pavithran
body: Hey,

That was what I was initially thinking but with the huge number of columns its just not an option. The readers would be super confused.

So, the work around I found was to use /table properties macro and select the "hidden" checkbox and inside the macro, paste the whole spreadsheet. This would then cause the page to be displayed as a search result.


Tags: cloud

confluence-cloud

filter

ms-excel

table
BPMN app is not responding.
Asked by Xeila:

BPMN app is not responding.

![2023-07-04_9-49-52.jpg](/t5/image/serverpage/image-id/266496iE46B58D7B34B848C/image-size/large?v=v2&px=999 "2023-07-04_9-49-52.jpg")


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

You will need to raise this with the vendors of your BPMN app. It looks like Confluence is working, but their app is not responding to its requests to it.

comments: author: Chris K
body: Short and simple answer, probably that's why mine got deleted?

Thanks for keeping the community clean, and sorry for posting an obviously misleading answer for that case.

Greetings Chris


author: Nic Brough -Adaptavist-
body: Yes, ChatGPT does not understand Atlassian systems, it generates utter garbage answers.

It's fine to use it to generate an answer as a draft, but you absolutely need to read and check what it has said, because it is going to be mostly useless.


Tags: cloud

confluence-cloud
Combination of extend and excerpt possible?
Asked by Julia Leonhard:

Good morning,

in the server version it was possible to combine the macros extract and expand. Now in the Cloud version, unfortunately, you can only integrate everything else in the extract. Do you guys have any idea for the solution?

Thx :)


Answers:
author: Sayed Bares [ServiceRocket]
body: [@Julia Leonhard](/t5/user/viewprofilepage/user-id/5259405) Welcome to the community!

Could you please explain your use case? perhaps you can share a screenshot to understand your use case better.

comments: author: Sayed Bares [ServiceRocket]
body: [@Julia Leonhard](/t5/user/viewprofilepage/user-id/5259405) thanks as I thought it is indeed excerpt macro.

In Confluence cloud it is not possible to do this. However, you can use the following structure as a workaround:![workaround.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/266502iAB451A0073AE915C/image-size/large?v=v2&px=999 "workaround.jpg")

So you will need to add an **excerpt macro** and then add your **excerpt include** macro within **Expand macro.**

Hope it helps!


author: Julia Leonhard
body: Sorry for the answer, but it doesn?t help. Can we do that with a self-written HTML macro?


author: Julia Leonhard
body: Here is the usecase: ![Screenshot 2023-07-04 094405.png](https://community.atlassian.com/t5/image/serverpage/image-id/266505i6289293F21FF9B26/image-size/large?v=v2&px=999 "Screenshot 2023-07-04 094405.png")


author: Julia Leonhard
body: Here is an example:

![Screenshot 2023-07-04 094405.png](https://community.atlassian.com/t5/image/serverpage/image-id/266500i39F30D0BFE011AA2/image-size/large?v=v2&px=999 "Screenshot 2023-07-04 094405.png")

comments: author: Sayed Bares [ServiceRocket]
body: [@Julia Leonhard](/t5/user/viewprofilepage/user-id/5259405) I am afraid to say this is not possible at this point. However, there is a suggestion raised to Atlassian which you can upvote:

* [CONFCLOUD-68323](https://jira.atlassian.com/browse/CONFCLOUD-68323)


author: Julia Leonhard
body: Sorry.. :-D Extract mean excerpt. I hope now it?s clear. :-)

Here you can see an example. It?s not possible to put the macro expand in the excerpt macro with the cloud version.


Tags: cloud

confluence-cloud
View Survey Results Without Voting and also restricting view access to results
Asked by Vanessa Alvarado:

I would like to view survey results WITHOUT having to vote while still restricting access to view results. Checking 'always show results' doesn't restrict access but does show results without voting. I need both. - no vote plus restrict access . Thank you for your help !!!!!!


Answers:
author: Sayed Bares [ServiceRocket]
body: [@Vanessa Alvarado](/t5/user/viewprofilepage/user-id/5259361) welcome to the community!

Can you provide more information? Are you using Confluence Cloud or Server/DC? Are you using a third-party app for the surveys?
PDF macro not finding the pdf attachment
Asked by Neil Orint:

Hi, I'm trying to embed a PDF into a Confluence page.

I open the PDF macro, and when it asks me to select an attachment, there's nothing there. I expect the file to show up in the File Name \* field, but instead I see the line "no appropriate attachments."

I have the PDF in my Downloads folder, but Confluence doesn't see it. How can I get the PDF macro to find my pdf file? Thanks!


Answers:
author: Markus Fred?n
body: Hi [@Neil Orint](/t5/user/viewprofilepage/user-id/5259232) ,

I think you're supposed to upload the pdf as an attachment to the page you want to add the PDF macro to ***and then***add the PDF macro to the page.

/Markus


author: Ollie Guan
body: Hi [@Neil Orint](/t5/user/viewprofilepage/user-id/5259232) ,

Confluence page containing the attached .pdf file. If not specified, the current page is assumed.

Please confirm under which page the PDF attachment is stored, and enter the Page Name to match the correct path.


Tags: cloud

confluence-cloud
Transfer of data from old verion Server-Based to Cloud-Based Confluence
Asked by Jack Bennett II:

I have inherited data from an old server-based Confluence documentation install and need to see about importing/uploading/transferring to the newer Cloud-Based solutions.  

I have two folders:  

FILE.confluence.data  
FILE.confluence.mysql  

is there a step-by-step or how do I go about making this transfer?


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

That's what I think of as a minimal backup of Confluence. Confluence comes in 3 parts really;

* the installation
* the database (all the content and application config)
* the "data", which usually means "the content of the Confluence home directory", but that contains a tiny bit of config, a load of replaceable or rebuildable things (logs, working files, temporary directories) and, most importantly, all your attached files. (Unless it's a really old Confluence which could store files in the database)

You can't use those files for any form of migration, they're useless for that. The only thing they're of any use for is recreating the system they were a backup of.

You will need to

* Identify which version of MySQL this is a backup of (from memory, it's echoed in the first few lines of the .MySQL file.) and install a working version of that
  * Create two empty databases in it
  * Leave one empty, but import the MySQL file you have into the other
* Install a new (old) Confluence of the**same version** that the backup was taken of
  * You might find that in a file in the "data" directory (check config files and logs if it included them, starting Confluence echoes the version out), dependent on version, but the restored database will contain it somewhere too
* When asked which database, connect it to the empty one
* When it's up and running
  * Stop it
  * Edit \<confluence-home\>/confluenceconfiguration.xml, finding the name of the database it's now pointed to. Change it to the restored database
  * Copy or move all the attachments in the old data directory into \<confluence-home\>/attachments (retain the directory structure)
  * Restart it
  * You will probably need to perform a [recover admin password](https://confluence.atlassian.com/conf715/restore-passwords-to-recover-admin-user-rights-1096098214.html) cycle
* Run a re-index before trying to look at the data

Now you can log into it and start preparing it for a [Confluence Cloud Migration](https://support.atlassian.com/migration/docs/cloud-migration-methods-for-confluence/)

There's a lot there, you may find it a lot easier to get a [partner](https://partnerdirectory.atlassian.com) to take a look. You can probably tell I've done this more than once, but there's lots of us who have.


Tags: cloud

confluence-cloud
How to resolve Signature panel issue?
Asked by Victor.Pancras:

After adding signature panel getting this below message and unable to add e-sign.

**Signature Panel**

Please enter at least 10 characters of text to be signed. You can type into the macros body, once added to a page.


Answers:
author: Brant Schroeder
body: [@Victor.Pancras](/t5/user/viewprofilepage/user-id/5259327) Welcome to the Atlassian community

Which app are you using to enable e-signatures?

comments: author: Victor.Pancras
body: Thanks Brant. I just tried to add "Signature panel" macro into my page. Once I added got that message mentioned in the description.


author: Brant Schroeder
body: [@Victor.Pancras](/t5/user/viewprofilepage/user-id/5259327) The signature panel is not a delivered macro so you would have had to have had an app that provides this functionality. Do you know which one you are using?


author: Victor.Pancras
body: [@Brant Schroeder](/t5/user/viewprofilepage/user-id/769100) Not sure which one to use. Due to restricted access I'm afraid of using any third party app. Could you suggest any free plugin which is available to use. My intention to get digital signature from each respective person based on the task. Is it doable?


author: Brant Schroeder
body: [@Victor.Pancras](/t5/user/viewprofilepage/user-id/5259327) are you an admin on your instance? It sounds like you already have a plugin / app installed. Can you check and see which one?


author: Victor.Pancras
body: [@Brant Schroeder](/t5/user/viewprofilepage/user-id/769100) I'm not admin, just a user privilege. Unable to check plugin / app installed.


author: Brant Schroeder
body: [@Victor.Pancras](/t5/user/viewprofilepage/user-id/5259327) You will need to check with your admin then.


author: Donna Cappo
body: I add 'Review and approved by:' in the panel and it worked after that.


author: Victor.Pancras
body: Thanks Donna


Tags: cloud

confluence-cloud
Access issue
Asked by Mukesh Manusare:

Access issue


Answers:
author: Brant Schroeder
body: [@Mukesh Manusare](/t5/user/viewprofilepage/user-id/5259087) Welcome to the Atlassian community

Did you give the team member edit access to the Confluence Space?   
<https://support.atlassian.com/confluence-cloud/docs/assign-space-permissions/>

Does the page have any content restrictions on it?  
<https://support.atlassian.com/confluence-cloud/docs/add-or-remove-page-restrictions/>


Tags: unknown-hosting-type
How to auto populate date field in confluence pages and template?
Asked by Aniket Sedhai:

I am creating a bunch of templates for different types of documentation like Technical Review Reports. I have a date field and a username field which are currently occupied by placeholder text relating to the formatting of the date and "@username".

Is there a way these things can be auto-filled so that the user creating the template does not have to type all that information?

I would like the date to be filled with the current date and the username to be filled by whoever changes that document.

A picture is attached below for reference![Screenshot 2023-07-03 102453.png](https://community.atlassian.com/t5/image/serverpage/image-id/266398i6CBC294E9AE41547/image-size/large?v=v2&px=999 "Screenshot 2023-07-03 102453.png")


Answers:
author: Aron Gombas _Midori_
body: You can't do this using a template, but you can with a custom [blueprint](https://developer.atlassian.com/cloud/confluence/blueprints/).

Blueprints allow you to inject custom variables when creating a new page based on a blueprint.


Tags: cloud

confluence-cloud

template