Comments
-
Hi @Nicolai Sibler , Sorry for the slow reply... I was on holiday. All values with a dash or underscore remain in the old field (because they must be groups) and all values without a dash or underscore are transferred to the new field (because they must be individual Users). Yes, I think you have it exactly correct. 😃 I…
-
Hey @Nicolai Sibler, Thanks for the question! think this should be possible, but it would help to know exactly which third party app it is. Here's some sample code with comments that you would use in the Code Transform field. import com.atlassian.confluence.xhtml.api.MacroDefinition macroTransform = { MacroDefinition macro…
-
Something we've considered is the use-case of wanting to replace one macro with another macro entirely. We believe it should be possible to do within the Code Transform field... but we're not sure how common this use-case is. Has anyone ever needed to completely replace a macro with another macro?
-
Hey Lennard, Yes, this is definitely possible! I actually just published a blog about this on our website. Our use case is slightly different (we have a listener in Jira that invokes a script in Confluence), but you should be able to apply the same principles. Do you want to give the blog a read and see if it's what you're…
-
Hello Shobhit, We have an example on our website of how to create a Listener that posts to Slack whenever an event occurs. See that example here: https://scriptrunner.adaptavist.com/latest/bitbucket/StashEventHandlers.html#_post_to_em_slack_em_when_a_repository_is_forked The most recent release of ScriptRunner also Slack…
-
Hi @Sebastian Butterweck , Validating and then executing seems to work for me: import com.onresolve.scriptrunner.canned.confluence.admin.CopySpace import com.onresolve.scriptrunner.canned.confluence.admin.model.CopySpaceCommand import com.onresolve.scriptrunner.runner.ScriptRunnerImpl def sourceSpace = 'ds' def targetKey =…
-
Hi Jonathan, I suppose I don't exactly understand your setup. You say you have a 'Select2' Dropdown Picker created by a Confluence ScriptRunner Macro, which gets the JSON Metadata from a Confluence ScriptRunner Rest API (which is a External MS SQL Stored Procedure). What exactly is contained in the JSON Metadata? It sounds…
-
Hi Kurt, I agree, this would be nice to have. Support for event listeners working with 3rd party plugins is something is definitely something we want to implement one day. We have an open issue in our backlog here: https://productsupport.adaptavist.com/browse/SRPLAT-1339 I'd suggest following that issue so you can receive…
-
Hi Dominic, This is awesome! I managed to use your code to get this working in my instance: I will share this with the rest of the ScriptRunner for Confluence team. We absolutely love to see all the unique ways that people are utilizing our app. Regards, Josh Software Engineer, ScriptRunner for Confluence
-
Hi Nicolai, I'm sorry to hear you are experiencing this issue. I've tried reproducing this but the Advanced Space Functionality seems to appear as expected. If you've ensured all permissions for your users in the space are correct, I would highly recommend opening a ticket through our Service Desk support portal so that…
-
Hi Dimitrios, We are aware of the exception being thrown whenever the Old Content Notifier job is ran manually. We have created an issue in our backlog here: https://productsupport.adaptavist.com/browse/SRCONF-1413 If you would like to go ahead and watch that issue, you'll receive a notification whenever the bug has been…
-
Hi @ABoerio Thanks for sharing this script! I will pass this along to the rest of the ScriptRunner for Confluence team. We enjoy seeing how our users are utilizing SR - it is insightful for us. 😃 Regards, Josh
-
Hi @Simon Neuville I'm an engineer on the ScriptRunner for Confluence team, so I was aware of the particular changes here. As far as I know, there really isn't a source of information that you could track to manage these changes. Like you said before, your use case isn't officially supported. That being said, this script…
-
Hi, You're correct about the simple if-clause. Writing those can you help you reduce the amount of work that the listener needs to perform every time it is triggered. With regards to dev environment testing, that is a good question. You could write a script that simulates thousands of issue updates being executed. For…
-
Hi Andreas, This depends on a number of considerations, but mainly: * How much computation each listener does each time it is invoked * How frequently events that trigger the listeners get fired With regards to the first point, you should be able to limit the amount of computation by writing conditions (depending on your…
-
Hi Simon, You are correct - there were significant changes to CopyTree within the last couple of releases. You might try changing your endpoint code and running CopyTree like this: import com.onresolve.scriptrunner.canned.confluence.admin.copytree.CopyTree import…
-
Hi Daniel, I've just read over your support case that you previously made through our service desk support portal. This line of code that compares the space key may be wrong: searchResult.spaceKey == "KPKQMBAR" The space key might be the lowercase letters "kpkqmbar" instead "KPKQMBAR", so I'd suggest just doing this:…
-
@Matthias Born I've backlogged this issue here: https://productsupport.adaptavist.com/browse/SRCONF-1311
-
Hi Matthias, I have also noticed that the macro can't seem to find blueprint templates. That's probably something we need to investigate further. However, a workaround I've found is to simply go to Space Tools -> Edit the specific template -> Save. You don't need to make real changes to the template, but editing and saving…
-
@Thomas Hardin I don't have an exact example for that use-case but it would be similar to the one above. You could set up a Script Listener that fires on the Issue Updated Event. The code might look something like this: import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.issue.ModifiedValue…
-
Hi @Maria Bonello Are you still having this issue? If you are, could you please a support ticket through our support portal here: https://marketplace.atlassian.com/apps/6820/scriptrunner-for-jira?hosting=server&tab=support Regards, Josh
-
If I remember correctly, you can also do something like this if you want your own custom HTML: description.setHelpText("<a href='http://google.com'>Google</a>") For example, that should place a link to Google under the field on the form. Regards, Josh
-
Hi Heshan, You can use the setError() method for the field. See https://scriptrunner.adaptavist.com/latest/jira/behaviours-api-quickref.html Regards, Josh
-
Hi @Bojana Vasic , You should be able to simply modify the condition to check the action name to see if the "Assign Issue" action has been pressed def commentField = getFieldById(getFieldChanged()) if (!getActionName() && getActionName() != "Assign Issue") { // check if on edit screen commentField.setHidden(true) } Perhaps…
-
Are you sure you have the right project key? For this line, you have the project key as "value" def destinationProject = ComponentAccessor.projectManager.getProjectObjByKey("value") import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.issue.MutableIssue import com.atlassian.jira.project.Project…
-
Hi Madhi, Yes, the error seems correct. If you are doing this in the script console, you need to get the issue that you want to work with. Something like this: import com.atlassian.jira.component.ComponentAccessor def issueManager = ComponentAccessor.issueManager def customField =…
-
Glad to hear it worked, Neil. Thx for using ScriptRunner! Regards, Josh
-
Hi Neil, Unfortunately, I don't have access to Jira 6 so I am not able to test the script in your exact environment. There were an incredible number of changes between 4.1.3.29 and the current version. Perhaps try this: import com.atlassian.jira.component.ComponentAccessor def optionsManager =…
-
What exact type of field is "ParticipationTypeCF"? Is it just a normal Select List custom field?
-
Hi Neil, What version of ScriptRunner/Jira are you using? This is the exact script I just tested on v5.4.36: import com.atlassian.jira.component.ComponentAccessor def optionsManager = ComponentAccessor.getOptionsManager() def ParticipationTypeField = getFieldByName("SelectListA") // your field name here //Participation…