Forums

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

Automation: Sub-Task with information from previous Sub-Task

Dörken Administrator
Contributor
February 16, 2022 edited

Hello,

Here are some details about the issue structure that we're using as foundation for my question:

Parent-Task:
- "Projektsteckbrief"

Subtasks:
- "Projektfreigabe"
- "Projektabschlussbericht"
- "Projektkennzahlen"

1. Question:
I'm trying to set up an automation that creates a subtasks based on the information of a previous subtask in an issue.

I want to create the subtask "Projektabschlussbericht" based on the information in the other subtask "Projektfreigabe". In case there is more than one subtask of the type "Projektfreigabe", I want to use the information from the most recently created "Projektfreigabe"-issue.

I couldn't find a way to relate to the information in the most recent "Projektfreigabe"-issue.

2. Question:
The subtask "Projektfreigabe" is created with information from the parent task "Projektsteckbrief". Now, when the parent task "Projektsteckbrief" includes a subtask of the type "Projektkennzahlen", I want it to be linked as a related issue in the "Projektfreigabe" issue.
I did find an option to clone the "related issues", but this doesn't help as it would 1. clone the links to all related issues and not only the "Projektkennzahlen" and 2. this only works for related issues, but not for subtasks.
How would you solve this?

Does anyone know a solution for these problems?

Kind regards

DRKADM

1 answer

0 votes
Sachin Dhamale
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 20, 2022

@Dörken Administrator

Here you might use the Automation rule there you can create subtasks and in the addition field you can write logic and take information from previous subtask and make changes in that and update it for subtask. Here you need to explore more.

Create Subtask with Addition Info.png

 

Option2: If you have script runner field then you can write scripted postfunciton for subtask creation there you can write script to take the information of previous subtask and update 

Dörken Administrator
Contributor
February 24, 2022

Thank you very much @Sachin Dhamale - while we weren't able to use your exact suggestion, it still helped us with another case we were looking at.

We also found a solution to both our problems. Instead of using the "create issue"-action, we've used a JQL to find the sub-task of the issuetype we needed and then used the "clone"-action, just with another issuetype.

Suggest an answer

Log in or Sign up to answer