I offer paid 30 mins or 60 mins 1-1 consultancy calls.
Jira Courses, Training and Consulting: Sparxsys Trainings
Thanks for coming here, I hope you are enjoying learning here, I have also written some books in case you want to learn a bit more :)
If you need my help with Drupal, Linux, Jira, Scripting, Automation or want to contact me then raise a ticket for me please :) and I will get back to you, promise. At Sparxsys we provide Atlassian consultancy services, reach out to me at ravi at sparxsys dot com

Mastering Jira Automation: Copying Cascading Select Lists to Subtasks

Automating Jira subtask creation can significantly streamline your workflow, especially when you need to maintain data consistency between parent issues and their child tasks. However, a common hurdle arises when dealing with cascading select lists. In this guide, we explore how to bridge this gap using Jira Cloud Automation.

 

The Challenge: Standard Field Editors

While automating subtask creation on an 'In Progress' status transition is straightforward, standard field editors often fail to populate cascading select lists. This limitation makes it difficult to maintain the parent-child relationship of your data during task breakdown.

 

Smart Values and Data Retrieval

The key to overcoming this is understanding that cascading fields contain two distinct levels. To retrieve these successfully, you must capture them separately:

  • Parent Value: Use issue.category.value
  • Child Value: Use issue.category.child.value

Pro Tip: Always use the specific field ID found in your automation settings rather than the field name to ensure absolute accuracy.

 

The Solution: Advanced JSON Logic

When standard editors fall short, Advanced JSON is your best tool. By accessing 'More options' in your 'Create subtask' action, you can insert a JSON snippet that maps the parent and child values directly. This effectively bypasses the layout limitations of the standard interface, allowing the data to copy perfectly every time.

 

Validation and Troubleshooting

Automation is an iterative process. To verify your smart values before they go live:

  1. 1. Use a Log Action: Print your smart values to the audit log first to confirm they are capturing the data correctly.
  2. 2. Monitor the Audit Log: If your automation fails, the audit log is your primary diagnostic tool. It will tell you if the automation triggered correctly and if there were any JSON validation errors.

 

By leveraging these techniques, you can ensure your project metadata remains consistent, whether you're creating technical implementation subtasks or copying classification fields for QA.

Subscribe

* indicates required

Please confirm that you would like to from Sparxsys:

You can unsubscribe at any time by clicking the link in the footer of our emails. For information about our privacy practices, please visit our website.

We use Mailchimp as our marketing platform. By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. Learn more about Mailchimp's privacy practices.

Want to contact me?