Comments
-
SMTP is the wire protocol by which any application speaks to the SMTP mail server, for sending email. The error queue is not on disk or in database, it's in memory, so if you restart jira it's gone. Best way to work out the problem is to turn on mail debug logging (see atlassian docs), which will tell you if the connection…
-
Looks OK. When you uncomment the log line, do you get the right output for newOption? Also you should check that tgtField is present before you go on and try to set it.
-
Multi select cascading list is not supported by the behaviours plugin, but you should be able to use it fine with simple scripted validator or any script validator function. I'm not really sure what you're saying is not working, probably best to open a new question.
-
Also please see the examples: https://scriptrunner.adaptavist.com/4.1.3-SNAPSHOT/jira/recipes/workflow/validators/simple-scripted-validators.html#_validating_cascading_selects
-
I just tested this and it worked fine... can you attach a screenshot of the workflow function configuration.
-
I'm not sure what plugin you are talking about... either way, if cfValues is not available, you need to get the cf value yourself, eg: def customFieldManager = ComponentAccessor.getCustomFieldManager()def customField = customFieldManager.getCustomFieldObjectByName("Release - Stream")def cfVal =…
-
Hi bryan, jira api seems to have changed... I updated my answer.
-
Yeah, that's problematic. Not sure if there is an outstanding request for this in the behaviours plugin. Note also somehow I missed two crucial question marks in my line above - without these you will get a NullPointerException if the first part of the cascading select is empty.
-
Update 22 Sep 2015: There are Simple Scripted Validator examples with cascading selects, here: https://scriptrunner.adaptavist.com/4.1.3-SNAPSHOT/jira/recipes/workflow/validators/simple-scripted-validators.html#_validating_cascading_selects The problem with that code is that it retrieves the issue from the database, and…
-
That code is for the script runner plugin... is that what you meant?
-
Responding to your comment, there is an example of checking the values of cascading select lists here: https://studio.plugins.atlassian.com/browse/GRV-42 So if cfVal.getAllValues()[1] is null you can throw an InvalidInputException.
-
No problem ;-)
-
I should really start charging for my services ;-) But as it happens, the latest version of the script runner has this available as a post-function or listener: https://studio.plugins.atlassian.com/wiki/display/GRV/Listeners#Listeners-AddWatcher Two choices: 1. Add it as a post-function to the issue create event... you…
-
300 is too many, 100 is too many... you have a plugin that is leaking database connections. If you install the java melody plugin, it will show you all the database connections, along with stacktraces from what created the connection. Using this, you can find out which plugin (it probably is a plugin) is creating them.
-
You can, but I only get around ~50% of the mails that I should do for the tags I'm following.
-
And hopefully one day you will be able to subscribe to tags such that you actually get all the mails from the tag!
-
If you prefer create a ticket at https://productsupport.adaptavist.com/servicedesk/customer/portal/2 and we can schedule a web conf to get to the bottom of it.
-
Can you check all the plugin modules are enabled? Have you tried things like restarting etc?
-
what versions of ScriptRunner and JIRA?
-
I don't understand it. Is it possible to try to use curl to hit tomcat directly, rather than going through your reverse proxy? Is it possible it could be blocking it? Do you have definitely have the jira-administrators group?
-
"Data Center" is clustered jira, I think you would know if you were using it. Did you check the application logs for errors?
-
are you using Data Center?
-
Can you try to add a new one and click the example which is called "simple get" or something, then submit. That should give you a link "doSomething" which you can click from the browser. Can you try that so we can get a bit further.
-
Script runner has a built-in script for importing values. You just put them in a text area one per line, select your custom field context, then import: https://studio.plugins.atlassian.com/wiki/display/GRV/Built-In+Scripts#Built-InScripts-BulkImportCustomFieldValues
-
It might be easiest to change your package to: com.onresolve.jira.groovy.user Otherwise, try importing: import com.onresolve.jira.groovy.user.FormField I don't think you will need any other imports. IIRC when you use a script it defaults to that package... can't check the code right at this minute.
-
Hi... Remove the getFieldChanged(), and get the field by name as with the other ones. Put the script in a file. Attach the same validator (all using the same file) to all three fields whose value is considered when creating your calculated value.
-
It sounds like you want one or the other of script runner or behaviours plugin, not both. If you want to see the field in the form as it's being edited, with real time updates, use behaviours, or write your own javascript. But the code above needs to be rewritten. Eg: def cfFreq = getFieldByName("Frequency") //…
-
You can use properties... they're not that flexible in that you can't use JQL query on them unless you write your own JQL function. But they should be fine if you just want to display an additional value or use it in a report. Sample: import com.atlassian.core.ofbiz.util.OFBizPropertyUtilsimport…
-
that has been fixed, either in the latest version, or the version due to go out soon.
-
It does have that option... https://jamieechlin.atlassian.net/wiki/download/attachments/1212418/2013-05-10_1430.png?api=v2