youngmon/atlassian-qna huggingface dataset:
how to retrieve custom field value in confluence
Asked by joseph emok:

I am trying to get the space name from my custom form for creation of space


Answers:
author: joseph emok
body: it is a plugin


author: joseph emok
body: this is my velocity file

\<u\>\<u\>\</u\>\</u\>

\<html\>

\<u\>\<u\>\</u\>\</u\>

<br />

<br />

\<head\>

<br />

\<title\>publishing a space\</title\>

<br />

\<meta name="decorator" content="atl.admin" /\>

<br />

$webResourceManager.requireResource("com.atlassian.auiplugin:ajs")

<br />

\</head\>

<br />

\<body\>

<br />

\<form name="myForm" action="com/atlassian/plugins/vanderlande/publishspace/myaction.action" method="GET"\>

<br />

$action.inputText: \<input type="text" name="myInput"\>

<br />

<br />

<br />

<br />

<br />

<br />

\<div class="field-group"\>

<br />

\<label for="name"\>Name\</label\>

<br />

\<input id="spacename" type="text" name="name" \>

<br />

\</div\>

<br />

\<div class="field-group"\>

<br />

<br />

\<input type="submit" value="ok" class="text"\>

<br />

\</div\>

<br />

\<div class="field-group"\>

<br />

\<input type="submit" value="cancel" class="button"\>

<br />

\</div\>

<br />

\</form\>

<br />

\</body\>

<br />

\</html\>

<br />

this is my ijs file

<br />

\<font\>\<font\>\<font\>\</font\>\</font\>\</font\>

AJS.toInit(

\<font\>\<font\>\<font\>\</font\>****function****\<font\>() {\</font\>\</font\>\</font\>

****var**** baseUrl = AJS.$("meta\[name='application-base-url'\]").attr("content"\<font\>);\</font\>
****function****\<font\> populateForm() {\</font\>

AJS.$.ajax({

\<font\>\</font\>

url: baseUrl +
\<font\>\</font\>"/rest/plugins/vanderlande/publishspace/MyAction"\<font\>,\</font\>\<font\>\</font\>

dataType:
\<font\>\</font\>"json"\<font\>,\</font\>\<font\>\</font\>

success:
\<font\>\</font\>****function****\<font\>() {\</font\>\<font\>\</font\>

AJS.$(
\<font\>\</font\>"#name").attr("value"\<font\>, config.name)\</font\>

} });

****function****\<font\> updateConfig() {\</font\>

AJS.$.ajax({
\<font\>\</font\>

url: baseUrl +
\<font\>\</font\>"/rest/publishspace/1.0/"\<font\>,\</font\>\<font\>\</font\>

type:
\<font\>\</font\>"PUT"\<font\>,\</font\>\<font\>\</font\>

contentType:
\<font\>\</font\>"application/json"\<font\>,\</font\>\<font\>\</font\>

data:
\<font\>\</font\>'{ "name": "' + AJS.$("#name").attr("value")+')'\<font\>,\</font\>\<font\>\</font\>

processData:
\<font\>\</font\>****false****\<font\> })};} \</font\>

populateForm();});

\<font\>\</font\>

AJS.$(
\<font\>\</font\>"#publish").submit(****function****\<font\>(e) {\</font\>

e.preventDefault();

updateConfig();

});

my form display but i alway get error. rest does not work. so i cann't retrieve data from the form I want to create a space from java and reference the copyspace


author: Colin Goudie
body: Can you provide some more information of what you currently have? Where and what is your custom form? Is it in a plugin, rendered in a macro or what? Is it then trying to create a space?


Tags: custom-field
Restore confluence space
Asked by Sarah Elmer:

User deleted full space in Confluence OnDemand. Not in Trash listing under Space Admin for that space. User clicked on Restore right after deletion, but nothing happened. Any suggestions?


Answers:
author: J. Caldwell
body: Contact support....

comments: author: Sarah Elmer
body: Thought that might be my only answer so I did put in a ticket to support. Sure was hoping there was a way we could do it ourselves. Thanks for the quick reply!


author: Daniel Borcherding
body: Hello Sarah,

Space removal is non recoverable operation. You will see from the space Removal Dialog that.

"This operation **cannot be undone** . Once the space is removed, it cannot be retrieved. It will be gone forever."

There is unfortunately nothing that we can do to recover it.

comments: author: Sarah Elmer
body: Daniel - Not according to what is now being displayed... It states it can be recovered by the Space Administrator (for OnDemand, that is Atlassian).

Delete Page {#toc-hId-1901369536}
=================================

Are you sure you want to send this page to the trash?  
Please note:

* Removing a page moves it into the trash can. You can speak to your space administrator to have it recovered.
* There are [0 incoming link(s)](https://globalfas.jira.com/wiki/pages/viewinfo.action?pageId=54231091) to this page. These links will be broken when this page is deleted.
* This page is set as home of Test space.


author: Dave
body: Hi Sarah,

A space administrator can actually be anyone - this is determined by your space permissions. Whoever was an admin on that space (at least the owner of that space) will be able to restore it if it is still in the trash. However, what you show here is the dialog for deleting a **page** , not a **space**.

Thanks,

-dave


author: Sol Salas
body: Hi Dave!

I need help because I think that one of my spaces was deleted because of a bug. When trying to delete one space, it automatically opened another one and deleted that one.

Can you help me with this? Cause it was the wrong space, and we did not make any back up.   

Thank you!

Sol


author: Kay Brown
body: Based on your screen capture, it looks like they just deleted the Home page and not the entire space. The Home page can be restored by the admin.

Regards,

Kay

comments: author: Sarah Elmer
body: Kay - you're correct. Got to watch my terminology. It was the page deleted and all child pages are still intack, but orphaned.

Dave - already checked the Trash and this page is not listed in order to restore inhouse. A lot of others were listed (all much older deletions) for that "space". We tried to purge some to see if newer deletions would appear, but that didn't work as well.


author: J. Caldwell
body: Backups for ondemand instances?


author: J. Caldwell
body: Yeah...you won't be able to do much in an ondemand instance in the way of recovery for a single space.


Tags: cloud

confluence-cloud
about Confluence SAML SSO
Asked by sales user:

Hello,

I am looking for SAML Support for Confluence account. Does it support SAML?

regards,

Sales


Answers:
author: JohnA
body: Hi there,

I'm sorry to say that our OnDemand platform doesn't currently support SAML, although there is an open feature request to ask that Crowd, (which is at the core of the OnDemand SSO solution), supports SAML in a future release and therefore I would like to ask you to watch/vote/comment on this ticket to encourage our developers to prioritise its implementation: <https://jira.atlassian.com/browse/CWD-1822>

All the best,  
John

comments: author: Scott Roberts
body: @John, we can't vote on a 'Won't Fix' ticket. It's a disgrace that you guys won't support SAML for your OnDemand version. It's business software and doesn't allow integration via SAML back to our own directory. This is the single biggest thing preventing us from moving to the hosted solution.


author: sales user
body: Thanks John.

I appreciate your help.

regards,

Sales


Tags: cloud

confluence-cloud

saml

sso
Blog post don't show up on page w/o editing page
Asked by Greg Pounds:

Confluence 4.3

Used blog macro inside a pane, inside a frame on a page. When someone enters a blog post for the page and presses "publish" the blog appears to be taken however when you go back to the page with the blog macro nothing is shown.

If i edit and save the page with the blog macro the new entry will show up

This can't be right because then what good is the blog macro if the page has to be edited for new content to show up. So I must be doing something wrong.

Any suggestions


Answers:
author: Ryan Goodwin
body: Hi Greg,

If you give the blog macro a few minutes to pick up the blog does it show up? The index probably needs to pick up the new blog, but the index isn't instantaneous - it takes a few minutes to pick up. I would test by putting your blog macro in, create a new blog, then do these steps:

\* Navigate to Confluence Admin \> Cache Statistics

\*\* Click flush all

\* Navigate to Confluence Admin \> Content Indexing

\*\* Rebuild the index  
Let me know if the blog shows up in the macro after that without editing it.


author: RianA
body: In addition to what Ryan said, if the indexing and flushing cache didn't work, please try to [reindex plugin scratch](https://confluence.atlassian.com/display/CONFKB/Rebuild+the+Content+Indices+from+Scratch).
is there a way to get to know of changes of pages?
Asked by Jay Ji:

is there a way to get to know of changes of pages? like displaying kind of signs next to the page title so i can directly recognize it, not with the modified time.

i know the notification or sending emails but i need another way as i montioned.

any ideas?


Answers:
author: Nic Brough -Adaptavist-
body: You've got a slight structural problem with this idea too. Let's say you can come up with a display or highlight method, then how does Confluence know that it needs to be displayed? What is the rule that defines when the highlight should show? All you've said is "changed", but that covers every page that's ever been edited and the display of the date of change covers that

comments: author: Jay Ji
body: yeah you're right. thank you :)


author: Aaron Booth
body: If you view the tree structure - any page that is new or modified has a different icon?

comments: author: Jay Ji
body: noap, actually this question was about the possibility of it.


author: Aaron Booth
body: Mate I just checked. If you click "Tools - View in Hierarchy" you can see the full tree of the space. Any New or Edited pages show up with a Blue DOT over the page. This means the page has changed.


author: Jay Ji
body: cool! it is exactly what i need. thank you Aaron and all of you here who left answers.


author: RianA
body: Hi Jay, you could see the changes if you compare the version of Pages from *Tools \>\> Page History* and select the version to compare and click *Compare selected version*

comments: author: Jay Ji
body: Yeah, i know the history.

but what i need is to check out the changes of pages without seeing the page.

a little hard to explain.

i made child pages in pages and i can see them as a list.

Thing is, i wanna know child pages' changes without seeing the history of these page. with a way such as a red light icon or something like that.

you think it's possible?


Tags: confluence-administration
Show the "newest" child of a page?
Asked by JohnB:

Hey Confluence Ninjas,

Is there a way to show the "newest" child of a page?

Imagine I've got a "Meeting Notes" page, and under it "Sprint Meetings" and "Product Meetings". We create child meeting under these two ones.

I'd like to use a macro to show the "newest" meeting, whether it was created in either "Sprint Meetings" or "Product Meetings" ...

The "Children Display" macro sort of does this - but it only displays direct children and not pages further down the tree.


Answers:
author: Timothy
body: This [macro](https://confluence.atlassian.com/display/DOC/Children+Display+Macro)? Not sure if this is available on OnDemand.

comments: author: JohnB
body: Not quite : \|

The "Child Display" macro only can be used to display the most recently created immediate child. I'd like to get the most recently created child at any level under a particular document.


Tags: cloud

confluence-cloud
Missing Images
Asked by Selcuk Savas:

Hi,

I open a recently created page and Isaw an empty space instead of images.

Images are still attached to the page but I don't kbnow what happened.

I am the only one to can edit the page.

It happened before but I did not pay attention. Now it is second time and I am getting worried.

I have also checked previous version of the page and the images are missing on it as well.

Like I have never attached the images.

Any toughts, ideas will be highly appreciate it.

I am also creating a support ticket. Here, I am looking for similar experience and short term solution.

Cheers,

Selcuk


Answers:
author: Selcuk Savas
body: Hi Colin,

Thanks for your help. I created the page on our staging server and copied and pasted in production later on. So the image attachment link became web links.

I fixed them manually and I'll be more careful next time.

I don't understand why the links stopped working suddenly (I believe the weblinks as well should work without an issue) as the page on staging server and its attachment still exist.

Thanks for your help.

Selcuk


author: Colin Goudie
body: First thing I'd look at is logs. Install the Support Tool Plugin and check out the log scanner. See if it comes up with anything obvious looking. Support will ask for logs anyway so might as well get a jump on it.

<https://ecosystem.atlassian.net/wiki/display/STP/Hercules+Log+Scanner>

By default images will be stored as attachments on the filesystem. Maybe there are some permission related issues or something outside Confluence that is wiping them out? Logs may help show exceptions
Is there a way to restrict the viewing of attachment but still allow users to upload?
Asked by Jon Anderson:

Is there a way to restrict the viewing of attachment but still allow users to upload?

We would like to set up a wiki space to allow users that have access to that space to post attachments to pages but not see the list of attachments or restrict it where they can only see their attachment.

Example: We set up space for the vendor community respond to solicitation requests. Each vendor would have a wiki log on with the proper restrictions to only view this space. The customer would post a solicitation on a page with the requirements and would request vendors to respond to the request via uploading their response to the page. The customer does not want vendors to see the other responses and only the customer could see all responses (attachments).

Is there a way to do this?


Answers:
author: Sean King
body: Unless each user had their own page to attach their attachments no. If they do have their own page you would only need to apply viewing restrictions to that page for all individuals who should be able to see the attachments and/or content. If required, you can create an index of all attachments in the space with the Space Attachments macro or by going to BROWSE \> ATTACHMENTS.

comments: author: Jon Anderson
body: Thanks for the info. I will just lock down pages where they can post their attachments.


Tags: confluence-administration
Using get-data to grab values defined by text-data(and not set-data)
Asked by Julio Mugabe:

get-data macro works well when a set-data has already been used to set data values. However I would like to use text-data because a user can enter data values in a text field and not avoid first selecting page edit as in the case of set-data. How can I use get-data to retrieve data values defined by text-data.


Answers:
author: Julio Mugabe
body: The below lines answer my question.

|---------------------------------------------------------------|
| `{text-data:text}{text-data}` ` ` `{get-data:text}{get-data}` |


Tags: reporting-plugin
Confluence Metadata-Report Date Sorting
Asked by Bradley Smith:

I am attempting to sort a date field in a confluence metadata-report. The date entry, called "My Date", is entered as MM/DD/YYYY, and the sort field is currently "My Date as date asc". However, the dates are shown in an incorrect order. The order doesn't reflect a preference for day, month, or even year... it seems a bit random. However, due to the new header sorting functionality in Confluence, when I click the Header it will resort appropriately. Is there any way to get the initial sort to work?


Answers:
author: Eric Barry
body: This is busted in mine too. I renamed the field thinking it was because of the space and it behaves exactly the same way.

I can get "as number" and "as istring" to behave correctly - but this field, pulling from a metadata-list in table format, does not sort when using "as date".

Manually sorting the field works, as the original poster also mentions.


author: Jonathan Simonoff
body: I think you shouldn't have the "asc" in that sort hint.


Tags: addon-org.andya.confluence.plugins.metadata

metadata

report
Remove JIRA Calendar option from Team Calendar?
Asked by James Roberts:

Is it possible to configure the Team Calendar plugin so that the JIRA Calendar option is not displayed to end users? We do not have Confluence-JIRA integration and would like to not cause user confusion with the JIRA Calendar option enabled.


Answers:
author: LuizA
body: Hello James,

Actually this option is a kind of default of Team Calendars, so natively is not possible to remove this option. A possibility would be to try to make some customization to remove this option, but in this case if you want to customize this option I would suggest you to make a contact with an Atlassian Expert in order to obtain a more specific assistance about how you can perform this customization, you can contact them by the following:

<http://www.atlassian.com/resources/experts>

Best Regards,

LJ.


Tags: confluence-administration
Redirect a site to different URL
Asked by minesh patel:

Hello,

I have a site ( <https://rc.ucf.edu> ) that has a certificate error, and we change the certificate to validate for [https://www.rc.ucf.edu](https://www.rc.ucf.edu.).

I would like to redirect rc.ucf.edu to [www.rc.ucf.edu](http://www.rc.ucf.edu.). How do I do this?? Thanks.


Answers:
author: Bruna Griebeler
body: Hi Minesh,

I like using htaccess to redirect pages. Check here the steps: <https://my.bluehost.com/cgi/help/htaccess_redirect>

Hope it helps!

Kind Regards

comments: author: minesh patel
body: Thank-you for the information.


author: minesh patel
body: Sorry, I may have mixed up the URLs in my question!
Placing image above Confluence 5 global header
Asked by john Carley:

At the space level (or even site level) I would like to add an image ABOVE the global header that will appear on every page.

See this site for an example of what I mean.

<http://resourcecenter.controlmicrosystems.com/dashboard.action>

Can you advise how to accomplish this? If it's CSS, would it be possible to give a code sample?

Thank you


Answers:
author: Ramiro Pointis
body: Hi John, you mean something like this?

<https://confluence.atlassian.com/display/DOC/Changing+the+Site+Logo>

comments: author: Ramiro Pointis
body: There's something a little more about header and foot here:

<https://confluence.atlassian.com/display/DOC/Customising+Site+and+Space+Layouts>


author: john Carley
body: Thanks to all. I'm halfway there.

I'm able to display a banner with text only, but when I add an image, I can only see it in Edit mode or when I'm in no particular space on the site.

I'll keep experimenting.


author: Daniel Borcherding
body: Hello John,

We have the following document that talks about some basic styling inside of Confluence.

<https://confluence.atlassian.com/display/DOC/Basic+Styling+Tutorial>

There is a specific tutorial on "Changing the Header Background"

Please give that a look and let us know if it will work for your purposes.


author: Bhushan Nagaraj
body: You may find this helpful along with the answers provided below.

<https://developer.atlassian.com/design/application-header.html>

<http://docs.atlassian.com/aui/latest/sandbox/?component=appheader>


Tags: confluence-administration
Specification or tools for making space xml.zip backups from javadoc
Asked by Peter Kahn:

Hi all,

Do you know if there are tools for producing confluence xml space backup format files or a description of the format?

We convert javadoc into an xml space backup and then upload it to provide searchable javadoc which we can easily including in our core documentation via user macros. This worked great when we were on confluence 2.6. I need to uplift it now that we use confluence 4.3.2.

Please let me know if you know of tools to help or where the spec for this format might be.

Thanks

Peter


Answers:
author: m
body: Peter,

The spec for the storage format is here:

<https://confluence.atlassian.com/display/DOC/Confluence+Storage+Format>

You might find Sarah's post helpful too:

<http://ffeathers.wordpress.com/2012/06/07/how-to-convert-confluence-xml-storage-format-to-wiki-markup/>

Mary


author: PeterKoczan
body: Hi Peter,

I would personally recommend that you go to the direction of using standard APIs to upload content, other ways are not reliable, neither supported. I would suggest you to check out Bob Swift's awesome Confluence CLI (<https://bobswift.atlassian.net/wiki/display/CSOAP/Confluence+Command+Line+Interface>) that can be used also for storing content to your instance using the standard API.

Kind regards,

Peter
Using sql plugin inside user macro
Asked by Bruce Schlueter:

Hi,

I am looking for a way to reuse the result from the sql plugin inside a user macro. What I actually want to do is to create a table that contains the titles of the last edited pages from a space.

The result I receive via sql plugin. Now I want to create links underneath the title so that if you click onto the title inside the table you will be switched to that page. I thought this might be possible with a usermacro. Any help is apreciated.

Thanks, Bruce


Answers:
author: Bob Swift (personal)
body: Just use wiki markup for linking as the output of your column data. Set the output format for the macro to be **wiki**.

```
select '[' || title || ']' from ...
```

comments: author: Bruce Schlueter
body: thanks for your response but that does not solve my problem. I did find that hint in the reporting documentation, but this leads to a table filled with "0" instead of the title. If I just add the query to the page it works fine but has no links to the page. Am I missing anything? We are running Confluence 4.3.2 against a MySQL.


author: Bob Swift (personal)
body: This is pretty standard usage scenario. With MySQL you probably need to use the concat function, but it virtually the same. I need more details to see what you are doing. [Open an issue](https://bobswift.atlassian.net/browse/SQL) if you have more difficulties and provide your SQL.


author: Bruce Schlueter
body: Thanks, I got it now. Reading is one thing understanding correct another :-(

For those who are unable to see it directly in MySQL the query should look like this

```
select title AS Titel,concat("[",contentid,"@easypage","]") as Link from vw_newest_pages_easywiki
```

You need to add the square brackets inside the "concat"

Anyway, thanks for your hint to head me into the right direction
Is it possible to import a word (doc) diagram from word to gliffy?
Asked by Mani1:

Hi,

I am in interested to know that Is it possible to import a word document into gliffy. So far gliffy is showing only the possibility of importing \*.xgml format diagram, which is a native langauage for gliffy.

Secondly, do we have any support in Gliffy to edit the GraphML format diagrams or charts , OR Gliffy is looking to add in near future any possibility to edit of graphxml diagram creation and edition.

Thanks


Answers:
author: Rodrigo Girardi Adami
body: Hi!

I did some searches over the internet but I couldn't confirm these options. I believe it would be better to get in touch directly with Gliffy vendor so they can provide a more precise answer to you :)

Anyway, I'll leave this ticket open so someone might have this answer and may help here.

Regards,

Rodrigo


Tags: addon-com.gliffy.integration.confluence

gliffy