Discussions
-
Triggering Multiple Pipelines for One Repository
I have a repository that builds and deploys several submodules. These submodules share some common code defined in shared modules within the repository. I'm trying to un-complicate the current setup, which has multiple other repositories with distinct pipeline definitions that manually clone the source repo and run a…
-
Updating a custom field from a script listener
Users frequently want to move from using a Scripted Field to using a custom field that's automatically updated. This is useful for Jira Portfolio, which, as of this writing, doesn't support calculated fields. It's also useful if you need an automatic value that can be changed via the UI. The question is, how to do it in…
-
Responding to Confluence Events in Jira
At a recent ScriptRunner Champion Hour, I talked about how to respond to events in Confluence to update Jira. The path we demonstrated was to use a combination of an Event Listener in Confluence and REST Endpoint in Jira. The details of using the App Links API are detailed in our documentation for ScriptRunner for…
-
Bulk Updating Page Content in Confluence Server using ScriptRunner
UPDATE: If you're looking to update Macros in pages, give a look to our Update Macro feature and Josh's sweet post about it. One question we get fairly frequently is how to bulk update page content using ScriptRunner. One of the complexities of doing so is dealing with the Confluence storage format, which is an XHTML-based…
-
Copying Page Trees for Regular Users
ScriptRunner for Confluence has a built-in script for copying a tree of pages that's available for Confluence Administrators and Space Administrators, but what if you wanted to create something like that for regular Confluence users? The answer actually requires two ScriptRunner features to work together. First, you would…
-
Transforming body content as well as page title using ScriptRunner for Confluence
Confluence administrators can copy page trees using a built-in script, but that script can do more than just copy the pages as-is. The blank at the end for transforming the title can actually do much more to enhance the new pages. For example, suppose you wanted to replace all occurrences of the term PLACEHOLDER in a page…
-
How to add all users from a Role to the Service Desk Approvers field using Scriptrunner
Was discussing this earlier today, wanted to share with the community. If you're trying to add users from a project role to Jira Service Desk's Approvers field, you can use a ScriptRunner post function to do the job! import com.atlassian.jira.bc.projectroles.ProjectRoleService import…