I'm not a groovy programmer, so apologies for anything that is nonsensical here. :) I want to make a macro that I can add to a page that will count the number of reg-ex matches in the content above it and display that count in the appropriate column of the result table. I would like to be able to have one that looks at the…
Hi all! I have a task to dynamiclly add new values to a custom field in Jira. Values should be taken from a Confluence page. How can I achieve this? I have a ScriptRunner for Jira and for Confluence. I use JIRA Server but wasn't able to pick such option during question creation.
I'm attempting to use the Create Page macro from the Script Runner plugin to create a page from template and all of my in page macros on the template seem to be broken in the created page. To reproduce create a template with an Attachments macro on it and use the Create Page macro from Script Runner to create an instance…
Hi All, I am in the proces of linking multiple pages with one parent page. The parent page contains the content of the page and this is copied to the linked pages. (this working as a charm). But now when an image is added (this is a combination of a placeholder and an attachment), the attachments isn't copied. This is…
What I am looking to accomplish is to search a page's body for a specific string using RegEx and then replace that text with an HTML link to be rendered by Confluence Cloud. I am currently doing this is in Server with custom JavaScript in the "custom header/footer" section of the admin interface but I am now faced with…
I am trying to manipulate a Confluence page via Adaptavist ScriptRunner for Confluence and the Java API. Changing the content of the page works as expected but the change ist not correctly reflected in the page history - the content is overwritten with the new version the version count is increased but the old version is…
Hello, I am attempting to create a button that opens a modal within the confluence UI using scriptrunner. I have created a web fragment which seems correct from the documentation. I have attached a screenshot of my configuration. I have linked my fragment to a REST endpoint. The REST endpoint is directly copied…
Hi Atlassian Community, I am working with the Adaptavist ScriptRunner Lock Content Macro as a solution to a problem where we want to hide certain parts of a page from the being visible to all users. The page still needs to be visible for reporting purposes to larger audience, but internal tasks and notes need to be hidden…
Hi community, Can anyone please share a code snippet for a confluence REST EndPoint that adds a given user as a watcher on a given page/content? I've been struggling with the existing documentation and API but couldn't get to a solution... Any contribution would be welcomed! Thanks a lot, Tanya
Confluence 6.4. ScriptRunner 5.2.0. One of the buit in script is to switch to a different user. For auditing purposes: is this logged somewhere? Or can admins do anything in name of another user?
It looks like you're new here. Sign in or register to get started.