youngmon/atlassian-qna huggingface dataset:
Create from template button replaced by page created link
Asked by Gianni Pucciani:

Hello,

Is it possible to automatically replace a "Create from template" button with the link of the created page once the page is created?

Thanks in advance for your input.

Regards,

Gianni


Answers:
author: James Dellow
body: This isn't possible with the out of the box macros.

You could use the Children Display macro to show the page exists, once they have created it (assuming they don't move the new page).

Can you explain more about the actual use case?

comments: author: Gianni Pucciani
body: Hi James,

The use case is quite simple. I have a table where each row is a business requirement, with ID, Owner and Description. The fourth column would be a button to create a Requirement page from a template, to describe the requirement in more detail.

Once the page is created I'd like to replace the button with the created page.


author: James Dellow
body: Ok, so a bit like the [Undefined Page Links](https://confluence.atlassian.com/doc/undefined-page-links-139580.html) functionality?

If you are on premise, you could try the Linking Plugin, but like an undefined page link I think each row's link would need to be pre-defined to create the link relationship.

You might be able to do something with either the Reporting add-on (on premise only) or even the Page Properties macros (not as neat, but would work on cloud), but they would require spliting the requirement table rows into pages.

Otherwise you'll need something custom.


author: Gianni Pucciani
body: Thanks for your input James!


author: Robert Reiner _smartics_
body: The [projectdoc Toolbox](https://marketplace.atlassian.com/1212629), commercial plugin for Confluence Server, provides a macro for this use case: [Create One Document Macro](https://www.smartics.eu/confluence/x/nQDG)

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

The macro is part of a toolbox that provides solutions for [transclusions](https://www.smartics.eu/confluence/x/cQNk) and [dynamic linking](https://www.smartics.eu/confluence/x/gACsAw). So it is not a confined solution you which you might be looking for?

Biased alert: Note that I am one of the authors of this add-on.

comments: author: James Dellow
body: Great suggestion Robert - don't worry about being biased!


author: Gianni Pucciani
body: I agree with James, thanks ;)
Can I display Information from Development Panel in Confluence page that displays JIRA Issues
Asked by Nick Ankrom:

I am able to pull in any fields from JIRA to the integrated Macro in JIRA, however, I can't seem to be able to pull in the associated Pull Requests. Is it possible to pull in details from the Development Panel into the confluence page?


Answers:
author: Shannon S
body: Hi Nick,

Apologies for the late response, but I found your question while researching the needs for another client who wanted the same.

I have created a feature request for this since it's not possible in Confluence.

* [CONFSERVER-55206](https://jira.atlassian.com/browse/CONFSERVER-55206)

Please vote on that and comment there with your team's usage case as it will be seen by our developers.

Let me know if you have any questions!

Regards,


Tags: questions-for-confluence
Is confluence.atlassian.com down 28Aug2017?
Asked by Brent Webster:

Is confluence.atlassian.com down 28Aug2018?

Tried opening a ticket via support.atlassian.com but it doesn't seem to be geared towards downed infrastructure.

BTW, status.atlasssian.com indicates it is operational.


Answers:
author: Brent Webster
body: Cleared my browser's cookies and the page appeared. Damm cookies.


author: Nic Brough -Adaptavist-
body: It's still working fine for me, and <http://www.isitdownrightnow.com/confluence.atlassian.com.html> reports it as active

What errors are you getting?

comments: author: Leena Bakshi
body: Actually now its working for me also.. otherwise for more than an hour Atlassian was moving mountains to fix the issue ;) and when I checked status page, it said that everything was operational.


author: Leena Bakshi
body: it does look down Brent.. I have been trying since morning as well


author: Nic Brough -Adaptavist-
body: Looks fine to me
How to Upload an Attachment to Confluence Page using PowerShell and REST API?
Asked by Boris_PS1:

Does anybody know, How to Upload an Attachment to Confluence Page using PowerShell and REST API?

I have an example on Confluence documentation on CURL:

```
curl -v -S -u admin:admin -X POST -H "X-Atlassian-Token: no-check" -F "file=@myfile.txt" -F "comment=this is my file" "http://localhost:8080/confluence/rest/api/content/3604482/child/attachment" | python -mjson.tool
```

But I'm a bit stuck on converting it to PowerShell in a correct way.

Please advice....


Answers:
author: DarkSideMilk
body: I followed the example I found here

<https://community.developer.atlassian.com/t/powershell-invoke-restmethod-uploading-new-attachment-to-jira-ticket/6184/2>

The more detailed answer would involve saying that the multipart-form content type doesn't work with invoke-restmethod, at least not in the way confluence/jira needs it to.

So you use a different method that is similar, it still requires a idictionary/hash table powershell object for the headers. And it needs the api uri for the attachment of a page.

Here, let me just show you an example complete with creating a base64 encoded string for the authorization header, formatting got messed up in copying though.

```
function Add-AttachmentToPage { 
    [CmdletBinding()] 
    param ( 
        [string]$baseUrl, #base url to create the api uri from, no trailing slash
        [string]$pageId, #id of the page in confluence
        [string]$filePath, #path to the file to upload
        [string]$authToken #base64 encoded string of username:password
    ) 

    begin { 
        Write-Host "creating uri and web client for file upload"
        $uri = "$baseUrl/rest/api/content/$pageId/child/attachment"; 
        $webClient = New-Object System.Net.WebClient;
        $webClient.Headers.Add('X-Atlassian-Token','no-check');
        $webClient.Headers.Add('Authorization',"Basic $authToken"); 
    }
 
    process { 
        Write-Host "Uploading $filePath confluence page of id $pageId via uri $uri"; 
        $webClient.UploadFile($uri,$filePath); 
    } 

    end { 
        Write-Host "$filePath attached to confluence page of id $pageId";
        return; 
    }
}

function Convert-StringToBase64 { 
    [CmdletBinding()] 
    param ( $Text ) 
    begin { $Bytes = [System.Text.Encoding]::Unicode.GetBytes($Text) } 
    process { $EncodedText =[System.Convert]::ToBase64String($Bytes) } 
    end { return $EncodedText }
}

$authToken = Convert-StringToBase64 -Text 'username:password';

Add-AttachmentToPage -baseUrl 'https://YOURCONFLUENCEURL' -pageId 123 -filePath '\\path\to\file' -authToken $authToken;
```


Tags: attachment

powershell

rest-api

upload
Can I import a html file and maintain it's interactive property within a confluence page?
Asked by Emily Vincent:

I have made an iteractive infographic html file. I want to place it within a confluence page so users can interact with the graphic from the confluence page. Is there an appropriate plugin or way to achieve this?


Answers:
author: AnnWorley
body: It sounds like a case for the [HTML Macro](https://confluence.atlassian.com/doc/html-macro-38273085.html). It allows you to add HTML code to a Confluence page.

Please let us know whether your HTML works on the Confluence page when you put it in an HTML macro.


Tags: app

html
page cant not deleted
Asked by Anderson Hsu:

Dear Support Team,

Although we use one account which he has all permission for the space to maintain the page , he can not delete some page content while the page was created by another account which the account was disable. Why we need use system administrator account to delete the page? Thanks a lot.


Answers:
author: Anderson Hsu
body: Additonal information:

Does someone who has all permission in the space , does it mean he can do any thing , such as insert/delete/edit.....anything in the space ? Thanks a lot.

![page.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/5354i7918DCAE07891F5D/image-size/large?v=v2&px=999 "page.jpg")
How to restrict deletion of a file?
Asked by Thomas Bitschnau:

We are handling certain files in our team with Confluence and I want to be sure these files can't be deleted.

Is there a way to restrict this for certain pages or whole spaces only?


Answers:
author: Tom Crespi
body: \<\<Is there a way to restrict this for certain pages or whole spaces only?\>\>

Hey Thomas,

Manleen's suggstion works at a page level. For whole spaces, go into Permissions for the space and choose whom can delete by checking or unchecking the Attachments-Delete permission.

And if you're watching the space or page, you can be notified of deleted attachments and if one is deleted, as long as you are using a version of Confluence that is 5.x (can't recall the point version) or greater, then you can restore it from Space Admin\>Content Tools\>Trash (in the pre-5.x days, restoring attachments was a quite difficult task.

comments: author: Thomas Bitschnau
body: I didn't know of the Trash. This helps a lot. Thank you for your help!


author: Manleen Johar
body: You can apply restrcitions at page level. Click the restrict icon (![restrict_icon.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/5296iA5B89EFD83F7AA0E/image-dimensions/23x22?v=v2 "restrict_icon.PNG")) at the top of the page and specify the list of users who can view and edit the page.
How to remove contributors and last modified date from the space home screen?
Asked by Prateek Kothari:

![confluence_query.PNG](/t5/image/serverpage/image-id/5287i28E105595B8A57EC/image-size/large?v=v2&px=999 "confluence_query.PNG")How to remove that contributors and last modified columns from this screen when published and shared with others.


Answers:
author: Nic Brough -Adaptavist-
body: You'll have to hack the templates providing the view to remove things from it.

I wouldn't bother myself, this seems like a pointless downgrade of functionality.


author: Arthur Mack
body: Not sure why you would even want to do this, its how you know whats going on in Confluence.
Is it possible to create a list of pages that indicates where the current page was included?
Asked by Bob Do:

With the [Include Pages Macro](https://confluence.atlassian.com/doc/include-page-macro-139514.html) you can embed pages into another page. This is partly used for dynamic text modules. Is it possible to display in a list where the integration takes place?  


Answers:
author: Manleen Johar
body: You can use the following approach:

1. Add the same label to all the pages in which the Include Page macro is used.
2. Use Content Report Table macro to get the list of pages.

comments: author: Bob Do
body: Is there another way without labels?


author: Robert Reiner _smartics_
body: I only know of the [projectdoc Toolbox](https://www.smartics.eu/confluence/x/1YEp) to provide such a feature for Confluence Server (see [Use Display Table for Transclusion References](https://www.smartics.eu/confluence/x/_wRNAg)). I'm one of the authors, so my view on possible solutions is heavily biased ;).

But I assume you are looking for a solution based on Confluence native tooling where your work to change existing pages is minimal? This would not be the case with the projectdoc Toolbox since it requires to use its macros.


author: Bob Do
body: One way is to use the search macro and "*Title of excerpt page* " AND macroName:excerpt-include\*.

Another way for searchterms woud be nice like the content by label macro.


Tags: include
Error trying to link JIRA Sprints in Confluence Team Calendar
Asked by Usama Moin:

I have created a new team calendar and when I try to add an event of type "JIRA Agile Sprints" I get an error " You do not have an authorized access token for the remote resource"

So I am not able to link the JIRA sprint in the Team Calendar.

Can someoen help me in this?


Answers:
author: Andrea Ro?kamp [Communardo]
body: Hi Usama Moin,

I had the same problem.

Have you checked:

**Your profile \> Settings \> View OAuth Access Tokens?**

Revoke the Access and Retry.

In my case that fixed the problem.

Good luck.

Regards, Andrea
Update of Confluence Add-ons
Asked by Divya Dangeti:

Hi,

We are upgrading our confluence from version 3.1.1 to version 5.0.3. We have created a Staging environment which is similar to Production environment, but now I want to know how to upgrade the Add-ons or plugins which is present in confluence. I did not found any option such as UPGRADE beside that plugins.

So, what should I do for upgrading of all the Add-ons present in confluence version.

Can you please give me a solution.

Thanks,

Divya.


Answers:
author: Divya Dangeti
body: Hi Nic,

I did not have any upgrade options after the plugins in the confluence version 3.1.1.

Can you suggest is there any way to do?

Thanks,

Divya.

comments: author: Nic Brough -Adaptavist-
body: Er, please re-read my answer. Especially the second sentence.


author: Nic Brough -Adaptavist-
body: Make a list of your current add-ons. Upgrade Confluence, then go into the "manage add-ons" section and use the upgrade options for each one in there. Some may not load at all in there though, which is why you need the list - to know what to search for and install. The UPM will only offer you versions valid for your version of Confluence.
Remove orphaned calenders
Asked by Christoph Roll:

We evaluated the Confluence Team Calender, but decided not to use it for now.

Meanwhile we created several customer, product and documentation pages.

Now I deactived the calender-plugin but in the customer activity-stream are still calender pages visible. As a customer a can't access them, as they are in non accessible spaces.

Any idea how to remove the calenders completely (at least from the stream)?

Regards


Answers:
author: Fabio Racobaldo _Herzum_
body: Hey [@Christoph Roll](/t5/user/viewprofilepage/user-id/1147595) ,

please take a look to the following guide <https://support.atlassian.com/confluence-cloud/docs/delete-or-remove-a-calendar/>


Tags: team-calendars-for-confluence
Confluence is throwing blank page once in a while.
Asked by AJITH PG:

Hello,

We are running confluence 5.9.11. Once in a while we are getting a blank page while accessing the site. I could see the following errors in the logs.

--------

2017-08-25 15:53:36,554 ERROR \[ajp-nio-8009-exec-192 url:/rest/calendar-services/1...oming.json username:xxxx \] \[extra.calendar3.rest.CalendarResource\] getSubCalendars Unable to get events for subCa  
lendarId: 146d3e2b-939d-4377-9bf5-e454f543175c  
2017-08-25 15:53:36,768 ERROR \[ajp-nio-8009-exec-192 url:/rest/calendar-services/1...oming.json username:xxxx \] \[extra.calendar3.calendarstore.JiraCalendarDataStore\] getSubCalendarContentInternal Th  
e JQL query for project = "XXX" didn't return any results. Try changing the query.

---------

Could you please let me know what can be the cause for this? Also if it's something related to the performance issues, how can we get the information about what causing the issues? Let me know if any other details are needed from my end.

Regards,

Ajith PG


Answers:
author: AnnWorley
body: Hi Ajith,

For the cause of the Team Calendar error messages, it is usually invalid JQL or JQL pointing to JIRA content that the viewer doesn't have access to. We have a request open to change the log entries to be less alarming: [As an administrator I would like invalid JQL to be logged as WARN or INFO rather than ERROR](https://jira.atlassian.com/browse/CONFSERVER-49256)

Regarding the blank page being shown when you access Confluence, the most common cause of a blank page being displayed in the browser is accessing it on an invalid context path; please see: [Getting a blank or white screen when accessing confluence via browser](https://confluence.atlassian.com/confkb/getting-a-blank-or-white-screen-when-accessing-confluence-via-browser-318669136.html).

I look forward to hearing more about the performance issue if it doesn't turn out to be the context path after all.

Thanks,  
Ann
List of Confluence space names and it's owner names?
Asked by pokalav:

Hi Team,

Please help to get the list of space names and space owner names.

Thanks


Answers:
author: AnnWorley
body: To find out who all the space administrators are, please try the SQL queries or user macro from our knowledgebase article:

[How do I view a list of all space administrators for all spaces](https://confluence.atlassian.com/confkb/how-do-i-view-a-list-of-all-space-administrators-for-all-spaces-346325879.html)

Confluence spaces don't have owners, exactly. Please see [Space Permissions Overview](https://confluence.atlassian.com/doc/space-permissions-overview-139521.html):
> The user that creates a space, like when you create your personal space, is automatically an administrator of that space, and they can add other space admins if they want to by adding the Space Admin permission to another user or group.

comments: author: pokalav
body: Thank you! Ann


author: pokalav
body: Hi Ann,

Is that possible to auto update the Confluence page that includes the "List of all space admins for all space"?

Thanks,

Venkatesh


author: AnnWorley
body: Hi Venkatesh,

On my test instance the [user macro](https://confluence.atlassian.com/doc/writing-user-macros-4485.html) in this article works to create an automatically updated list of space admins on a Confluence page: [How do I view a list of all space administrators for all spaces](https://confluence.atlassian.com/confkb/how-do-i-view-a-list-of-all-space-administrators-for-all-spaces-346325879.html).

Thanks,

Ann


author: pokalav
body: Hi Ann,  
Thanks for your reply!

After adding the new macro, Confluence page is not opening(keep on loading)

![Screenshot_20180619_160807.png](https://community.atlassian.com/t5/image/serverpage/image-id/24885i84FD837C6CCF73B0/image-size/large?v=v2&px=999 "Screenshot_20180619_160807.png")![Screenshot_20180619_165724.png](https://community.atlassian.com/t5/image/serverpage/image-id/24886iE6BD453435CCECA8/image-size/large?v=v2&px=999 "Screenshot_20180619_165724.png")

Regards,

Venkatesh


author: Kaspars
body: Doesn't work for me too.
How do I manage @mention suggestion in each space?
Asked by Arisa Yamada:

Is there any function that the Account manager can set up different "@mention suggestion" in each space?

In the default setting, @mention suggestion will show when the user type "@" on Confluence. Is it possible to manage the suggestion name by account manager?

This function is important when there are different ongoing projects in each space by the different client in terms of security.


Answers:
author: AnnWorley
body: The @mention suggestions are pulled from the People Directory - if we could control access to that, we could meet your requirement to manage the suggestion list.

We haven't built into Confluence the ability to filter the People Directory (from which the at-mentions are pulled). We do have a request open to add more control: [People Directory and "controlled" privacy / configure access to People Directory depending on Group membership](https://jira.atlassian.com/browse/CONFSERVER-7837). The ticket is still open if you are interested in commenting to emphasize your use case.
show jira comments in confluence space
Asked by Shlomi Horev:

Hi All,

We are trying to build some incident log management for our JIRA SD tickets in confluence, I would like to know if there is a way to show every comment that inserted into a certain SD ticket in a confluence page?


Answers:
author: AnnWorley
body: I see that my colleague recommended the JIRA Issues Macro in his answer to your other post: [show jira comments in confluence space](https://community.atlassian.com/t5/Confluence-questions/show-jira-comments-in-confluence-space/qaq-p/631030)

For more functionality, please also check out Bob Swift's answer to this similar question: [Is it possible to view JIRA comments in Confluence?](https://community.atlassian.com/t5/Confluence-questions/Is-it-possible-to-view-JIRA-comments-in-Confluence/qaq-p/215326)
show jira comments in confluence space
Asked by Shlomi Horev:

Hi All,

We are trying to build some incident log management for our JIRA SD tickets in confluence, I would like to know if there is a way to show every comment that inserted into a certain SD ticket in a confluence page?


Answers:
author: Andy Heinzer
body: So the [JIRA Issues Macro](https://confluence.atlassian.com/doc/jira-issues-macro-139380.html) in Confluence should allow you to be able to show either a search list of JIRA issues, or even a specific single JIRA issue directly in Confluence. However this feature will only work if you have an applicaiton link between JIRA and Confluence.

comments: author: Shlomi Horev
body: Thanks for your reply, however, what we are looking is to import only the comments part of each new ticket.


author: Willie Freeman
body: Looking for this as well, any way to include Jira comments on a Confluence page?


Tags: jira
Can't import a backup file
Asked by Minh Bui:

Hi everybody,

I have confluence backup file. but I can not import to my cloud the progress was stopped when it's 20%.

Please help me to fix it.

Thank you,

Minh Bui


Answers:
author: Nic Brough -Adaptavist-
body: This needs to go to Atlassian Clouod support - <https://support.atlassian.com/contact>
How to inject a DAO class (component) into REST resource filter
Asked by Vikash Kumar:

I am writing a REST filter for one my rest api class. I want to do authorization in the rest filter and annotate all the REST services I need to apply authorization check on. Here's the Rest Resource Filter code:

```
@Scanned
@Component
public class AuthorizationFilter implements ResourceFilter {

 private MyActibeObjectDao myActibeObjectDao;
 
 @Inject
 public AuthorizationFilter(MyActibeObjectDao myActibeObjectDao) {
    this.myActibeObjectDao = myActibeObjectDao;
 }

 
 @Override
 public ContainerRequestFilter getRequestFilter() {
 
   return new ContainerRequestFilter() {
    @Override
    public ContainerRequest filter(ContainerRequest request) {
      ...
      /* Fetch admin users from AO */
      String[] admins = myActibeObjectDao.getAdminUsers();
      /* If not in the admins then throw Exception */
      throw new WebApplicationException(
             Response.status(Response.Status.FORBIDDEN)
             .entity("You are not authorized to this operation!")
             .build());
    }
  };
 }

...
 
}
```

Here's my REST class:

```
 @GET
 @AnonymousAllowed
 @Produces(MediaType.APPLICATION_JSON)
 @Path("/settings/{userId}")
 @ResourceFilters(AuthorizationFilter.class)
 public Response retrieveTableMetaData(@PathParam("userId") Integer userId) {
 /* To Do: */

} 
```

The problem is, I am getting null value in

```
myActibeObjectDao
```

Any pointer will be of great help in this regards.

Thank you!

Vikash


Answers:
author: Ferenc Nagy
body: I had similar problem with injection and it started to work after adding "@Provider" to my filter class. Got inspired by this topic:  
<https://community.atlassian.com/t5/Answers-Developer-Questions/How-can-I-intercept-every-rest-request-to-check-security/qaq-p/467601>

Especially the sample code here:  
<https://bitbucket.org/atlassian/atlassian-rest/src/cc7f6aa16c340e5c7860b6fd6d611395396f0313/atlassian-rest-common/src/main/java/com/atlassian/plugins/rest/common/security/jersey/AdminOnlyResourceFilter.java?at=master>

comments: author: Vikash Kumar
body: It's been long time I worked on Atlassian plugin development. But seems this could be right answer now that I came back after a long time in this field :)

Thank you for your answer.


author: Vikash Kumar
body: Any one up for help here?


Tags: app

confluence-app

developer