Forums

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

Auto-populate sub-task custom field

Andre Menezes
Contributor
August 16, 2021

Hey Team, please, would you know why my automation below is not working? I am trying to auto-populate a custom field of a sub-task with the value of the same custom field from the Parent Task.

 

Screen Shot 2021-08-16 at 16.26.18.png

1 answer

0 votes
Bill Sheboy
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.
August 16, 2021

Hi @Andre Menezes 

As written, your rule is writing its own value to Target Population.  When you want to set the value from the parent, you first need to get the parent's value.  For example:

  • trigger: issue created
  • condition: issue type is sub-task
  • branch: on parent of the issue
    • action: create variable, setting the value to issue (parent) Target Population
  • action: edit issue fields, setting Target Population the the created variable value

Best regards,
Bill

Andre Menezes
Contributor
August 16, 2021

Hello @Bill Sheboy 

 

Thanks a lot. 

 

Could you please help me with this?

  • action: create variable, setting the value to issue (parent) Target Population

I am not sure how to write the smart values. The name of the field is Target Population.

Bill Sheboy
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.
August 16, 2021

Hi @Andre Menezes 

That will probably be {{issue.Target Population}} as it is inside of the branch, and so will use the parent's value.  You may need to use the custom field ID instead if the name doesn't work.

If neither works, please use the information in this how-to article to learn the smart value for your field: https://support.atlassian.com/jira-software-cloud/docs/find-the-smart-value-for-a-field/

Suggest an answer

Log in or Sign up to answer