youngmon/atlassian-qna huggingface dataset:
How to get code blocks from a page?
Asked by Zain Farooq:

My company has separate confluence instances set up for two different teams. I was tasked with making an import/export tool so that we could transfer pages that are relevant for both teams between the two instances. Currently, I am able to get the base page html, comments, and attachments using the REST API, but I cannot find any documentation on how to get code blocks from the pages. Is there any REST API call that will allow me to achieve this? Thank you!


Answers:
author: Benjamin
body: Hi [@Zain Farooq](/t5/user/viewprofilepage/user-id/4974171) ,

I'm recalling that this can be done as long you are able to get the full page along with the macros. If you are just getting base page html, it will not be enough as you can be missing other contact from macros besides code-blocks.

Thanks,

Ben

comments: author: Zain Farooq
body: Hi [@Benjamin](/t5/user/viewprofilepage/user-id/3275402) ,

After inspecting the page html we found that it is an xhtml file with the macros contained within xml tags. We are able to get the page body but are unfamiliar with how to programmatically display the fetched page in our import preview page. Could you guide us in how to go about doing this?

Thanks,

Zain


author: Benjamin
body: Hi [@Zain Farooq](/t5/user/viewprofilepage/user-id/4974171) ,

Here's some postings of similar on similar topics:

<https://community.atlassian.com/t5/Confluence-questions/How-can-I-sync-two-Confluence-instances-in-both-directions/qaq-p/608359>

<https://community.atlassian.com/t5/Confluence-questions/Synchronizing-two-Confluence-Instances/qaq-p/713034>

You maybe want to possibility of copying the raw storage format to the other confluence space.

You may want to revisit the entire requirement itself. Like why can't the teams be on one confluence?

If they are on the same confluence, it will be simpler to just have the other team be on a separate space and just use the include macro for the pages you want to share across to the other team.

-Ben


Tags: confluence-server

rest-api

server
Limiting users edit access to pages
Asked by Bret Parker Hinman:

Rookie question here!  

how can we limit users to view access only to certain pages. Having issue of individuals making edits to information.


Answers:
author: Srinatha T
body: [@Bret Parker Hinman](/t5/user/viewprofilepage/user-id/4315841) ,

Another good article to understand the permission levels in confluence.

* [What-are-confluence-cloud-permissions-and-restrictions](https://support.atlassian.com/confluence-cloud/docs/what-are-confluence-cloud-permissions-and-restrictions/)

Thanks,

Srinath T


author: Srinatha T
body: Hi [@Bret Parker Hinman](/t5/user/viewprofilepage/user-id/4315841) ,

Welcome to Atlassian community.

Go through the below KB which has steps to restrict the pages.

* [Add-or-remove-page-restrictions](https://support.atlassian.com/confluence-cloud/docs/add-or-remove-page-restrictions/)

Hope the above info helps. Have a good day!

Thanks,

Srinath T


Tags: cloud

confluence-cloud
How come certain employees I can't add to my page?
Asked by dmariah:

I just created a private Confluence Teams page. I am only able to find one of my teammates to add. How come I can't find other colleagues? I need to add them. Thank you!


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

If you are creating a team by going to **People -\> Start a Team**the people you are adding will need to have a Confluence license in order to add them.

If you have created a page in space and adding individuals to the page permissions the individuals you are trying to add have to have access to the space. Do all the team members you are trying to add have access to the space? <https://support.atlassian.com/confluence-cloud/docs/add-or-remove-page-restrictions/>

comments: author: dmariah
body: Hello [@Brant Schroeder](/t5/user/viewprofilepage/user-id/769100) , Andy Carelli is an author in Confluence. He is one person I am unable to add. I would assume he has a Confluence license. Can you help me figure why I can't add him? Thank you!


author: Brant Schroeder
body: Can you share a screenshot of what you are trying to do?


author: dmariah
body: The Screenshot isn't copying here for some reason. So I wanted to add another Admin. I now can not even see where I can do that. So I went to triple dots on the upper right and selected "Who can view" from the drop down menu. I then type in the search field Andy Carelli and nothing appears for a name found. I then tried acarelli and nothing appeared. I find it odd that my manager is not a name I can find just to even view this page. Scott Sweeney, the same. AND Tom Rosenfield. I understand CloudHealth has its own Confluence portal, but I am trying to build my page out of the VMW Confluence page. Not sure if THAT is the issue....but figured I would note that here. I wish to add:

Andy Carelli and Tom Rosenfield to be additional Admins. Here is the link to my page in case you need that: <https://confluence.eng.vmware.com/display/CPPT/CMBU+Partner+Planning+Team>

Thank you, Brant!
Note box in confluence pages
Asked by Kasra Ayz:

Hello everyone, thank you for your support

I'm looking for a way to have hide able note boxes in a confluence page

* So basically I want to create a page that has many information
  * I need to categorize them and hide some info to be available when I click on them
  * I don't wanna create multiple Jira pages to achieve the exact thing I need
* Is there any way to have such box to click on a word and opens up a pop up showing details?

thank you


Answers:
author: Marcin Wiktor
body: You can use "Expand" macro and put note boxes inside them![Bez?tytu?u.png](https://community.atlassian.com/t5/image/serverpage/image-id/203354iDC0E7928F3CACC77/image-size/large?v=v2&px=999 "Bez?tytu?u.png")

comments: author: Kasra Ayz
body: That is great thank you


Tags: cloud

confluence-cloud
Team Calendar issue with JQL
Asked by Melanie Whitelock:

I'm running into an error when I try to update JQL associated with an existing team calendar. I have tested creating a completely new calendar with the updated JQL, but it throws the same error either way.

The main difference between the JQL already tied to the calendar and the updated version is that we're trying to add a new custom field we've added in Jira - could this be causing the error? The new JQL shows "valid JQL" as well, so I'm not seeing what the issue is. Any help would be appreciated!

![Confluence_calendar_issue.png](/t5/image/serverpage/image-id/203380i01CCA659458521D3/image-dimensions/471x474?v=v2 "Confluence_calendar_issue.png")


Answers:
author: Fabian Lim
body: Hi [@Melanie Whitelock](/t5/user/viewprofilepage/user-id/4972198)

Welcome to the community!

Have you tried saving the query in jira and then applying the saved filter? Do you get the same error?

Also what type of custom field did you add?

comments: author: Melanie Whitelock
body: Hi Fabian! Thanks for the help with this one. The issue was solved when I saved the query in Jira instead of typing the JQL into the calendar directly. Unsure why this is, but I'm glad it's working. The custom field I had added was just a text label. Thank you again for your help!


Tags: cloud

confluence-cloud
How do you add a document to the Confluence page?
Asked by Sherita Shaw _CONT_:

I am trying to add a document to our Confluence page. Need information on how to do that.


Answers:
author: Srinatha T
body: Hi [@Sherita Shaw _CONT_](/t5/user/viewprofilepage/user-id/3588180) ,

Welcome to Atlassian community

There are two ways to attach a file to a page you are **editing**:

* Drag the file directly onto the page.

* Click the **Files \& images** icon in the toolbar, and upload a file.

There are two ways to attach a file to a page you are **viewing**:

* Drag the file directly onto the page.

* Go to ??? **\> Attachments**, and upload a file.

Regardless of the state of the page, you can upload multiple files at a time.

I hope the above info helps. Have a good day!

Thanks,

Srinath
Expanding Header Image
Asked by Emily Culella:

Hi. I have the cloud version of Confluence and I want to enlarge the header image. How can I do this? I see examples of this type of page but I can't figure it out.


Answers:
author: Walter Buggenhout
body: Hi [@Emily Culella](/t5/user/viewprofilepage/user-id/4969361),

Editing options of the header image are limited. When your page is in edit mode, you can do a couple of things:

![Screenshot 2022-06-26 at 18.33.33.png](https://community.atlassian.com/t5/image/serverpage/image-id/203472i18562B765FC51D27/image-size/large?v=v2&px=999 "Screenshot 2022-06-26 at 18.33.33.png")After clicking the image, you can reposition the image to determine what part you see displayed. You can only move it up and down.

Secondly, you can change the image. If you feel the size of your header image doesn't match very well with the available space to display it, you could consider editing your image outside of Confluence to a more appropriate size and import it again to make it fit better.

Finally you can resize your page as a whole to either fixed or full page width. That is done with the \<--\> arrow icon near the top right of the image. This resizes your entire page and dynamically sizes the image with it.

That's about all you can do with the header image. Images inside your page can be resized more flexibly, so you have more options there. In that scenario, they will however appear below the page title.

Hope this helps!


Tags: cloud

confluence-cloud
Custom Fields with weighted values
Asked by Christophe Siclari:

Hello,

I have a question and I could not find something about it.

Please note that I'm very new with the tool.

I would like to create a field (custom field) where the value has a certain weight according to the selected value.

And at the end I would like to display the result of all weights (additional)

I will be easier to understand with an example:

Question 1 : How many users ?

* 2 users (Weight: 0)
* 3 users (Weight: 20)
* 4 users (Weight: 50)

Question 2 : Deployment time ?

* 30 min (Weight: 0)
* 60 min (Weight: 30)
* 90 min (Weight: 40)

Let' assume the choices are respectively (3 users and 90 mins) - the weight would be (20+40) **60**

I'd like the user to chose one answer per question and the result (weight) to be calculated automatically and displayed at the end of the form.

Is this possible? If yes - how ?

Please note that I installed (trial version) the Jira Misc Custom Fields (JMCF) plugin.

Many thanks.

Kind regards,

Chris


Answers:
author: David Fischer
body: Hi [@Christophe Siclari](/t5/user/viewprofilepage/user-id/4974053)

with JMCF, you'll be able to create a Calculated Number field that represents the total weight. However, the value will only be visible after the "form" (I assume you mean the issue creation screen or a transition screen, or maybe a Jira Service Management request creation form) is submitted. The field will be visible on the issue view after its creation.

Would that work for you?

comments: author: Christophe Siclari
body: Dear David,

Thanks for your answer.

Yes, it should be ok as from the moment the value is displayed before the validation.

How can I proceed, currently I'm not even able to assign a weight to an answer.

Thanks

Regards,

Chris


author: David Fischer
body: Hi [@Christophe Siclari](/t5/user/viewprofilepage/user-id/4974053)

you can use a formula like this:

```
def weight = 0

switch (issue.get("Question 1 : How many users ?")) {
  case "2 users": 
    break;
  case "3 users":
    weight += 20;
    break;
  case "4 users":
    weight += 50;
    break;
}

switch (issue.get("Question 2 : Deployment time ?")) {
  case "30 min": 
    break;
  case "60 min":
    weight += 30;
    break;
  case "90 min":
    weight += 40;
    break;
}

return weight;
```

Of course, you'll need to make sure the values and field names match *exactly* your setup. You might also want to replace field names with field IDs - use the "Issue Fields" help tab at the bottom of the script editor to find the field IDs.


author: Christophe Siclari
body: Hello David,

Thanks for the formula.

I was able what I wanted :)

Regards,

Chris


Tags: confluence-server

jira

server
Are roadmap macro columns a fixed width?
Asked by Andrew Griffiths:

Looking to use the roadmap macro, but don't want the user to have to scroll. Is ther any way to reduce the width of the columns ? or shrink to fit?


Answers:
author: Takafumi Ohtake -Ricksoft-
body: Hi Andrew,

I'm Takafumi from Ricksoft.

There are some options to show the entire roadmap without scroll.

1. Change view granularity to month.  
   Changing the "view by" settings to month from weeks can show a longer roadmap, although you may have already tried it.  
   Quarters view is requested [here](https://jira.atlassian.com/browse/CONFCLOUD-40793), but it's not been implemented for years.
2. Change macro width  
   You can change the macro width of roadmap planners like the image below.  
   A wider macro can show more columns.
3. Use an app to build a roadmap  
   [Gantt Chart Planner for Confluence](https://marketplace.atlassian.com/apps/1227063/gantt-chart-planner-roadmap-timeline-for-confluence?hosting=cloud&tab=overview&utm_medium=atlassian-community&utm_source=questions&utm_campaign=20220627) automatically fits the timeline to your screen so that no scrolling to show the entire timeline is required.  
   There are many useful features to plan large roadmaps easily.  
   (Disclaimer: I'm one of the folks in the vendor.)

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

Regards,  
Takafumi


Tags: cloud

confluence-cloud
Editing the 'Expand' macro?
Asked by Anna:

Hello!

I'm trying to edit the 'Expand' macro, but I'm a bit confused. I can only find legacy editor documentation about this, and all the solutions I've found link to that page.

I'm just wondering if it's possible? The floating toolbar only allows me to delete the macro.

Thanks!


Answers:
author: Anna
body: Hi Laura, thanks for your reply!

This is what I mean:

![brave_f77Lv3mrSX.png](https://community.atlassian.com/t5/image/serverpage/image-id/203551i68D3E1C78DCB208E/image-size/large?v=v2&px=999 "brave_f77Lv3mrSX.png")I would like to edit this macro, but I can only seem to bin it. Is this intended?

comments: author: Laura Campbell _Seibert Media_
body: With the legacy editor you did need to open a configuration panel to set the name, but now with the new editor you can just click where it says "Give this expand a title" and start typing.

Then to add to the expand, just click inside the box below the title to add content.


author: Anna
body: Thank you for your answer, but that isn't what I meant.

I'm guessing it's not possible to edit the macro to make it look different? Like making the grey text black, for example, or increasing the size of the grey text.

ETA: I just found out that expands don't work in PDFs, so I'm afraid I won't be using them. Thanks for your help anyway!


author: Laura Campbell _Seibert Media_
body: Right, the expand macro has never had formatting options. You may want to look into an app for that.

It sounds like you are looking for a formatting solution anyway (with the PDF export) and not a dynamic hide/see content option. Have you tried panels or adding sections?


author: Anna
body: I was hoping the expand would work dynamically in a pdf, but I now understand that it doesn't work that way.

I'm now using a header and normal body text instead of the expand. It makes the document a lot longer, but that's not a big deal. Thanks for your suggestions!


author: Laura Campbell _Seibert Media_
body: Hi [@Anna](/t5/user/viewprofilepage/user-id/4944706)

Can you share a screenshot of what you're seeing? Could help other people try to see where the problem is.


Tags: cloud

confluence-cloud
page restrictions: how to restrict editing but allow commenting?
Asked by Tobias Daur:

Hi,

we use pages where we dont want the content to be changed by everyone, but everyone is invited to comment this content.

At Page Restrictions i only see 3 possibilities:

* No restrictions
* Editing restricted (which includes commenting)
* Viewing and Editing restricted

Is there a solution for our usecase?

thx

Tobias


Answers:
author: Dam
body: Hi [@Tobias Daur](/t5/user/viewprofilepage/user-id/4973955) ,

It is possible to restrict comment and edition but on space permissions level.

Here is the documentation that explain all spaces permissions for Confluence Server:   
<https://confluence.atlassian.com/doc/space-permissions-overview-139521.html>

I hope it helps.

Cheers,  
Dam.

comments: author: Tobias Daur
body: Thanks!


Tags: confluence-server

restriction

server
Unable To Provide Access To Requested Account
Asked by Documentation Help:

Dear Team,

We are in need of assistance in resolving the issue one of our team members is experiencing.

The issue lies in the fact that they have requested the access to the confluence Atlassian community but each time we verify their account they are greeted with the message:

![Screenshot_1.png](/t5/image/serverpage/image-id/203310i5ADFF5FD6ADF0A4B/image-size/large?v=v2&px=999 "Screenshot_1.png")

The thing is that we are unable to see where we can approve that request nor that we can figure out why are they not simply able to log in.

Our primary account (that is able to log in as usual) is - help@thomalex.com

Their account (that is not able to log in) is - support@thomalex.asia

Why are they not able to just enter the password and see the documentation as we are? Why is the system so seemingly complicated when there is no need to?

<br />

Please advise on a solution or a place where we can provide the access?

<br />

Thank you ever so much,

Thomalex


Answers:
author: Jessica
body: Hi Thomalex,

By the message seen in the screenshot, I believe your site-administration hub (admin.atlassian.com) is [specifying how the users get site access](https://support.atlassian.com/user-management/docs/specify-how-users-get-site-access/) and approving only some domains or not approving any domain, and the account have to be approved to use the site manually by the site-admins:
> * **Approve the following domains** -- Manually define which domains are approved.
>
> * **Don't approve any domain** -- All users will be forced to request access or be invited.
>
> Access requests {#toc-hId--551834409}
> -------------------------------------
>
> Users can request access to products on your site for themselves or for other users. When they do this, the site admin will receive a notification to visit the **Access requests**page to deny or approve the request.

This is a setting your **site-admins** can check at **admin.atlassian.com** , clicking on the **Products** button in the header navigation bar and on the left navigation bar click on **User access settings.**

There should be all the configuration telling if the domains are approved or not.  

In case your site-admin needs further assistance configuring it or have any concerns before making any changes, feel free to loop them here and we will be happy to assist!  

Cheers,  
Jessica


Tags: cloud

confluence-cloud
Table of contents zone macro content looses formatting
Asked by Nicholas Wade:

The Table of Content Zone macro removes all the formatting of the content that it surrounds.

When you place text inside the macro body it looks okay until you save and view the output.

* Normal style text goes kind of monospaced
* Code style text loses its formatting and becomes Normal style kind of monospaced.

I don't have any hope of resolving this as Atlassian never respond, never acknowledge, and have a dumb policy for resolving issues.

NB: trying to report an issue is worse that having your teeth pulled out.


Answers:
author: Jessica
body: Hi [@Nicholas Wade](/t5/user/viewprofilepage/user-id/4693837)

I'm sorry to hear you are having issues with the Table of ContentZone macro and this is being a frustrating experience for you.

With some tests on our side and additional information on how things are on your side, we can try to confirm the behavior and then report a bug report on your behalf.

Depending on what and how something is being added to the page inside the Table of Content Zone macro, it is possible this is being affected by this [bug](https://jira.atlassian.com/browse/CONFCLOUD-69204), that renders it in the Legacy editor style when the page is published, which differs from the new editor, that you see while in edit mode.

I have added a code snippet macro inside the table of content zone macro for example, and this indeed loses the formatting and the text looks monospaced.

However, normal text and heading/colored text looks normal here.  
Would you mind sharing an example (it can be a screenshot) on how it looks on the published and edit mode?  

Kindest Regards,  
Jessica


Tags: cloud

confluence-cloud
Why has Atlassian Confluence got such a rubbish bug reporting system
Asked by Nicholas Wade:

Every time I try to use the bug reporting system it's a nightmare.

Firstly, it's damn hard to find!

Secondly, the whole interface is a confusing, bewildering mass of 'bits'n pieces'

Thirdly, it keeps wanting you to put some kind of SQL type statement in first?

Fourthly, you get taken to other jira boards or back out

Fifthly, it's simply a nightmare to report anything.

I believe this to be deliberate, to dissuade users from reporting bugs (which anyway, are never fixed).


Answers:
author: Charlie Misonne
body: Hi Nicholas,

Are you referrnig to the public issue tracker on <https://jira.atlassian.com/> ?  
Because you can't file a bug directly in there.

Or is it about the support poral on <https://support.atlassian.com/contact/#/> ?

comments: author: Nicholas Wade
body: See... you've just proved my point....

Going into Jira issue tracker is like going into the tower of babble - hopeless to find a particular bug report.

and support portal is no good as it responds with:

![Capture.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/203514i5AAF949F5F60E3BA/image-dimensions/292x279?v=v2 "Capture.PNG")

However, as Atlassian Confluence never get round to fixing things and have a 'Policy' absolving themselves, it is pretty pointless even considering reporting bugs.

Just trying to point out that the 'Table of Content Zone' macro zaps all the text formatting inside it. Not going to hold my breath about that being fixed any year soon.


Tags: cloud

confluence-cloud
Why can't I see other team members in a team board?
Asked by Candace Everett:

I was recently added to a board by a client who needed me to automate a workflow. I have everything set up, but when I go to assign tasks to other members of the team, it appears that they are not on the board. My client says that she has previously added all the other team members to the board. I had my client give me admin permission on the board, but this did not solve the problem.

When the client sent me the board, it was automatically added to my 'Personal Boards.' Do I need to re-invite the team members to the board that I updated?

Right now, my client is not interested in upgrading to a business plan, so I will need a solution that can work with the free version.


Answers:
author: Michael Pryor
body: At the top of the board you should see an invite button. If you add everyone to the board you want to assign cards to then you can assign cards to them.