How to create a subtask and link it with task of another project?

Muhammad Bilal Mustafa
Contributor
July 17, 2023

Hi Everyone,

 

I am trying to achieve two things from JIRA automation

1) Create a task and then clone in multiple project. For example, I created a task "task 1" in Master project and using jira automation, I cloned this task in two projects. I used following automation rule.

Create task.png

Second thing I want to achieve is when I create a subtask in "task 1", then it should automatically clone subtask in other project's task which were cloned originally. For example, user "task 1" of Master project I created two subtasks. These subtasks should be copied in other cloned tasks of project School 1 and School 2.

 

I tried this logic but it is giving me an error (issue type is a sub-task but parent issue key or id not specified (issuetype)

create sub-task.png

 

Can anyone help me in this?

 

Thanks

1 answer

1 accepted

2 votes
Answer accepted
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 17, 2023

Hi Muhammad,

Sub-tasks can only be linked to a parent in the same project. And you need to create the sub-task in that same rule as you Clone the task. 

So, between the two Clone issue actions in the first rule, add a Branch for Most Recently Created Issue. 

Then move add the Create Sub-task under that Branch. 

Do the same thing with the next Clone issue - add a branch and put the create sub-task under it. 

Muhammad Bilal Mustafa
Contributor
July 17, 2023

Thank you @John Funk for your quick response. Appreciate it. 

 

I used your suggested rule and here is what happened:

- Sub task is not created in original issue

- Sub task is created in cloned issue

- If I create a subtask in original issue, it doesn't show up in cloned tasks. 

 

Let me explain it again, what I am trying to achieve:

1) Actually, it is not compulsory to create a subtask with each task. Sub-tasks are optional - for some tasks there could be subtasks and for some there couldn't be.

2) Manually create subtask in original task

3) JIRA automatically create subtask in cloned task

 

I hope this will add more clarification in my approach that I am trying to achieve. 

Like # people like this
Muhammad Bilal Mustafa
Contributor
July 18, 2023

@John Funk do you have any solution which can help me to achieve this? Appreciate your help. 

Like Deleted user likes this
John Funk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 20, 2023

Still not completely following this. Maybe just list exactly what you do and what you want to happen. Use identifiers such as Task A, Task B, Sub-task A-1, Sub-task A-2, etc. 

Like Deleted user likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events