I'm on Jira version 7.6.2 and ScriptRunner 5.5.5. I'm trying to create new issues via the built in clone during post function and change issue type at the same time. Both issue types are custom types and I don't get an error. The workflow reports No failures in the last 15 executions, and yet, no issues are being created. ScriptRunner settings are as follows:
-----------------------------------
CONDITION
issue.projectObject.key == 'EPMO'
issue.issueType.name == 'EPMO Project'
TARGET PROJECT
Same project.
TARGET ISSUE TYPE
Phase
FIELDS TO COPY
Custom (both issue types use the same screen and have all the same fields)
ADDITIONAL ISSUE ACTIONS
issue.summary = "Initiation"
issue.description = 'Auto generated Jira issue for project Initiation tasks.'
ISSUE LINK TYPE / DIRECTION
split to
-----------------------------------
The similar built in post function for creating subtasks works like a dream, but no go on the cloning. Any ideas what might be wrong?
Do both issue types use the same workflow as well as fields?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
One of the fields I'm copying over with the issue is a custom database field. Not sure if that makes a difference or not.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Very odd, but if I use another custom issue type in the same scheme that has a one word name "Project", rather than the one called "EPMO Project", it works. Any idea why?
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 know, this sounds like a very specific problem and could well be a bug. But as it's failing, I would expect to see something in the log that tells us what is going on.
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.