Problem With Subtask and Setcustomfield

Hi there,

I'm a newbie with script runner and groovy. I have a problem and i hope you can help guys. Let's say;

We have a parent issue and under it we have one or more subtask. In the subtasks we have select list multi choice custom fields lets say 2 for now. Users do transitions on subtasks and fill those customfields in the normal flow. After these fields filled, i want to see them in the parent issue.

Subtask1 => HR: Test, Recruitment

Sales: Purchase, Direct Selling

Subtask2 => HR: Sack, Trainings

Sales: Mass Market, Direct Selling

Parent => HR: Test, Recruitment, Sack, Trainings

Sales: Purchase, Direct Selling, Mass Market, Direct Selling

In this example, HR and Sales my customfields and i want to see them in the parent issue as i described. The code has to get all subtask customfield values and move it to parent issue.

Can we do that? Is it possible?

Thanks in advance.

1 answer

Hey there,

if you want to set fieldvalues from the subtask to it's parent or parents you can do this with post-functions in the workflow - if not in the normal workflow set a new transition in all status which is conditioned for a special group or role.

Hope this is a valid solution for your doing.

Greets
Simon 

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,097 views 13 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot