Forums

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

Autopopulate fields in subtask with values from parent task

Michelle Greenfield September 17, 2019

Hi

I have power scripts. What I want to do is to auto-populate fields in a subtask with values from the parent task. How can I do this using power scripts? If it can be done using post functions, can you show me which script to run?

1 answer

1 accepted

0 votes
Answer accepted
Andrew Laden
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 17, 2019

Yup it can be done. As for how, it depends on how you want to do it.

You can use a SIL postfunction script to create the subtask from a workflow step in the parent task, https://confluence.cprime.io/display/SIL/createIssue

Or you can create the subtask via another method, and use a postfunction in the create of the subtask, and use "parent.<field> (ie parent.summary) to populate the fields.

Michelle Greenfield September 18, 2019

Thank you. 

I'd prefer to use the second suggestion ie postfunction. With this option the fields from the parent task are checkboxes and the fields in the subtasks that I need the values to transfer into are select list. Would this work or do I need to convert the target fields to be exactly the same type as the original fields?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events