Discussions
-
DIY REST API to update Customer Request Type for issue
Requirements This article is for JSM Data Center with ScriptRunner. You will need scripting experience. Background When I first tried to update the Customer Request Type (CRT) field with a script, it was a challenge, to say the least. There's a kind of key value that it stores for the CRT field for an issue, not an ID, not…
-
Jira Workflow Transition Types
Introduction While studying for my ACP-100 exam (Jira Administration for Data Center and Server, at the time of writing this article), I came across the names of 3 different Jira workflow transition types (there may be more!), outside of the usual one status -> transition -> one status. I had a hard time tracking down much…
-
Get spaces by keys with the Confluence API Part 2
Continued... As promised from Get spaces by keys with the Confluence API article. below are the methods in a class that I created and examples of how to call them so that they're reusable. I decided to create a separate article since the other one would have gotten huge and confusing. Note You can call your package…
-
Why does code disappear when in Code block macro?
Running Confluence Data Center v7.13.2 (and some plugins, so who knows if they have anything to do with this) Created a Code block macro and left the default settings. Inside the macro body I put: c: When I preview or update and view the page, the code block is blank but has a border, so I can tell where it is. When I edit…
-
How to see which comments are visible only to a group
I'm trying to delete a local Jira group. When I try to do so, I get this message: There are comments that only this group can see. Deleting this group would make those comments invisible. How can I see those comments that are visible only to that group? If there is one comment, then I'm ok with deleting and moving…
-
How to use replacement for EditUserEditorSettingsPage to disable Autocomplete
Using ScriptRunner in for Confluence 8.0.2 Data Center. I finally found the class to disable Autocomplete for a user in their user settings, at least I'm pretty sure that's what it's for. com.atlassian.confluence.pageobjects.page.user.EditUserEditorSettingsPage And, of course, it's deprecated. :( It says: Use…
-
How to prevent user group from creating/editing a comment and Likes in Confluence
Requirements * Allow a certain user group to only View comments. No:* Creating * Editing * Replying * Liking * Resolving * or any other interaction besides viewing * Applies to all types of comments in all places* Bottom of page * Inline * In Notifications area * From email notifications * Pages and blogs * Anywhere else…
-
Get screen list for custom field with ScriptRunner
Background We are performing a cleanup of our gigantic Jira Data Center instance (v9.2.0). This particular piece is to cleanup custom fields with global contexts and assign specific projects to the contexts. We have thousands of fields, which we're also cleaning up to get rid of. Some of the custom fields have hundreds of…
-
How is a field not on screens getting a value?
We have a very large instance of Jira Data Center v8.20.10 and JSM v4.20.10. Scenario: * There is a field that is on no screens. * The field has one context associated for one specific project and a global context (all other projects). * Both contexts have the default value of "ABC." * There are almost one million issues…
-
Get spaces by keys with the Confluence API
Audience This article is for users of the Confluence Java API in ScriptRunner or other places the Java API may be used. The article does not apply to the REST API. User Macros Sorry, but I am still at a loss as to how to get a space object in Velocity in a User Macro. If you know, please share in a comment. Overview…
-
Kudos dashboard blocked by company
Just wanted to let somebody know that the Kudos "dashboard" is blocked by the company that I work for (I'm pretty sure), so I'm not able to see some things on it. This might be happening to some other people, too. I can see these errors: Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote…
-
How to update Space Description with ScriptRunner
I've tried working with the SpaceDescription object, but it doesn't actually contain what's in the space's Description field found on the Overview screen of a space. It has the name of the space, version, and a long number, which I can guess as being the space ID or maybe a date. I can't seem to find any other space…
-
Documentation for DatabaseUtil?
Does anyone know if there is full API documentation for the ScriptRunner class: com.onresolve.scriptrunner.db.DatabaseUtil? The Adaptavist documentation links to groovy.sql.Sql , but it's not the same thing. The Groovy documentation is somewhat better, but I don't think it's the same as the Adaptavist class. I haven't…
-
In User Macro Velocity - How to use ContentService like PageManager?
I see this post about How to use ContentService instead of PageManager?, which is great for when I need to use ScriptRunner. But how do I do the same thing inside of a custom User Macro with Velocity? I can't figure out how to do the Expansion part. There is no documentation. I tried something like this, but I knew it…
-
Are Dynamic Forms available in ScriptRunner for Confluence like in Jira?
I really like using Dynamic Forms in script runner for Jira, but I was disappointed when I tried to use them in ScriptRunner for Confluence and couldn't find documentation. Does anyone know if Dynamic Forms is available in ScriptRunner for Confluence? I'm on Confluence 7.13.2 (Server) and ScriptRunner for Confluence 6.32.0.
-
Anyone Else's Edit Version Differ after Updating Confluence page via REST API?
Length of Issue: I'm not sure when it started, but it's been at least months if not over a year, and we've been through a number of version updates with no change to the behavior. Currently using Confluence 6.6.0 (server). Description: When I update a Confluence page via the REST API, the normal page view looks fine. It's…
-
Add Request Participants field to agile board Issue Detail View
I've looked for but cannot find anything about this issue. Maybe I just missed it, but I'm wondering if it's got something to do with the way our instance is configured. I cannot add the Request Participants field to the Issue Detail View of an agile board. The field does not appear under General fields, Date fields, or…
-
New line in Behaviour text using Dynamic Form on Service Desk Portal field?
There are a lot of layers to this one, so please bare with me. Everything works great up until the point I try to view the text in a JSD Request type field. * I've got a script saved as a file in the Jira ScriptRunner Script Editor. * The Script has code to create a dynamic form short text field. * That field is used to…