I want to create issues on the basis of customfield value of a field type Radio Button.
Also, Additional issue actions gives error in the log saying that issueInputParameters is not defined in groovy.
Please help, Thanks in advance.
Regards,
Sumit
You can access the radio button value like this cfValues['radio button field name'].value. For the additional issue actions please share your code, so that we are able to help you.
Hi Henning,
cfValues['radio button field name'].value is working.
Below are the steps to replicate the 2nd issues :
If you add scripted post function Clones an issue and links there is a option of setting issue input parameter like Set a issue summary, Set Custom field etc
When I am clicking on the existing option of set issue summary a code get populated with following code : :
issueInputParameters.setSummary('new summary')
issueInputParameters.setSkipScreenCheck(true)
When I am executing the transition I am getting the following error in the log :
2014-01-03 11:16:21,768 http-bio-8080-exec-10 ERROR sumit 676x2094x1 1pepujq 127.0.0.1 /secure/WorkflowUIDispatcher.jspa [onresolve.jira.groovy.GroovyFunctionPlugin] Error executing post-function
javax.script.ScriptException: javax.script.ScriptException: groovy.lang.MissingPropertyException: No such property: issueInputParameters for class: Script5
at org.codehaus.groovy.jsr223.GroovyScriptEngineImpl.eval(GroovyScriptEngineImpl.java:117)
Jira Version 5.2.10 & Script Runner 2.1.15
Please let me know if anything else is required.
Thanks,
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I took a look at the source, it seems the issueInputParameters doesn't exists for this built-in postfunction. You can use issue to access the new issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thanks , it worked using issue
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Hennings,
Is there a way to access the parent issues values as well ?
Thanks,
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't think so, not within the additional script. In the condition, you can access it via "issue".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks a lot .. :) it helped .!!
Regards,
Sumit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.