JMWE post function auto add component based on parent issue

Nicolas Andika
Contributor
September 24, 2024

Dear all,

I have created a workflow for subtask issue. I want to create a post function in the create transition to set issue fields (Components) based on the component field value of the parent issue? how to make it happen? whats the value of the nunjucks template?

Thankyou

1 answer

1 accepted

2 votes
Answer accepted
Manoj Gangwar
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 24, 2024

Hi @Nicolas Andika 

You can use.

{{issue.parent.fields.components}}

Nicolas Andika
Contributor
September 24, 2024

Hi @Manoj Gangwar 

when i use this and i test it, the result is empty Screenshot 2024-09-24 at 16.49.07.png

Manoj Gangwar
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
September 24, 2024

Then you can use the Copy issue fields post-function

Screenshot 2024-09-24 153839.png

Nicolas Andika
Contributor
September 24, 2024

Hi @Manoj Gangwar 

Thanks for the help, it works

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events