Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 21:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×

Forums

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

How to set Reporter field on Child Sub-Task to the value of the Assignee field from the Parent?

Jennifer
Contributor
July 19, 2022

I've created a Jira Automation that creates a Child Sub-Task from a Parent Task.  All of it works great except for my users one requirement that I cannot figure out.

I am using Jira Automation for Jira Cloud and my user has requested that I use it to set the Reporter field on the Child Sub-Task to the value of the Assignee field from the Parent Task.

The Reporter select list options are Copy from Parent, Copy from Trigger Issue, Copy from Epic or to select a specific Jira User.

Using Jira Automation how can I set the Reporter field value on the newly created Child Sub-Task to the Parent Task's Assignee field value?  Please help.

 

 

1 answer

1 accepted

2 votes
Answer accepted
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.
July 19, 2022

Hi @Jennifer 

Would you please post an image of your complete rule?  That will provide context for the community to offer suggestions as we cannot discern where the parent issue is within your rule before the subtask is created.  Thanks!

Kind regards,
Bill

Jennifer
Contributor
July 19, 2022

Rule 1 of 2.JPGRule 2 of 2.JPG

Jennifer
Contributor
July 19, 2022

Hi Bill. 

My automation works as expected. What I cannot figure out is how can I successfully set the Reporter field on my Child Sub-Task to the value of the Assignee field from the Parent Task? 

Thank you,

Jennifer

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.
July 19, 2022

Thanks for the information, Jennifer!

Although it is not obvious, you may type in a smart value to set fields in that rule action.  Try typing in/copy-pasting the following expression, and it will appear below the Reporter field; when it does select it and the edit will work as you expect.

{{triggerIssue.assignee.accountId}}
Jennifer
Contributor
July 20, 2022

Hi Bill 

I copied your suggestion under More Options. After running a test the audit log gives me "error while processing additional fields. Not valid JSON."  Thoughts?

Thank you,

Jennifer

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.
July 20, 2022

Sorry, I did not mean to use the JSON entry under more options, so you can clear that out.

Instead enter that smart value expression in the Reporter field when creating the subtask.

Like Jennifer likes this
Jennifer
Contributor
July 20, 2022

Thank you for that clarification Bill.  It works!

Like Bill Sheboy likes this
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.
July 20, 2022

Awesome; I am glad that worked.  Please consider marking this question as answered.  That will help others with similar needs find solutions faster.  Thanks!

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