Forums

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

Populate from Parent Task

Renee Olson April 1, 2020

I'm attempting to use the post functions to populate fields in a subtask.  I have several that are working fine (epic link and sprint) but I have three (components/labels and fixed version) that will not inherit. Any ideas on why?

2 answers

1 accepted

0 votes
Answer accepted
Tanya Gordon
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.
April 1, 2020

Hi Renee,

How are you managing the inheritance? Are you using an app for this? If yes - which one? 

The fields you've mentioned are a little special and may require a specific technique or method of writing in order to inherit them.

BR, 
Tanya

Renee Olson April 2, 2020

I'm using post functions on the create transition on a sub-task to pull in the fields from the parent task.   I have the JMWE add-on - where I make the selections below for each field I want to pull into the sub-task screen.  For some reason epic link and sprint work fine.   Component/s, Fix Version and Labels do not.

 

copyfield.jpg

postfuctionfromparent.jpg

Radhika Vijji _Innovalog_
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.
April 2, 2020

Hi Renee,

May I know which version of JMWE are you using? Can you activate Error logging (you will be notified of errors immediately) in one of the post-functions, save it, publish the workflow and retry.

Regards,

Radhika

Renee Olson April 2, 2020

Our version is 6.2.4  I'll see about error logging.

Renee Olson April 2, 2020

Our system is set to notify admins when there is an issue with post functions. Log analyzer found no errors and no notification has been sent.

Radhika Vijji _Innovalog_
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.
April 2, 2020

Hi Renee,

I just tried on the same version and it works fine. Are you sure you added the post-function to the "Create" transition of the sub-task workflow? Have you published the workflow? Please recheck. Also, the Sprint field is not being set by the post-function but being inherited from the parent (this is by the design of Jira). 

Regards,

Radhika

Renee Olson April 2, 2020

Yes, I'm sure I did.  I'll do more testing.  Including removing the sprint post function to see if it still populates. 

Renee Olson April 2, 2020

It looks like epic link isn't available at all. Interested in how you were able to make that one work.  I removed sprint from the wf post config and that worked fine.

Component/s and Fix Version shows up after you save the sub-task issue.  I still cannot get labels to display.

 

This is my task

withlable.jpg

 

 

this is my sub task creation screen

subtaskautopopulate.jpg

After creation

afercreation.jpg

Radhika Vijji _Innovalog_
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.
April 2, 2020

Hi Renee, 

JMWE post-function performs an operation after the transition completes. And hence you see the values after the sub-task was created. The Epic link field is not applicable to subtasks because you cannot add an Epic to a subtask. You can try adding manually to see this error. So we are left with the "Labels" field now. Which version of Jira are you using? 

Regards,

Radhika

Renee Olson April 2, 2020

yes, that's where we are.  The version we have is 7.3.8

David Fischer
Community Champion
April 2, 2020

Hi Renee,

you probably want to remove the "Epic Link" and "Labels" fields from the sub-task creation screen, because the first one doesn't apply to Sub-tasks, and the second will be replaced by the post-function so it'll be confusing for users.

Like Renee Olson likes this
Renee Olson April 2, 2020

Yes, as soon as I saw the error I removed those fields completely. :) 

Radhika Vijji _Innovalog_
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.
April 6, 2020

Hi Renee,

Were you able to fix the problem? Are you still not able to copy the Labels field from the parent to the Subtasks? Let me know.

Regards,

Radhika

Renee Olson April 6, 2020

No the issue is still there.  The labels do not populate.

Radhika Vijji _Innovalog_
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.
April 6, 2020

Hi Renee,

Can you move the post-function before the "Creates issue originally" post-function, publish the workflow and retry. Let us know if it fixes the issue.

Regards,

Radhika

Renee Olson April 6, 2020

It has an error if you put it before create.  That's why I moved it originally.

errorifmovebeforecreate.jpg

Radhika Vijji _Innovalog_
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.
April 6, 2020

Hi Renee,

You moved the post-function for "Fix Version/s". Yes though it shows an error, in 7.2.3 version of Jira it should copy the "Labels" from the parent. Try and let us know. I suggest you raise a support request with us here: https://innovalog.atlassian.net/servicedesk/customer/portal/8 so that you can share more information there (short video or workflow XML etc) with us to debug the issue.

Regards,

Radhika

Renee Olson April 6, 2020

Hi, I was able to get this to work correctly.  Apparently I was copying "TO" the parent and not "from" the parent.  After I testing your fix above I noticed it was removing my label from the parent.  Then I went it and reconfigured it.  It is working now.

 

Thanks you for your help.

0 votes
Denise_Wuethrich_beecom_products
Contributor
April 6, 2020

Hi, Renee.

As an alternative, you may install JSU that does not require any coding.

Post functions will operate after the create screen. There you can copy other fields to the sub-task. But be careful about the sequence. Read more about this in the documentation: https://confluence-apps.beecom.ch/display/JSU/Workflow+Post-Functions

Renee Olson April 6, 2020

I would like to use the plugin we have.

Suggest an answer

Log in or Sign up to answer