Comments
-
I was a fan of the books that The Witcher is based on ... never played the game. I was relatively happy with it. My wife (also fan of the books) was a little disappointed as far as the faithfulness of the adaptation. I disagree with her. I think it was very well done.
-
That is something that often bugs me ... in such errors, it's impossible to know which of your in-line script is causes the error. The only way around that would be to have 100% of your script in individual files. The next thing to do it to use the script registry built-in script, switch to the behaviours tab and look at…
-
The Expanse and Ray Donovan are also on my list (amongst so many others).
-
I'm assuming you have this code in the Severity field since you're getting the field with getFieldChanged(). If you don't, then that's the root of your issue. You need the server-side script ON the field that you want to respond to user action. If you have multiple fields that could trigger your action, you need a…
-
My wife and I do pretty nothing but binge-watch. Other than Netflix or Amazon originals, we don't have access to big series, so we wait until the dvd box set is available at local libraries (or available for free online). So we didn't even watch GoT until just before the last season aired ... then binged the whole thing…
-
We haven't yet made the move. But we're starting to hit some performance challenges with jira and I would definitely like to make that transition. Right now, the main reason is to manage costs. But I do think in the near future, the benefits will justify that cost increase.
-
You can't use script fragments, but you can use Behaviours or Script Listeners. Script fragments are used to manipulate the JIRA UI, like added a panel, menu, menu item or adding css and js resources. Behaviours manipulate screen fields and their data in real-time when the screen is open. Script Listeners can (among other…
-
All the main Jira features are fully accessible without needing confluence. But there are use cases that Confluence is best designed for an there are "hooks" throughout Jira where it makes sense to have the two tools integrated. Looks like perhaps in your explorations, you've clicked this "Pages" link. If you don't want to…
-
Nice job. Yeah I'm not a big fan of working with xml node and the xmlparser. Json is so much easier. I always get tons of "static type checking" errors in the scriptrunner editor. That's because the editor tries to validate your code but is missing information about what the data type of various variable will be. Those…
-
Actually... my finger added the s automatically. It appears that your site has automatic redirect anyway. But I meant riada vs raida (you transposed the a and the i)
-
I think you mean https://jira.riada.io ;)
-
Any configuration and code/script that you typed directly in a code editor (as opposed to pointing to a script file) will be included in the backup. This includes scripted fields and behavior configuration. Most of those settings are stored in the application properties system If you go to the "System Information" page in…
-
All in-line scripts will be included with your database export (whether you use xml export or native db export tools). If you have any scripts stored as files in the <jira-home>/scripts you'll have to make sure you also copy those files.
-
Can you share screenshots of the behaviour mapping and the field configuration screens?
-
That is fairly straightforward to accomplish with a Workflow PostFunction on the "Request Consult" transition. * From the workflow edit screen, click on the transition and go to the post functions. * Click on add post function * Select Script Post-Function [ScriptRunner] and click add * Click on "Clones and issue and link"…
-
Examine the elements in the developer panel of your browser with the Quick Create issue dialog open. Search for the project key you've selected. You should find that there is a hidden form field title projectKeys I think should be able to fetch it with var pkey = $('input[title="projectKeys"]').val() Oh wait, you wrote…
-
You need to either build the URL using the markup syntax or use mkp.yieldUnescaped to have the html interpreted. Read more about the markup builder: http://groovy-lang.org/processing-xml.html#_markupbuilder xml.table(id: "scriptField") { tr { th("Key") th("Summary") th("Status") } results.getIssues().each { documentIssue…
-
So this script is changing the permissions from whatever the old dashboard had to a newly created permission set consisting of only the jira-software-users". If you want to ADD to existing permissions, you need to first extract the permission set from the original dashboard and add the new permission to the set. import…
-
I don't know if there is an api way to get this. I'm sure there is. But I wouldn't know where to start. But failing that, you can get it directly from the properties system import com.atlassian.jira.component.ComponentAccessor import groovy.json.JsonSlurper def props = ComponentAccessor.getApplicationProperties() def…
-
Regarding my earlier comment about the CLB ... I found the cause of my CLB performance. In my various configuration meandering in the GCP console, I ended up with a CLB backend with 2 ports (comma separated): 80, 8080. But the actual server was only listening to 80. When the Google Front End (GFE) would try to connect…
-
Can you share your full code?
-
It wasn't a mistype... I just didn't look a the rest output structure close enough. The array would work took, it just makes finding and accessing individual field items a little harder. Clearly the map is better.
-
Normally, I'd recommend Behaviours and setFieldOptions() for something like this. But that will only work on select fields. It doesn't work on User Picker fields. There is no way that I'm aware of to tap into the built-in user picker fields. So, one way to achieve this would be to have a plain text field and use a custom…
-
I think you can just grab the existing value first then add to it as an array. def linkedIssuesFld = getFieldById("issuelinks-issues") def linkInputFld = getFieldById(getFieldChanged()) def inputIssue = linkInputFld.value if(inputIssue){ def linkedIssues = linkedIssueFld.formValue if(linkedIssues instanceof String){ //if…
-
Again... javadoc is your friend (with recent releases of scriptrunner, just press ctrl-j on the method that's failing). setLoggedInUser in this case. You will arrive…
-
I've had the same issues with the Cloud Load Balancer. I only got through the setup wizard when going directly against the compute engine instance and bypassing the CLB. After that, you can enable the CLB and connect through that with relative success. But it does cause me to worry about the inherent stability of the CLB…
-
The file is stored in a special path under the storePath. storePath/projectKey/bucket/issueKey/attachmentId There is a really easy way to get the correct file path using AttachmentUtils but it's deprecated. import com.atlassian.jira.component.ComponentAccessor import com.atlassian.jira.util.AttachmentUtils def issueManager…
-
There might be a way, but I don't know it. But you could get all the information from a jira issue using the JAVA api. You could start with something like this and refine the output as needed (for example, expand user type fields). import com.atlassian.jira.component.ComponentAccessor def cfm =…
-
Check the javaDoc. You should be able to get it from the PortalPage object def ownerOfPortalPage = originalPortalPage.getOnwer()
-
Ah, maybe you're right... but you could always set the context to the owner and change the permissions that way. ComponentAccessor.getJiraAuthenticationContext().setLoggedInUser(ownerOfPortalPage)