youngmon/atlassian-qna huggingface dataset:
Transition validator with a condition
Asked by Neta Knyazhansky Caspy:

Hello,

I'm trying to configure a validator that will check a certain field, and only if the value is x, then the transaction can be made only by members of a certain group.

I have ScripRunner \& JMWE.

Can it be done?

Thanks


Answers:
author: David Fischer
body: Hi [@Neta Knyazhansky Caspy](/t5/user/viewprofilepage/user-id/4963085)

you can use a JMWE Build-your-own Validator with a script like:

```
!issue.customfield_12345 || issue.customfield_12345.value != "QA" || user.groupIds.includes("727f8cab-34e5-4cfe-ada1-b0c8452531f2")
```

where customfield_12345 is the custom field ID of the "found by" field (you can find it on the "Issue Fields" help tab), assuming it's a SIngle-Select custom field, and 727f8cab-34e5-4cfe-ada1-b0c8452531f2 is the group ID (you can find it using the "Lookup group..." button in the editor toolbar)

comments: author: Neta Knyazhansky Caspy
body: [@David Fischer](/t5/user/viewprofilepage/user-id/538255) This is working perfectly!

Thank you!


author: Jack Brickey
body: Rather than Validators you could have two **Conditions:**one for the only in group and the other for field value.

![2023-11-21_09-54-22.jpg](https://community.atlassian.com/t5/image/serverpage/image-id/293014i33514DFB67675627/image-size/large?v=v2&px=999 "2023-11-21_09-54-22.jpg")

comments: author: Neta Knyazhansky Caspy
body: Hi [@Jack Brickey](/t5/user/viewprofilepage/user-id/853369)

Thank you for taking the time to reply.

Can I make them work together?

My use case is that only the QA team will be able to close bugs that were created by them.  
I have a field called "found by", so if the value there is "QA", then only member of the group can close, but otherwise, anyone can close.


author: Jack Brickey
body: Conditions are "and" in nature so if you have both then both must be true. So the logic table is like this...

++QA group++ ++Found-by-QA++ \> ++Able to transition?++

No No \> No

No Yes \> No

Yes No \> No

Yes Yes \> Yes


author: Neta Knyazhansky Caspy
body: [@Jack Brickey](/t5/user/viewprofilepage/user-id/853369) I need to logic table to look like this;

++QA group++ ++Found-by-QA++ \> ++Able to transition?++

No No \> **Yes**

No Yes \> No

Yes No \> **Yes**

Yes Yes \> Yes


author: Jack Brickey
body: You can't do that OOTB. Well you could use Automation to undo the transition if not allowed but that isn't very desirable.


author: Neta Knyazhansky Caspy
body: [@Jack Brickey](/t5/user/viewprofilepage/user-id/853369) I have ScripRunner \& JMWE, can either help?


author: Jack Brickey
body: Yes, I'm sure SR can be used here but I have not personally done this. I recommend searching the community for similar, e.g. "multiple field condition transitions with Scriptrunner" or similar.


Tags: cloud

confluence-cloud
Intending to set-up Confluence on a privately managed AWS server.
Asked by Yash Pradhan:

Hi Team,  

Can you please help me with this, As per the requirement we need to establish Our own DataBase Using Confluence, Secondly is it possible for MAKING OUR AWS DATABASE instead of using Confluence provided database for Security Reasons.  


Answers:
author: Max Foerster - K15t
body: Hey [@Yash Pradhan](/t5/user/viewprofilepage/user-id/4677554)

If you want to run Confluence on your own setup, you will have to look at the data center version of the products. This is not an option for Confluence Cloud. Confluence Data Center lets you decide every aspect of the environment, including which database is used. I'll link you to the documentation article that describes the process for choosing and setting up the database.

* [Database Configuration](https://confluence.atlassian.com/doc/database-configuration-159764.html)

I hope that was helpful. :)

Best, Max


author: Marc - Devoteam
body: Hi [@Yash Pradhan](/t5/user/viewprofilepage/user-id/4677554)

If you plan using a Confluence Cloud solution, there is no option for using a private owned DB.

Atlassian Cloud opportunities are SaaS products.

If you want to host your own Confluence, you would nee to look into Confluence Data Center solution. This is an self hosted installation to hos Confluence.


author: marc -Collabello--Phase Locked-
body: Hi [@Yash Pradhan](/t5/user/viewprofilepage/user-id/4677554) ,

You can't use your own database with Confluence Cloud.
Table Transformer: Check if a column exists. If yes, rename the column.
Asked by Shantharam:

I am using 'Table Transformer' macro to pull out JIRA issues and their status using a JQL.

Let's assume that my query returns 3 issues with following statuses:

1. Defect A with 'Open'
2. Defect B with 'Closed'
3. Defect C with 'In Progress'

Also, I am renaming the columns in my query for some reasons, something like:

```
SELECT T1.'Labels' as 'Project', 
T1.'Count Closed' as 'Closed', 
T1.'Count OPEN' as 'Open',
T1.'Count In Progress' as 'In Progress',
From T1 WHERE T1.'Labels' in (<my customer labels for JIRAs>);
```

And now let's assume that Defect 'C' was moved from 'In Progress' to 'Code Review'. But now the same query returns the error:

```
Column does not exist: Count In Progress
```

This is resulting in frequent page breaks. How can I add a condition in such a way that rename a column only if it exists?


Answers:
author: Stiltsoft support
body: Hi [@Shantharam](/t5/user/viewprofilepage/user-id/3863383) ,

You may use the COALESCE function for the case. In my example I'm sure that 'Text 1' and 'Text 3' columns are always present but 'Text 2' column may or may not be present:

SELECT  
'Text 1' AS 'New 1',  
'Text 3' AS 'New 3',  
COALESCE('Text 2',"") AS 'New 2'  
FROM T\*


Tags: filter

jql

table
Add simple interactive formula
Asked by Sorg, Alexander:

Is it possible to add a simple interactive formula to a confluence page? Let's say the formula is "\[A\] + \[B\] = \<result\>", where A and B are input fields where the viewer can change the values and the result is updated automatically.

Nearly a no-brainer when scripted directly in the webpage, but I only found spreadsheets that can be inserted. These are not formatted beautifully and are a bit over the top for my purpose.

BR,

Alex


Answers:
author: Benno Baumgartner
body: Hi Alex

Maybe you want to have a look at our addon [JavaScript Button for Confluence](https://marketplace.atlassian.com/apps/1231339/javascript-button-for-confluence)

See Chapter Field Support at <https://domasys.io/javascript-button/tutorial.html>

Regards Benno

comments: author: Sorg, Alexander
body: Thank you Benno,

surely an interesting addon, but I'm working on a cloud-hosted company space, and our IT surely is not easy on bying new apps. :-)

Though I might consider it for my private spaces.

BR,

Alex


author: Marc - Devoteam
body: Hi [@Sorg, Alexander](/t5/user/viewprofilepage/user-id/5369315)

Welcome to the community.

No you can't have simple interactive formula.

As Confluence is a wiki application and not a Spreadsheet application.

I'm not trying to offend you, but I see lots of these questions. If any tool could do everything we want why are there different tools?

A tool serves a purpose, just as a car does or any other specific job or action that needs to be done or executed.

comments: author: Sorg, Alexander
body: Hello Marc,

No offense taken. I just saw that there are a lot of useful plugins, f.x. spreadsheet embedding, already available, and from my experience with e.g. WordPress I know that there's so much possible. It's perfectly OK that Confluence doesn't do this out-of-the-box, it might have just been that I couldn't find the best solution, if there's one. :-)

Thanks for your time!


Tags: cloud

confluence-cloud
Can not renew 2 apps Scroll Viewport and Multiexcerpt even after purchasing license
Asked by Heldesk Team:

Can not enter renewal license for 2 apps Scroll Viewport and Multiexcerpt even after purchasing license

Confluence show these in a list, but does not show details to enter renewed license key.

This prevents from performing upgrade to address security vulnerability upgrade.


Answers:
author: Max Foerster - K15t
body: Hey [@Heldesk Team](/t5/user/viewprofilepage/user-id/4088620)

Max here from K15t, the makers of Scroll Viewport. This sounds like a technical issue with the UPM (Universal Plugin Manager), which handles the licenses. Can you make sure that you have the latest version of the UPM installed?

If this is the case, I also recommend that you contact Atlassian Support. Ultimately, only they will be able to help you.

Fingers crossed. :)

Best, Max

comments: author: Heldesk Team
body: Thanks Max, I opened support request, cleared all plugin caches and restarted confluence, running latest supported for my confluence version of UPM, still same thing, not able to see Multiexcerpt and Scroll Viewport details and enter renewed license key there.


Tags: confluence-server

server
Updates in Slack appear from Anonymous user
Asked by Martin Stoyanov:

Hello everyone,

I have opted for the "Slack notifications" option for a certain page in my space with all children pages included (Edits on this page, Comments on this page, Adds a child page, Edits a child page, Comments on a child page)

The feature works great for me as I need immediate updates if a page gets an update and a comment specifically. The only issue is that some of the users appear as Anonymous in Slack:

![slack.png](/t5/image/serverpage/image-id/292956i4BC1A7EB28209956/image-size/large?v=v2&px=999 "slack.png")

I tested with several other accounts that appear just fine and I think it's not permissions related as I tried all options and I get the notification even like this if the person has permissions limited to "Add/Delete comments" only. Also, we checked the Profile and visibility within the Atlassian account and every piece of info is visible to "Anyone"

Your help is appreciated!

Regards,

Martin S.


Answers:
author: Amanda Barber
body: Strange! I wonder if the way the users are provisioned isn't matching them between Slack and Confluence somehow?

I don't see anything in this support article that is relevant, but would be a good addition to the article if you ever identify what's causing it! <https://support.atlassian.com/confluence-cloud/docs/use-slack-and-confluence-together/>


Tags: cloud

confluence-cloud
Generate specified labels in batches based on historical article content
Asked by junli:

How to handle the change when the mysql database table: label, content_label is changed and is not effective in the page? Operation sql: INSERT INTO content_label (ID, LABELID, CONTENTID, OWNER, CREATIONDATE, LASTMODDATE, LABELABLEID, LABELABLETYPE) VALUES (720901, 688132, 65623, '4028ef848b947db8018b947fa9a40000','2022-01-01', '2022-01-01',65623, 'CONTENT');  
![WX20231121-174450.png](/t5/image/serverpage/image-id/292945iF33D6F25E72CBE8D/image-size/large?v=v2&px=999 "WX20231121-174450.png")


Answers:
author: junli
body: Then I added a test label to the page, refreshed the confluence page, and the label inserted into the mysql page was displayed again. As shown in the figure below: Please ask the community teacher what way I can support changing the historical label in sql.  
![1WX20231121-175031.png](https://community.atlassian.com/t5/image/serverpage/image-id/292949i631272FB39A6E509/image-size/large?v=v2&px=999 "1WX20231121-175031.png")


Tags: confluence-server

server
Upload local markdown file via Confluence REST API (PowerShell)
Asked by Antti Nousiainen:

I'm working on a PowerShell script that would allow me to upload a local Markdown file from a path, and create a Confluence sub-page under a parent page and display the file's contents as Markdown.

So far I'm able to create the sub-page under whatever parent or space I like, however, the Markdown isn't displaying as Markdown, just raw text.

I tried going over the REST API docs and tried using both representation types: storage (errors out) and wiki (works but doesn't shows as raw text).

Any ideas on what I'm doing wrong? Been stuck a while on this one...

Here's how the user inputs parameters for the script:

```
New-MarkdownSubPage?-ConfluenceUrl "https://confluence.domain.corp" -SpaceKey "SPACE1" -PageTitle "Parent_Page" -FilePath "C:\Temp\markdown.md"
```

And here's the relevant bits of the script:

```
$parentPageUri = "$ConfluenceUrl/rest/api/content?spaceKey=$SpaceKey&title=$PageTitle"
$parentPage = Invoke-ConfluenceAPI -Uri $parentPageUri -Method "GET"
$parentPageId = $parentPage.results.id
$fileContent = Get-Content -Path $FilePath -Raw
$fileName = (Get-Item -Path $FilePath).Name

$pageData = @{
    type      = "page"
    title     = $fileName
    space     = @{ key = $SpaceKey }
    ancestors = @(@{ id = $parentPageId })
    body      = @{
        storage = @{
            value = $fileContent
            representation = "wiki"
        }
    }
} | ConvertTo-Json -Depth 100

$createPageUri = "$ConfluenceUrl/rest/api/content"
$createdPage = Invoke-ConfluenceAPI -Uri $createPageUri -Method "POST" -Body $pageData
```


Answers:
author: Benno Baumgartner
body: You need to convert the Markdown to Confluence storage Format. Maybe try an addon <https://marketplace.atlassian.com/apps/1211438/markdown-html-plantuml-latex-diagrams-open-api-mermaid>

Maybe a Library for this exists?

Regards Benno


Tags: confluence-server

rest-api

server
published sites are not where they should
Asked by Sebastian Pichler:

Hey,

one of our user figured out a problem while using comala publishing.

When he is publishing sites from the workspace to the space that is set as the destination the sites are not at the exact spot where they are in the workspace. The Sites are on the same level as the homepage from the space and are not visible in the page tree and have to be placed manually where they should be

![Comala publishing.png](/t5/image/serverpage/image-id/292939i357977C6E663ABAA/image-dimensions/343x266?v=v2 "Comala publishing.png")

Does anyone know why this happens?

thanks in advance,

Basti


Answers:
author: Nino Stana
body: Hello Sebastian,  
Thanks for reaching out.

Please check that the pages are direct descendants of the homepage, and that the name of the parent pages is identical.

If the setup is correct and the pages still get published in the wrong hierarchy, let's have a quick troubleshooting session where I can have a better look at your instance.

Feel free to contact me directly at **nino.stana@appfire.com**

Best Regards,  
Nino


Tags: confluence-server

server
Error attachment size
Asked by Steffen Kunnen:

Good morning,

we tried to increase our maximum attachement size from 100MB to 512MB.

We were able to enter it successfully in the General Settings, but a message now appears when uploading that a maximum of 150MB is allowed. Previously this message showed 100MB.  
Does anyone have an idea where the error could be?

Bet regards


Answers:
author: Aron Gombas _Midori_
body: Can you take a screenshot about your configuration form, so that we can confirm that the increased size was entered correctly?

comments: author: Steffen Kunnen
body: ![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/292932iCE74FFAEFEEC2DAF/image-size/large?v=v2&px=999 "image.png")

Thats the screenshot I got sent yesterday by our admin.


author: Aron Gombas _Midori_
body: [@Marc - Devoteam](/t5/user/viewprofilepage/user-id/3796976) is right: on this screenshot, you can see a Jira setting. It has no effect on Confluence.

For Confluence follow this: <https://support.atlassian.com/confluence-cloud/docs/configure-attachment-size/>


author: Marc - Devoteam
body: Hi [@Steffen Kunnen](/t5/user/viewprofilepage/user-id/5369159)

Welcome to the community.

In the screenshot it seems to be you admin has updated the attachment size option in Jira, not in Confluence.

comments: author: Steffen Kunnen
body: Thank you very much. we could solve the Problem.


Tags: cloud

confluence-cloud
How to choose an epic when creating a Jira issue from a confluence page?
Asked by Yochai Maytal:

Currently, when we want to create an issue from a page we:

* Highlight a text
* Choose "Create issue" from the pop-up
* The highlighted text is auto-populated in the summary field
* Can choose the Project, Issue type and write a description

However, any other fields, most importantly parent Epic, but more parameters too, are unavailable. All of these useful and important fields are available when creating an issue from a sticky note in Whiteboards (as explained [by this Atlassian guide](https://intercom.help/confluence-whiteboards/en/articles/6504157-organize-and-explore-ideas-with-sticky-notes#h_93b09c18f6)).

<br />

**How can the same issue-creating window be available in the page form?**

<br />

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


Answers:
author: Michel Neeser
body: Hi [@Yochai Maytal](/t5/user/viewprofilepage/user-id/5366207)

Usually, if you make a field required in the field configuration, the field is automatically displayed in the "Create issue" window you mentioned in Confluence (you can find more information on this [here](https://confluence.atlassian.com/confkb/how-to-make-a-field-visible-in-the-create-jira-issue-dialogue-in-confluence-678560701.html)).

But since it is not possible to make the Epic Link field required (this would have unintended side effects, because it would prevent you from creating issues without an epic), you can't add this field to the "Create issue" window.

I think in general, the purpose of this Confluence feature is more like creating the raw issue with data from Confluence, and then enriching the issue in Jira afterwards.

Hope this helps.

comments: author: Yochai Maytal
body: Thank you [@Michel Neeser](/t5/user/viewprofilepage/user-id/1828853)


author: Michel Neeser
body: You're welcome [@Yochai Maytal](/t5/user/viewprofilepage/user-id/5366207)! Please consider accepting the answer, maybe it is helpful for others as well. Thank you!


Tags: cloud

confluence-cloud
Third party login without Confluence licence?
Asked by Matt:

We want to set up private spaces for our clients, who do not hold a Confluence license, to be able to log-in with a password and access information we'll put in their space/pages.

We would share the URL, they would access with a password, and it would be a confidential space.

Is that possible with Confluence?


Answers:
author: Ste Wright
body: Hi [@Matt](/t5/user/viewprofilepage/user-id/5339273)

Yes it is; you can use Guest licenses (which are free, with up to 5 per paid user) to do this.

Check out these help pages:

* <https://support.atlassian.com/confluence-cloud/docs/invite-guests-for-external-collaboration/>
* <https://support.atlassian.com/confluence-cloud/docs/what-can-guests-see-and-do-on-confluence/>
* <https://support.atlassian.com/confluence-cloud/docs/assign-space-access-to-guests/>

Ste


Tags: cloud

confluence-cloud
How do I copy a space or page in Confluence without changing the original space owner
Asked by Carolyn Hinkel:

When I copy an existing space to a new space, it makes me the space owner and page owner on all of the pages I copied. I am making a copy and expect that the original space and page owners would be retained. I need to do this due to key conflicts with migrating spaces from another instance to a consolidated instance but the admin is not the 'owner' of the content.


Answers:
author: Ivan Lima
body: Hey [@Carolyn Hinkel](/t5/user/viewprofilepage/user-id/3612746), you may want to check <https://confluence.atlassian.com/confkb/how-to-copy-or-rename-a-space-in-confluence-169578.html> to explore options and how you can go about that.

Alternatively, you can move the root page of the source space to a target "empty" space. There are a few steps in between and considerations you need to evaluate, of course. However, it could work for your use case. This way, we can keep page owners, comments, etc.


Tags: cloud

confluence-cloud
How to get Jira Tempo Data
Asked by NewBee:

We are trying to get Jira data to our analytical platform. For that we are using a third-party tool Cdata. With Cdata we were able to pull the Jira information, but Temp details are missing.

I know there are APIs available to get the Jira Tempo data, but I would like to know where we can leverage cdata tool to get the Tempo data rather than going with a custom approach using API calls.

Any help on this topic is highly appreciated.

Thanks


Answers:
author: Vronik
body: Hi

Look at this and check

<https://www.tempo.io/blog/jira-export>

if my answer helped you,   
please mark it as accepted so that others looking for similar issues can more easily find it.


Tags: addon-is.origo.jira.tempo-plugin

cloud

confluence-cloud

tempo

tempo-timesheets
ConfiForms documentation site
Asked by Tim Oldendorf:

The ConfiForms app used to have a pretty good documentation site but I can't seem to find it anymore. Previous links all timeout. Did the site move or does somebody have a link to a working documentation site?


Answers:
author: Tim Oldendorf
body: Nevermind I found what I needed by navigating through the release notes.


Tags: confiforms

confluence-server

server
ConfiForm ListView Filters passed to value views
Asked by Maximilian Herbert:

Hey there

I got the following setup:

Form "customerform"

Field1 "customer"

...

The form saves information about a customer and creates a subpage based on a space template for each entry

In these subpages I want to display the information about that specific customer.   
So I have a multiple listviews in a spacetemplate and in the body of these a lot of valueviews.

I setup the "filter to apply on entries dataset" of the listviews like that: Customer:EmilExample so only the entry of e.g. EmilExample gets displayed. But I somehow have to set this filter up for every valueview within the listview again - is there a possibility to have the filter applied on the listview getting handed to the valueviews withing the body of the listview?  

Greetings Max


Answers:
author: Alex Medved _ConfiForms_
body: Hi

The best filter to apply in such cases is by id

id:\[entry.id\]

This is much more robust

ValueView is an independent and a standalone macro and requires a filter to be applied personally

If you already using the ListViews then use the ConfiForms Field macros instead (inside the ListViews)... not the ValueViews

Alex

comments: author: Maximilian Herbert
body: Hi Alex,

as always thank you so much for your fast and helpfull response - you solved two issues at once :D

The point with the ID is a very good one I missed to do until now.   

Using the Field Macro is working you just have to be careful to enable inline edits in the listview above then.

This really makes it much more easy.  

THANKS!!!


Tags: confiforms

confluence-server

server
getting unknown macro: error
Asked by Himanshu Singh:

Hi Team,

I am getting Unknown macro: error on my confluence screen


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

Edit the page, and remove the broken macro from the content.

Alternatively, re-install the plugin that provides the missing macro, or restore the user macro that was providing it.


Tags: confluence-server

server