I've tried everything in the sun and cannot for the life of me get the Create Subtask post-function to work using Script Runner.
The user executing the transition has permission to create issues.
The target subtask is a valid issuetype in the project.
The workflow it's using is the classic workflow.
The field configuration scheme for the issue type is also the default and has no restrictions.
There's nothing special in the actual post function itself, just a 'Create Subtask' task.
I looked in atlassian-JIRA and could not find anything helpful other than:
2015-09-30 09:52:15,368 http-bio-443-exec-24914 ERROR awhite 592x7901709x3 19ulta1 172.27.88.168 /secure/CommentAssignIssue.jspa [scriptrunner.jira.workflow.ScriptWorkflowFunction] Script function failed on issue: HREO-15, actionId: 51, file: null
Any ideas?
Have you tried bob swift JIRA create on transition? It allows you to create tasks and sub tasks on transition quite easily. Great add on.
After the log message you posted there should be a stack trace - is there not one?
Is HREO-15 the parent issue?
Can you attach a screenshot of the configuration of the workflow function.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
https://www.dropbox.com/s/mbkdcbk2snmvt64/workflow1.PNG?dl=0 https://www.dropbox.com/s/tbj9mj4b2zsbcmi/workflow2.PNG?dl=0 I was unable to find any other error message in atlassian-jira.log. And yes, HREO-15 was the parent issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you set the log level to debug: https://scriptrunner.adaptavist.com/latest/jira/getting-help.html#_support_requests - then doing the failing transition, then post the whole log. If it's private you can create a ticket at https://productsupport.adaptavist.com/servicedesk/customer/portal/2
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
change the DEBUG to WARN and rerun.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Do you have a validation on your subtask create step that requires an Assignee?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi there, Nope. Only: Only users with Create Issues permission can execute this transition.
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.