The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Can I create a Parent Issue from the workflow of Subtask workflow.

Carlos Alvarado
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 2, 2022

Hello,

I am trying to use scriptrunner to create a Parent Issue Type from a Subtask issue workflow, and link the issues. Is this a possibility, or can only Parent Issue Workflows create other Parent Issue ticket?

 

1 answer

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

3 votes
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
August 2, 2022

Welcome to the Atlassian Community!

Sub-tasks cannot exist without a parent, so there's actually nowhere to put such a thing.  You can't execute a transition on an issue that does not exist.

Carlos Alvarado
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 3, 2022

Hi Nic, thanks for the reply. I think I may have provided a confusing question above.

Currently I have a workflow built for Parent issue A-1, and once it have been transitioned to "In Progress", A-1 creates subtask B-1. Therefore, subtask B-1 is existing within Parent A-1.

What I would like to do is create a new Parent Issue A-2, but only when subtask B-1 has been resolved. And I would like to link Parent Issue A-2 to subtask B-1.

Is it possible to create a new parent issue A-2 from subtask B-1s completion? 

Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
August 3, 2022

Ok, so it's not really a "parent" you're trying to create.

You can set up an automation that creates a new issue when any issue goes through a specific transition, and set a link on the new issue back to the "trigger" issue while you do it.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events