Forums

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

Automation create sub-task

Tiziana Pisenti
Contributor
September 30, 2024

I hava a Issue Type calles "Raum"- In the workflow I added the transition from the Status "Bestandesaufnahme" to the same Status "Bestandesaufnahme" with a Screen. I want to create a Subtask based on the information from the transition screen. How do I do that?

I have created the following Automation:Automation_Sub-Task_Leuchte.png

And I get the following Error:Automation_Sub-Task_Leucht_error.png

What is wrong with the automation? 

2 answers

0 votes
Cristian0791
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 Leaders.
September 30, 2024

Hi Tiziana,

Please go to "Then" tab and check if Summary is copied from trigger issue:

Summary.JPG

 

Hope this helps.

0 votes
Bandarupalli Sai
Contributor
September 30, 2024

@Tiziana Pisenti - Follow the below steps in order to create the automation rule as per your requirement

  1. Configure the trigger:

    • Select Issue Transitioned as the trigger.
    • Set the From Status and To Status fields both to "Bestandesaufnahme".
    • Save the trigger.
  2. Add a condition (optional):

    • If you want the sub-task to be created only under certain conditions (e.g., a specific field value), add a condition like Issue fields condition or Advanced JQL condition.
    • This step is optional and can be customized based on your requirements.
  3. Add the action:

    • Click on New action and select Create issue.
    • Configure the Create Issue action as follows:
      • Project: Select the same project where the parent issue exists.
      • Issue Type: Select Sub-task.
      • Parent Issue: Click on the field and choose the option Copy from trigger issue. This will ensure the sub-task is created under the transitioning issue.
      • Fill in other fields such as Summary, Description, and any other fields you want to be populated using values from the transition screen. Use smart values to reference fields from the transitioning issue.

        For example:
        • Summary: Create sub-task based on {{issue.fields.customfield_XXXXX}} (replace customfield_XXXXX with the ID of the custom field from your transition screen).
      • Save the action.
  4. Publish the rule:

    • Click on Save and then Turn on to publish the rule.

Let me know if this helps!

Tiziana Pisenti
Contributor
September 30, 2024

@Bandarupalli Sai Thank you for your help. How exaclty do I use smart values to reference from the transition? I set the fields like this, but it doesn't work

Automation_create Task_Leuchte_fields.png

Bandarupalli Sai
Contributor
September 30, 2024

@Tiziana Pisenti - You have to select the sub-task issue type from the issue type drop down or use/select the "create sub-task" option under action as shown in the below screenshots

Screenshot 2024-09-30 at 1.25.50 PM.png

 

  • Summary can be any text or can be copied from the parent issue.
  • Click on "add fields" to add/copy the field values from the parent issue or some custom text or other values. You have to click on three dots to see the copy option as shown in below screenshot

Screenshot 2024-09-30 at 1.26.29 PM.png

Screenshot 2024-09-30 at 1.33.06 PM.png

 

FYI - You can copy any system or custom field values from parent to sub-task but in order to do that fields should be available on both parent and sub-task screens.

 

Hope this helps now!

Tiziana Pisenti
Contributor
September 30, 2024

@Bandarupalli Sai Thanky you.  The fields I want in the subtask are not in the parent case. They are in the transition from the parent case and with the transition i want to create the subtask.

Bandarupalli Sai
Contributor
September 30, 2024

If the fields are on the transition screen, you can copy the field values from parent to sub-task. However, the fields will be updated while transitioning the issue.

Tiziana Pisenti
Contributor
October 3, 2024

@Bandarupalli Sai there is an issue with the summary:

Automation_create Task_Leuchte_summary.png

Bandarupalli Sai
Contributor
October 3, 2024

@Tiziana Pisenti - Can you share the rule screenshot?

Tiziana Pisenti
Contributor
October 3, 2024

@Bandarupalli Sai here you go:

Automation_create Task_Leuchte_rule.png

Bandarupalli Sai
Contributor
October 4, 2024

@Tiziana Pisenti - Can you check and ensure that the Summary field is not hidden or restricted in the respective issue type Field Configuration?

 

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