youngmon/atlassian-qna huggingface dataset:
How to send E-Mails based on Confluence Page Content with REST-API
Asked by Artur A_:

Hello,  
I would like to write a java based app that sends e-mails using the confluence REST-API.  

Formerly I wrote a bot that did that using the frontend after updating the page(not nice, but worked fine). The basic steps were:

1. Update(PUT) page with new content (daily report)  
2. Send e-mail using the frontend (share feature)

I can imagine the app working like:

Option1: Use PUT to update page, use an not yet known way to send an email using Rest-API.  
Option2: Use PUT to update page, use another way to send an e-mail with the already available content using Java.

<br />

I think option2 would be enough to get the results we need.   
I still would like to know if there is a "nice" way of confluence doing that.

<br />

Any hints appreciated. Thank you.


Answers:
author: Thomas Deiler
body: Dear [@Artur A_](/t5/user/viewprofilepage/user-id/4382287) ,

welcome to the community.

Unfortunately the REST API doesn't allow to direct send mails. They are only sent when you change content and somebody is a watcher. (Btw. You can modify the watchers with REST.)

So I recommend option 2. Java Mail Api is simple to use:

```
import javax.mail.*;
import java.util.Properties;

public class SendMail {

private Properties props;
private Session session;

public SendMail (String host, String port) {
  this.props = new Properties();
  this.props.put("mail.smtp.host", host);
  this.props.put("mail.smtp.port", port);
  this.props.put("mail.transport.protocol","smtp");
  this.props.put("mail.smtp.auth", "false");
  this.session = Session.getDefaultInstance(props, null);
}

public void send(String subject, String msgBody, String from, String[] to) {
  try {
    Message msg = new MimeMessage(session);
    msg.setFrom(new InternetAddress(from));
    for (int i=0; i<to.length; i++) {
      msg.addRecipient(Message.RecipientType.TO, new InternetAddress(to[i]));
    }
    msg.setSubject(subject);
    msg.setText(msgBody);
    Transport.send(msg);
  } catch (MessagingException e) {
    String msg = "Send failed. " + e.getMessage();
    throw new RuntimeException(msg);
  }
}

}
```

So long

Thomas

comments: author: Artur A_
body: Hello Thomas,

thank you for your swift and clear answer. Much appreciated.


author: Thomas Deiler
body: Dear [@Artur A_](/t5/user/viewprofilepage/user-id/4382287)

don't forget to press the "green accept answer" button to indicate other readers the successful answering of your question.  

So long  
Thomas


Tags: confluence-server

email

java

server
Query Profile option in advanced JQL for Jira data center
Asked by Sagar:

Does anyone seen this at advanced jql search - Query Profile

![Capture 2021-05-06 at 15.01.55.png](https://community.atlassian.com/t5/image/serverpage/image-id/142341iA4B209BCB66A5479/image-size/large?v=v2&px=999 "Capture 2021-05-06 at 15.01.55.png")

![Capture 2021-05-06 at 15.02.48.png](https://community.atlassian.com/t5/image/serverpage/image-id/142342i1B9C4CEF0DE64AFC/image-size/large?v=v2&px=999 "Capture 2021-05-06 at 15.02.48.png")

Profile :

```
[70ms] - JQL query profile, thread: http-nio-8080-exec-84 url: /rest/scriptrunner-jira/latest/jqlfunctions/profile; user: username
```

Lucene :

```
*:*
```

Resources :

```
OpSnapshot{name='issue.index.reads', invocationCount=1, elapsedTotal=70210799, elapsedMin=70210799, elapsedMax=70210799, resultSetSize=0, cpuTotal=0, cpuMin=0, cpuMax=0}
OpSnapshot{name='db.conns', invocationCount=1, elapsedTotal=70216260, elapsedMin=70216260, elapsedMax=70216260, resultSetSize=0, cpuTotal=0, cpuMin=0, cpuMax=0}
OpSnapshot{name='db.reads', invocationCount=1, elapsedTotal=70217438, elapsedMin=70217438, elapsedMax=70217438, resultSetSize=0, cpuTotal=0, cpuMin=0, cpuMax=0}
```

Something from scriptrunner related to indexes but not sure what actually it is.


Answers:
author: Benz Kek _Adaptavist_
body: Hi Sagar, that option is only available to administrators only, it is used to profile JQL to find poorly performing JQL queries.

You may read more about it in our documentation here:

* [Query Profiler](https://scriptrunner.adaptavist.com/6.20.0/jira/jql-functions.html#_query_profiler)

Hope the above helps!


author: Sagar
body: Hi [@Benz Kek _Adaptavist_](/t5/user/viewprofilepage/user-id/4038300) Thanks for the reply, that was helpful


author: Sagar
body: Thanks [@Ravina](/t5/user/viewprofilepage/user-id/3947257) I will check this.


author: Ravina
body: This looks like related to the indexing stats as you are on data center this must some internal index sync timings between the nodes.

You can check the index health of the node looks similar to it.

<https://issues.redhat.com/rest/indexanalyzer/1/state?maxResults=100>


Tags: data-center

jira

jql

scriptrunner

server
??????????? ?? ????
Asked by ?? ?:

Confluence V7.3.1

????????

![1620290736961.jpg](/t5/image/serverpage/image-id/142325i7820879573979D06/image-size/large?v=v2&px=999 "1620290736961.jpg")

????????

![1620290806908.jpg](/t5/image/serverpage/image-id/142326i31D904B9FF715F32/image-size/large?v=v2&px=999 "1620290806908.jpg")

![1620290892313.jpg](/t5/image/serverpage/image-id/142330i11C3E16BD6BDD196/image-size/large?v=v2&px=999 "1620290892313.jpg")


Answers:
author: Ollie Guan
body: Hi [@?? ?](/t5/user/viewprofilepage/user-id/4382198) ,

??????????????????????????????Atlassian?????????????????????????

The problem cannot be easily analyzed by the screenshot.

Submit the system log to Atlassian through the service desk or ask for help through Atlassian partners.

**Contact Support Team**

<https://support.atlassian.com/contact/>

**Connect with an Atlassian Partner**

<https://www.atlassian.com/partners>


Tags: confluence-server

server
We want to share an article in Spaces (this Spaces may be internal) to Spaces that is publicly avail
Asked by SUNMI HELP DESK:

We have multiple internal Spaces, but there are many precious knowledge documents that can be opened to customers. So we want to clone the articles of N internal Spaces into our external Spaces. I have tried to copy the article. A copied title will appear in front of the cloned article. This is not what we want. We just want to copy an identical article easily. Please guide how to operate


Answers:
author: Brant Schroeder
body: [@SUNMI HELP DESK](/t5/user/viewprofilepage/user-id/3928640) Have you looked at any of the apps that provide copy ability in Confluence? I would suggest looking at those if the delivered copy does not meet your needs. [https://marketplace.atlassian.com/search?hosting=cloud\&product=confluence\&query=copy](https://marketplace.atlassian.com/search?hosting=cloud&product=confluence&query=copy)


Tags: cloud

confluence-cloud
Clicking into the Confluence search field (at top right) reloads the page
Asked by Tilman Donath:

When some time after I opened a page, I click into the Confluence search field (at top right) to type in a query, the page becomes white an will reload/refresh. So I have to wait a moment for the reload before I need to click again into the search field before I can type.

The reload will not happen if the page was only recently loaded (in the last couple of minutes or so).

I am using Confluence 7.4.3, Google Chrome, Windows 10. My work colleagues with same systems don't observe this behavior on their computers.

Anybody knows what this could be and how to stop it?


Answers:
author: Charlie Misonne
body: That's a strange behavior...

Do you have the same issue when using another browser or a Google incognito window?  
Try disabling any plugins in chrome as well.

comments: author: Tilman Donath
body: Thank you for your reply.

Actually, trying what you suggested I find that I cannot reproduce on purpose what I reported. Just opening a page and waiting a few minutes before clicking the search field, does not cause the reload.

When the reload thing happens again I will try to recall, what I did before. Will let you know.


author: Charlie Misonne
body: Ok! Good to know it's not a permanent issue you're having.


Tags: confluence-server

server
Visual indicator that a space has been archived?
Asked by Philip Colmer:

On Confluence Server, when a space is archived, the pages gain a watermark to make it really clear that the space is currently archived.

That doesn't seem to be the case with Confluence Cloud, or am I missing a setting/configuration option?

Failing that, is there a way to achieve this that doesn't cost any money? :)


Answers:
author: Vronik
body: Hi [@Philip Colmer](/t5/user/viewprofilepage/user-id/510078)

Check it out, It still gives you tricks

[https://confluence.atlassian.com/pages/viewpage.action?spaceKey=DISC\&title=watermark](https://confluence.atlassian.com/pages/viewpage.action?spaceKey=DISC&title=watermark)

Regards


Tags: cloud

confluence-cloud
How can I add a value to a bar graph?
Asked by n.derosa:

I have a bar graph but I don't know how to add the value of the total of each bar.


Answers:
author: Stephen Sifers
body: Hello and welcome to the Community!

I believe you're asking about the Confluence chart macro. Hopefully, this assumption is correct. With that said, once you've created your chart macro, you'll need to feed the macro "data" to populate the chart or bars in this case. You can do this by inserting a table within the chart macro, typically with 'Dates' on Column A and 'Values' in Column B.

Example images of this from our documentation:  
![](https://confluence.atlassian.com/confcloud/files/724765165/724765167/1/1427771701433/Chart+macro+body.png)

![](https://confluence.atlassian.com/confcloud/files/724765165/724765166/1/1427771701340/Chart+example.png)

Further information on this may be found at [Insert the chart macro.](https://support.atlassian.com/confluence-cloud/docs/insert-the-chart-macro/)

Regards,  
Stephen Sifers

comments: author: n.derosa
body: Hi Stephen,

I can make a chart. That's very straight forward, but I want to also see those data point values on the chart.

Please see my attachment.

Is that possible in the chart macro?

Thank you

Nan


author: n.derosa
body: ![Atlassian.png](https://community.atlassian.com/t5/image/serverpage/image-id/143820i7D94A8647EC4F338/image-size/large?v=v2&px=999 "Atlassian.png")


author: Katerina Kovriga {Stiltsoft}
body: Hi [@n.derosa](/t5/user/viewprofilepage/user-id/4382183) ,

You may try to use the [Table Filter and Charts for Confluence](https://marketplace.atlassian.com/apps/27447/table-filter-and-charts-for-confluence?hosting=cloud&tab=overview) app and its [Chart from Table](https://docs.stiltsoft.com/display/public/TFAC/How+to+use+Chart+from+Table+macro) macro.

Here you may see hints with exact numbers while hovering your mouse above the graph line:

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

The Chart from Table macro also provides a wide range of graph types and supports dynamic Confluence macros (Jira Issues, Page Properties Report, etc.).


Tags: cloud

confluence-cloud

graph
I suddenly get {email address} doesn't have access to Jira on datafloat.atlassian.net
Asked by Jason Norton:

I have been using a Jira kanban I created when I started working at this company 6 months ago.  
I have over 700 tickets with various details and attachments that I access everyday to manage my workload and project planning.  
Suddenly, when I go to log in, I get this message:

(my email address) doesn't have access to Jira on **datafloat.atlassian.net.**There are three different email addresses with varying rights that I can use to access this and now they all get the above response.

I am using Chrome.

I have tried using an incognito Chrome window, Firefox, a different computer and all the same results.  
Any ideas on how I can get back on that board?   


Answers:
author: Brant Schroeder
body: [@Jason Norton](/t5/user/viewprofilepage/user-id/4192032) were you able to access your accounts again?


Tags: cloud

confluence-cloud
Delete organisation?
Asked by Arjen Rauwerdink:

I registered a Confluence account. But something went wrong I think. When I open the admin page I can select 'FL Suite' and 'FL Suite (not used)'. The last one I renamed because two identical 'accounts' where generated?

I cannot delete the organisation 'FL Suite (not used)'...

![](https://getsupport.atlassian.com/servicedesk/customershim/secure/attachment/5959073/5959073_image-1.png?fromIssue=4101554)

Is there a way to delete the 'FL Suite (not used)' organisation?


Answers:
author: Shannon S
body: Hello Arjen,

I hope you are doing well! You haven't done anything wrong here. When you create a new Cloud site, the system creates a new organization. It's not possible to delete these organizations.

We have a feature request for that here:

* [ACCESS-81](https://jira.atlassian.com/browse/ACCESS-81) *Allow organization administrators to delete organizations*

If you want to hide the organization, the workaround is to create a new email user and add that user as the new org admin. Then, log in with the new email, and remove your primary user as the org admin. I understand this isn't perfect, but it should save you from confusion in the future.

I hope that helps, but let me know if you have any trouble or questions.

Take care,

Shannon

comments: author: Arjen Rauwerdink
body: Shannon, thanks for your reply!


author: Arjen Rauwerdink
body: I also found a simpel workaround: [Transfer products to another organization \| Atlassian Support](https://support.atlassian.com/organization-administration/docs/transfer-products-to-another-organization/) This worked for me.


author: Shannon S
body: Hi Arjen,

You're welcome, and thank you for sharing what helped you! :smile:

Take care!  
Shannon


Tags: cloud

confluence-cloud
how to see the list of notification emails I sent using confluence ?
Asked by Jay:

how to see the list of notification emails I sent using confluence?

Don't tell me its not possible bc I know it is.


Answers:
author: Brant Schroeder
body: [@Jay](/t5/user/viewprofilepage/user-id/4381625) Can you elaborate on what you want to see? Are you talking about emails that went out because you made a change to a page or added a comment?


Tags: cloud

confluence-cloud
I want to access MMSOC- XPRO but cant find any documents, cant you point me in the right direction
Asked by carolyn waters:

Is xpro on the confluence site, That's where I'm looking for it. I enter the search criteria

MMSOC_XPRO, it will bring me up to a document pages, but not specifically to x-pro


Answers:
author: Nic Brough -Adaptavist-
body: I suspect Confluence is being used to document whatever mmsoc-xpro is and you've clicked on "help with Confluence" rather than "help with mmsoc-xpro"

I'm afraid you'll need to ask the authors of the docs, we're not them.


Tags: cloud

confluence-cloud
Users shouldn't be able to see who else is the page shared with ?
Asked by Jay:

How do i make sure that the page that is shared among different people, they can't see who else is the page shared with ?


Answers:
author: Brant Schroeder
body: [@Jay](/t5/user/viewprofilepage/user-id/4381625) Welcome to the Atlassian Community. Confluence is software that is designed for collaboration focuses on supporting this transparently. I am not aware of any way to prevent this information from being seen and I think it goes against the core of what it was designed to do.


Tags: cloud

confluence-cloud
Can Confluence search filter settings be saved for future use (next time you search e.g.)?
Asked by Bartt Richards:

Let's say I want to just search for a topic in the forum section or comments on certain pages. The filters can be set for an initial search. But if I close the search and then want to try another keyword, I would like the same filters to be in place. Is this possible?


Answers:
author: Thiago Masutti
body: Hi [@Bartt Richards](/t5/user/viewprofilepage/user-id/4381566)   
Welcome to the Atlassian Community.

Confluence doesn't have a feature to store your last search, nor to save it as a filter (as Jira).

What you can do is to save the URL after you perform a specific search, since the search syntax is stored there.

I hope that helps.

Kind regards,  
Thiago Masutti


author: Robby Holtmann_IntraFind Software AG_
body: Hello [@Bartt Richards](/t5/user/viewprofilepage/user-id/4381566) ,

"[iFinder Confluence Search](https://marketplace.atlassian.com/apps/1220508/ifinder-confluence-search?hosting=server&tab=overview)" meets your requirements. In addition, you can use multiple search tabs and there is also an own dashboard available for the user. There you can find your " last searches ", " saved searches " and " favorite documents ".  
iFinder Confluence Search is an alternative powerful search engine for the standard Confluence search (coexist). You can find more information about it[in this article](https://community.atlassian.com/t5/Marketplace-Apps-Integrations/Enterprise-Search-for-Confluence/ba-p/1584172).

Best,

Robby


Tags: confluence-server

server
Why would one Space not adhere to the Content by Label macro?
Asked by Leah Eaton:

UPDATE 5/10/21 - The space containing the label that was not working was assigned a label of software-project. This was the only space in this collection of pages that was not working. I changed the label to documentation and it now pulls the title - not rich content, but at least it is rendering the pages with the label specified in the macro.

_________________________________________________________________________________________________

I have a Confluence space that consists of a collection of pages representing other various spaces. Each page uses the Content By Label Macro. This space serves as a collection spot for a user to see all pages using a particular label across the organization in one place. I have recently added a page to represent the label content for a new space we just added, but the macro is not working.

If I add the new space as a filter to an existing page where the macro is working, the macro displays nothing. Once I remove the new space as a filter, results from the other pages return.

I have to wonder if there is a space setting or restriction that would prevent the Content By Label macro from pulling labeled pages and working as expected?

I'll try and express it in another way as well--

MySpace

* Page 1 - uses content by label macro filtering from to Space A (working)
* Page 2 - uses content by label macro filtering from Space B (working)
* Page 3 (new) - uses content by label macro filtering from newly created Space C (failed)

All pages use the same label in the content by label macro. I've tried adding Contributor and Created to the filters, but it appears that absolutely nothing is coming from that newly created Space C, which leads me to think there may be something in how it was created that is restricting the macro to work. Note: I did not set up the newly created Space C and the person that did is on PTO (of course).

Thanks in advance for any help or suggestions provided.


Answers:
author: Brant Schroeder
body: [@Leah Eaton](/t5/user/viewprofilepage/user-id/4163044) Welcome to the community. Is it working now the way you would expect it to? If not can you share screen shots of what is working and what is not?


Tags: cloud

confluence-cloud

macro
How can I hide or delete the voter column in multi-vote macros?
Asked by Rona Yuthasastrakosol:

I am trying to create a survey using the multi-vote macro, but I want the responses to be anonymous. How can I delete the "Voter Column", or at least hide or lock it so survey takers cannot access it?


Answers:
author: Christian Treubel _TNG_
body: Hi Rona,

I assume you are talking about Multivote\&Enterprise Survey \[1\]. That's not possible with the multivote macro in the App, however you can use the Survey macro and that should do it. You can lock the answers, so that survey takers can't read them, but creators still can or you can completely anonymize them so even survey creators can't see them. The documentation can be found here : <https://tngtech.atlassian.net/wiki/spaces/VOTE/overview>

If you have any further questions feel free to ask.

Disclaimer: TNG is developing the App Multivote\&Enterprise Survey

\[1\][https://marketplace.atlassian.com/apps/1210786/multivote-enterprise-survey-confluence](http://%20https://marketplace.atlassian.com/apps/1210786/multivote-enterprise-survey-confluence)

comments: author: Rona Yuthasastrakosol
body: Thank you! Unfortunately, my organization either does not have access to the Survey macro, or they have not given users access to it. We only have the ability to add the Multivote macro to a page (our internal Wiki pages).

I may have to just grin and bear it!


author: Christian Treubel _TNG_
body: Hi Rona,

the survey feature is relatively new (25. Nov 2020) and is in the paid part of the app. Either you have an old version or you are using the free one.

Perhaps you get lucky and get it with the next update :)

Have a great day!


author: Rona Yuthasastrakosol
body: I'm fairly certain it's not the free version, just because of the size and type of organization I work for, but because of the type of organization, the update probably won't go through for another year! Ah, government!

Thanks again for your help. At least now I know what to ask for, and I can beg for a speedier update!


Tags: cloud

confluence-cloud
When adding the Task Report macro to a page the other tabs disappear.
Asked by Colton Freeman:

I am trying to set up a Confluence page for reporting to the team. When I add the Task Report macro to an AUI tab within a tab container it gets rid of all the other tabs I have. For example I have tab 1 and 2 with random macros. I add Task Report in tab 3 and then tab 4 and 5 are other random calendars and such. All the tabs disappear because I add that to tab 3. If I move the Task Report outside of the AUI Tab Container then the tabs reappear. Any ideas on why this is happening?


Answers:
author: Colton Freeman
body: Disregard, It was a java script error.


Tags: cloud

confluence-cloud

macro

task-report-macro
How to change the URL of a confluence page?
Asked by rbendapudi:

I have created a page in confluence and wanted to edit it's URL to a meaningful one, instead of the automated URL, how can I do that?  
Please advice.

Thanks!


Answers:
author: Pramodh M
body: Hi [@rbendapudi](/t5/user/viewprofilepage/user-id/4381479)

Welcome to Community!!

We can't edit the URL that is generated for each page in a Space.

You have the option of using Tiny URL if you'd like!

For sure, it needs Space and Page ID to navigate to the page in the Confluence site.

Thanks,  
Pramodh


author: Alexander Bondarev
body: Hi, [@rbendapudi](/t5/user/viewprofilepage/user-id/4381479) !

As I know, it is impossible.

But you can create a tiny link to your page:

"Share" =\> "Copy link".

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


author: Vero Rivas
body: Hi [@rbendapudi](/t5/user/viewprofilepage/user-id/4381479)

Look at this post

<https://confluence.atlassian.com/conf59/configuring-the-server-base-url-792499673.html>

Cheers


Tags: cloud

confluence-cloud