Hi
I added to the postfunction so that a subtask is created when the checkbox option is
selected using the scriptrunner's create a subtask function in the case of a Create issue in
the workflow. There are a total of 8 subtask creation functions above, and after that, by
using the Clone an issue, and links function, the issue has been implemented to duplicate
the issue in another project. However, after cloning, the Parents Task becomes a link, but the
subtask is not. Is there any way to solve the above problem?
I am also using JMWE addon besides Scriptrunner.
My Jira version: 8.3.1
Scriptrunner version: 6.15.0
Summary scenario
1. Create Ticket in JSM Project
2. Subtask creation according to the option selected in the checkbox when ticket is created
3. The created Ticket is a JSW Project, Clone an issue link
4. In JSW Project, only Parents Tickets are linked.
Expect result
Clone after linking with subtask
Hi @sm.park ,
It could be the clone and link issue post-function only recognise the parent issue id.
You can try this option by putting the clone issue script in the "Additional issue actions" field. So, when the create subtask post-function executed and clone and link the issue to the subtask automatically.
(disable the clone and link issue post-function while testing)
In the clone and link issue script, you can retrieve the subtask issue key and apply to the script, for example:
def issueToCloneKey = "PROJA-1"
to
def issueToCloneKey = issue.key
I hope this helps.
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.