youngmon/atlassian-qna huggingface dataset:
How to get all drafts for user using scriptrunner
Asked by Elena Oleksenko:

Hello,

I'm trying to get the list of drafts for given user, using groovy script in scriptrunner console.

Here is the code:

```
import com.atlassian.confluence.pages.DraftManager

import com.atlassian.sal.api.component.ComponentLocator

import com.atlassian.user.User

import com.atlassian.confluence.user.UserAccessor



def userManager = ComponentLocator.getComponent(UserAccessor)

def user = userManager.getUserByName("test_user")

def draftManager =ComponentLocator.getComponent(DraftManager)

def allDrafts = draftManager.findDraftsForUser(user)


return allDrafts
```

The problem is the result of this script is empty list, though this user has one draft. The result is the same for other users.

I also tried to use [getDraft](https://docs.atlassian.com/atlassian-confluence/5.9.2/com/atlassian/confluence/pages/DraftManager.html#getDraft-long-)(long draftId) method, using the correct ID for existing draft, but I keep receiving null as the result. Seems like I can't access any draft in Confluence using DraftManager.

Any ideas why this happens and how can I access list of user\`s drafts?


Answers:
author: Ram Kumar Aravindakshan _Adaptavist_
body: Hi [@Elena Oleksenko](/t5/user/viewprofilepage/user-id/263569)

I'm not sure if your approach will work as expected. However, you can try the sample code below:-

```
import com.atlassian.confluence.pages.PageManager
import com.atlassian.confluence.spaces.SpaceManager
import com.atlassian.confluence.user.UserAccessor
import com.atlassian.sal.api.component.ComponentLocator

def spaceManager = ComponentLocator.getComponent(SpaceManager)
def pageManager = ComponentLocator.getComponent(PageManager)
def userAccessor = ComponentLocator.getComponent(UserAccessor)

def spaces = spaceManager.allSpaces
def list = []
def currentUser = userAccessor.getUserByName('admin')

spaces.each{ space ->
  def pages = pageManager.getPages(space, true)
  
  pages.each{ page ->
      if(page.DRAFT == 'draft' && page.creatorName == currentUser.name) {
         def type = page.type
         def date = page.lastModificationDate
         list << [space.name, page.creatorName, page.title, type, date]
      }
  }
}
list
```

Please note that the sample code above is not 100% exact to your environment. Hence, you will need to make the required modifications.

I hope this helps to solve your question. :-)

Thank you and Kind regards,  
Ram


Tags: adaptavist

confluence-server

groovy

scriptrunner

server
Page tree errors loading (spinning wheel)
Asked by Rickman, Sean:

Post migration to cloud, we have entries in the page tree (sidebar left) that fail to load and display spinning wheels. Pages cannot be opened or edited. Is there any way to remedy this?


Answers:
author: Andrew Dildy
body: Hi [@Rickman, Sean](/t5/user/viewprofilepage/user-id/5048072)

If you contact support (<https://support.atlassian.com/contact>), we can assist you from there.

There is no known incident at the moment with the page tree, so it's likely something went wrong during the migration process.


Tags: cloud

confluence-cloud
How to get the following details Confluence Server Name Confluence Username Confluence Token Conflue
Asked by rangan:

How to get the following details  
Confluence Server Name  
Confluence Username  
Confluence Token  
Confluence Space Key

as we are looking to migrate confluence pages to Azure devops wiki

Is there any way to move Confluence pages to Azure DevOps


Answers:
author: Brant Schroeder
body: [@rangan](/t5/user/viewprofilepage/user-id/5047752) I do not believe that there is an easy way to migrate from Confluence to Azure devops wiki. There is a feature request for this here <https://developercommunity.visualstudio.com/t/allow-to-embed-office-files-like-powerpoint-or-vis/365753> but it is from 2018 so I think you will just have to migrate manually or export your site and have it as an attachment in devops.


Tags: cloud

confluence-cloud
Guest Confluence account unable to edit
Asked by Leigh Bartlett:

Good Afternoon,

I've tried out the new guest account in Confluence for one of our users and swapped them from a fully licenced account to a guest - as they only have access to one space - however, they weren't able to edit pages.

They can edit their own pages - but not ones by other users.

They previously could do that with their full licence and I can't see any difference in permissions.

Is that expected behaviour or have i set something up wrong?


Answers:
author: Kin
body: I tried the new Guest feature to invite a new user to the space, but I get a 403 when I try to update a page via rest API with the generated API token. Only get requests returns page content.  

I already added the guest with "view and edit only" for the pages and it's parents.


author: Craig Nodwell
body: Hi [@Leigh Bartlett](/t5/user/viewprofilepage/user-id/2503921) you can refer to this [document](https://support.atlassian.com/confluence-cloud/docs/invite-guests-for-external-collaboration/) for what a Guest can do and cannot do.

comments: author: Nic Brough -Adaptavist-
body: That doc suggests that a guest can edit all pages within a space, not just their own (restrictions permitting of course).

I've not tried guest access yet, so I don't have a way to test any of this, kind of hoping someone finds an answer before I get around to it!


author: Craig Nodwell
body: (restrictions permitting of course). :)


Tags: cloud

confluence-cloud
Is anyone else having an issue with sorting tables?
Asked by Khloe Salmon:

We used to be able to sort tables by the headers. using small arrows that appeared in view mode, however this seems to have disappeared.

Is anyone else having this issue?

Thanks!

Khloe


Answers:
author: Ashley Honeycutt
body: We're also experiencing this issue. It's only on certain tables. For some of them, the sort works as expected.

comments: author: Ashley Honeycutt
body: Never mind, I found the solution. It won't apply to the OP here based on the screenshot, but in case it's useful to others:

if a table has a Heading Column, none of the columns can be sorted. If you need to be able to sort, remove that setting for any columns that have it enabled on that table.


author: Fabio Racobaldo _Herzum_
body: Hi [@Khloe Salmon](/t5/user/viewprofilepage/user-id/4479810) ,

please could you provide us version of your Confluence? Moreover, please could you attach a screenshot of your table?

Fabio

comments: author: Khloe Salmon
body: Hi Fabio,

Thanks for looking at this!

It's Data center version 7.18.2.

Here's a screenshot of a table as an example - normally I'd expect to see little arrows next to 'Knowledge pages' and 'SOPs' where I can sort.

Many thanks,

Khloe

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


Tags: confluence-server

server
Congrats for Confluence App does not show all profiles anymore
Asked by Birte Balck:

Hello,

we use the app Congrats for Confluence to display birthdays and entrydates and enable colleagues to congratulate eachother.   
We needed to update the field in the Linchpin-Profil for "date".   
Now new entries are not shown in the Congrats App-Widget anymore.

What can we do? How can we add other/new systemfields into the configuration of the Congrats app?

Thank you.


Answers:
author: Jack Brickey
body: Hi [@Birte Balck](/t5/user/viewprofilepage/user-id/4983005) , did you contact the vendor's support? [Bitvoodoo Support](https://jira.bitvoodoo.ch/servicedesk/customer/portal/2/user/login?destination=portal%2F2%2Fgroup%2F21%3FgroupId%3D21)

comments: author: Rodrigo
body: Thanks a lot for the info and redirect [@Jack Brickey](/t5/user/viewprofilepage/user-id/853369) :)  


author: Rodrigo
body: Hi [@Birte Balck](/t5/user/viewprofilepage/user-id/4983005)

Rodrigo here from the bitvoodoo team.

Thanks for contacting us; as previously mentioned, I will write here in case anybody else finds themselves in the same situation:

* Unfortunately, Congrats is not natively compatible with Linchpin.

It is, however, possible to make them work together using a Custom Script. The catch is that after developing one, future changes must also be reflected by updating said Script

We thank you for your time and wish you all the best :)  
Rodrigo


Tags: confluence-server

linchpin

server
How to get the names of the user viewed for the created pages in confluence page
Asked by yasmeen shaik:

Is it possible to get the names of the users who logged in and viewed the page in confluence and when


Answers:
author: Rodrigo
body: Hello [@yasmeen shaik](/t5/user/viewprofilepage/user-id/5047883)

As [@Jack Brickey](/t5/user/viewprofilepage/user-id/853369) mentioned, the tier you are in will enable certain options like Analytics.

There are some other apps in the marketplace that could achieve the objective that you desire; you can review the Marketplace to find the best choice.

* [Atlassian Marketplace - Search Results: "Analytics"](https://marketplace.atlassian.com/search?query=Analytics)

Our team is also working on developing one; I will attach it below too.

* [Viewtracker - Analytics for Confluence](https://marketplace.atlassian.com/apps/28637/viewtracker-analytics-for-confluence?hosting=cloud&tab=overview)

With friendly regards  
Rodrigo


author: Jack Brickey
body: Hi [@yasmeen shaik](/t5/user/viewprofilepage/user-id/5047883) ,

you can get this with Premium via Analytics (AKA Insights). [view-insights-on-your-site](https://support.atlassian.com/confluence-cloud/docs/view-insights-on-your-site/)

comments: author: yasmeen shaik
body: Hi [@Jack Brickey](/t5/user/viewprofilepage/user-id/853369)

Thank you for the solution.

Under APPS section I am not able to see Analytics option.

![image.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/219458iC187DF8AA66B3A39/image-size/large?v=v2&px=999 "image.PNG")


author: Jack Brickey
body: Analytics is under the ellipses on each page. However, in Standard and Free tiers the info is limited and does not include user view details. For this you need Premium tier.
Question to the calendar
Asked by Stefan Kallus:

We plan termins for members of a team in the calendar from confluence. How can i export this termins to the personal outlook calendar from each member? ech member should see in outlook only his own in confluence planned termins.

Best wishes

Stefan


Answers:
author: Brant Schroeder
body: [@Stefan Kallus](/t5/user/viewprofilepage/user-id/5047749) welcome to the Atlassian community

The calendar subscription / link is all or nothing. Individuals will see all the event type and will not be able to just filter on their own.


Tags: cloud

confluence-cloud

mail
Gliffy alternative addon
Asked by Admin:

Hi,

I have a query, in our company, we have migrated to Confluence Data Center lately and would like to move from using Gliffy add-on [https://marketplace.atlassian.com/apps/254/gliffy-diagrams-for-confluence?tab=overview\&hosting=cloud](https://marketplace.atlassian.com/apps/254/gliffy-diagrams-for-confluence?tab=overview&hosting=cloud) to another solution.  
Are there any other add-ons which would allow us to create diagrams directly in Confluence UI such Gliffy? Also, it we would need to have a possibility to migrate content from Gliffy to a new add-on

Many thanks for any suggestions or recommendations


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

[draw.io](https://marketplace.atlassian.com/apps/1210933/draw-io-diagrams-whiteboards?hosting=datacenter&tab=overview) is a popular alternative to Gliffy. It can migrate the content as well.

comments: author: Admin
body: Hi, Dave and thank you for fast answer!  
That is what I have found. Have you known any other cheaper alternative? Both of them cost 6k $ per year.   

Thank you  

Mark Kudlacek


author: David Benson _draw_io_
body: Those are your only two options for "native" tools in DC. For lower cost you'd have to look at an external tool that integrates with a connector, like <https://marketplace.atlassian.com/apps/350288/lucidchart-diagrams-connector>


author: Admin
body: Thx [@David Benson _draw_io_](/t5/user/viewprofilepage/user-id/4259284) I will take a look on it :)


author: Samie Kaufman - Your Gal at Gliffy
body: Hi [@Admin](/t5/user/viewprofilepage/user-id/5042575) ,

Based on your comment above, it sounds like price is the factor you're most concerned with. But, I wanted to let you know that the Gliffy team would be happy to talk through any feedback you have on the product functionality or feature set --- we want Gliffy to be an indispensable part of your work!

Let me know if you'd be willing to have a follow-up conversation. :)

Thanks so much!

Samie

comments: author: Admin
body: Hi [@Samie Kaufman - Your Gal at Gliffy](/t5/user/viewprofilepage/user-id/3569976) Let me be honest, I am really happy with Gliffy and I think this addon is best on the marketplace! All our confluence users want to use Gliffy, but for our leadership it seems to expensive... but I hope we will have more arguments to beat them down ;)  

Thank you Samie  

Mark Kudlacek


author: Samie Kaufman - Your Gal at Gliffy
body: Amazing to hear, Mark --- that's the type of honesty I really appreciate! Feel free to reach out to my teammate Andy (abryl@perforce.com) as you continue investigating and having these conversations. He may be able to help you make the case and answer questions about our pricing structure.

Have a great day!


author: Admin
body: What I said is based on answers from my colleagues and that's true! Thank you Samie, I am going to get this contact to our project manager.  

Have a great day ;)


Tags: app

confluence-server

gliffy

server
Status report of weekly progress using confluence
Asked by Lawrence:

Hi,

Is there an existing weekly status report in confluence? If not, how to create a page to have weekly status report.

Thank you,

Lawrence


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

There is a project status template that you can get here: <https://www.atlassian.com/software/confluence/templates/project-status>

You can also easily create your own to meet your needs as a template.

If you are using Jira to manage your project you could create a realtime report using the Jira macros that would allow anyone to see where specific issue are at any given time.

comments: author: Lawrence
body: Hi Brant,

Thank you for your speedy reply. I search the web and had been landed on the same page. Most like I can't use that because I don't have a cloud account.

As such, I think I just have take your second option. I don't have JIRA ticket open yet at the moment. I'll add the search to my status report page when I starting to create the tickets.

Thank you for your advice.

Warmly,

Lawrence


author: Brant Schroeder
body: [@Lawrence](/t5/user/viewprofilepage/user-id/5045489) Glad I could help. If you have server you can always review what is on the cloud template and recreate it. Might still be a great place to start.


Tags: status
We are having issues that expand macro is not working on some articles. Is there an issue?
Asked by benjamin.santos1:

The expand macro is intermittently not working on some articles. We have tried using different browsers but the expand is not working then after refreshing it works then the issue happens again.


Answers:
author: Brant Schroeder
body: [@benjamin.santos1](/t5/user/viewprofilepage/user-id/4189673) There are no know issues at this time. Have you tried clearing your browsers cache? Is it happening to everyone on the same pages?

comments: author: benjamin.santos1
body: Hi, Yes it's happening to everyone. We have tried clearing our cache and cookies also different browsers. It's not happening on all pages. We are unable to click the expand and view the content inside of the expand macro.


author: Brant Schroeder
body: [@benjamin.santos1](/t5/user/viewprofilepage/user-id/4189673) have you tried removing the content and the expand macro and readding it manually (no copy and paste) to see if there is maybe something that was pasted in causing the issue?


Tags: cloud

confluence-cloud
How to add a add event button in an account.
Asked by Ravi Chakravarthy:

Hi Team,

There should be an add event option on the top right besides add calendar. Can we please get an idea how to provide access for that?

Kind Regards,

Ravi


Answers:
author: Jack Brickey
body: Hi [@Ravi Chakravarthy](/t5/user/viewprofilepage/user-id/5047475) , would you please share a screenshot of what you are looking at and expecting and why you are expecting it?

comments: author: Ravi Chakravarthy
body: ![Add Even buttton.PNG](https://community.atlassian.com/t5/image/serverpage/image-id/219780i3E2D33633400844B/image-size/large?v=v2&px=999 "Add Even buttton.PNG")


author: Ravi Chakravarthy
body: Hi [@Jack Brickey](/t5/user/viewprofilepage/user-id/853369) Jack, please see the attached and I have highlighted the option required.
adding table of contents
Asked by psingh:

When inserting a table of contents, it is adding the cover as one of the content in the table of contents and also creating a duplicate of the table of contents


Answers:
author: Jay Maechtlen
body: Well, the TOC macro looks at paragraph styles - if you need the 'cover' to be a heading, make it a different heading than is used in the document. Then set the TOC macro to exclude that heading.

What do you mean 'duplicate of the table of contents'?

- I set the macro's paragraph to a heading level, and it doubles some text and displays some of the TOC text at that level, but doesn't repeat the entire TOC.

for sure, make sure the line of text your macro is on is set to Paragraph.


Tags: confluence-server

server
Atlassian is not for me! I would like to delete this two-hour account
Asked by Jos? Relland:

Hi,

I have just created two hours ago an account here.

But it is too complicated for me.  

Even to delete the account!

I have been asked to delete

\`\`\`  

Vous ne pouvez pas supprimer votre compte {#toc-hId--524221808}
---------------------------------------------------------------

Votre compte ne peut pas ?tre supprim?, car :

* Ce compte est associ? ? des comptes actifs configur?s sur RENOUVELLEMENT AUTOMATIQUE.
* Ce compte est le contact de facturation principal pour un ou plusieurs produits.
* Ce compte est un contact technique pour un ou plusieurs produits.
* Pour poursuivre la suppression de ce compte, son propri?taire doit consulter la page my.atlassian.com et nommer un autre utilisateur comme contact de facturation et technique.
* Read our support documentation for more help and instructions: <https://confluence.atlassian.com/x/pTgoPQ>

\`\`\`

I have never created this account and I do not know where to find them.

Thank you to delete my account/

jre from jreservices.


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

That's fine, but you must have created an account for you to be able to post here, and you must have created an account to get named on subscriptions or licences! Are you trying to delete this account, or another one?

Either way, you'll need to use the account to log into my.atlassian.com and see where you are named as the contacts, as it says in the error message. You will be able to remove yourself from the systems, kill the subscription off, or hand them over to other people.

Once you have removed yourself from everything, you'll be able to delete your account at id.atlassian.com


Tags: cloud

confluence-cloud
Disappearing Blog post
Asked by Jay Maechtlen:

I created a blog post and posted it.

Search (by me) does not find it.

It is not listed by the Blog Posts macro which lists all (other) macros in this Space.

Our Admin updated the Space's sidebar so that blogs are visible - now I can display the blogs sidebar and the reluctant blog does appear there.

But it still does not appear in search or in the Blog Posts macro.

Any suggestions?


Answers:
author: Jay Maechtlen
body: Our admin rebuilt the search index.

It seems that there's a button to do that.


author: Jay Maechtlen
body: So, the answer is that nobody has a clue?

If our admin comes up with something I will update this.

As of now, we have no answer.


author: Brant Schroeder
body: [@Jay Maechtlen](/t5/user/viewprofilepage/user-id/4987202) Can you confirm that it is indeed a blog post and not just a page?

comments: author: Jay Maechtlen
body: yes, it is a blog post.

Once I display blog posts in the sidebar, it does display there as it should. But it is not found by search (though the other posts are found) and it is not seen by the macro, though the other posts are shown.

The post does not show any restrictions.


author: Brant Schroeder
body: Can you share some screenshots. I tried recreating but have not been able to. I am wondering if this is a one time glitch with that post and if you were to recreate the post if it would show up and you could delete the one that is not showing.


author: Jay Maechtlen
body: ok, the post itself doesn't show any restrictions

![blog post unlocked.png](https://community.atlassian.com/t5/image/serverpage/image-id/220168i4B64D5355737C1D9/image-size/large?v=v2&px=999 "blog post unlocked.png")

The blog post macro doesn't show it.

![macro listing of posts with one missing.png](https://community.atlassian.com/t5/image/serverpage/image-id/220169i4BA7C9581609B4FA/image-size/large?v=v2&px=999 "macro listing of posts with one missing.png")

but the sidebar does list it.

![sidebar showing blog post.png](https://community.atlassian.com/t5/image/serverpage/image-id/220170i96548FB4E8AA1625/image-size/large?v=v2&px=999 "sidebar showing blog post.png")


author: Jay Maechtlen
body: Maybe I'll create a 'test' blog post and see how it acts.


author: Brant Schroeder
body: Did the test post show up?


author: Jay Maechtlen
body: Thanks for following up-

The new post behaved the same as the last - they both show up in the sidebar, but neither appear in a search or in the results of the blog post macro.

Our admin is opening a support ticket with Atlassian.

we shall see...


author: Jay Maechtlen
body: And - now it all works fine.

I don't know if our admin did something or what.

Sorry for the lack of info, I will ask again.


author: Brant Schroeder
body: [@Jay Maechtlen](/t5/user/viewprofilepage/user-id/4987202) Glad it is fixed. If you find out what was done and post it here that would be helpful for anyone else that has this issue.


author: Jay Maechtlen
body: Our admin rebuilt the search index.

I guess anyone with admin access can figure it out?

I don't.


Tags: blog

confluence-server

server