Apply parent field to subtask

Is it possible in OnDemand, that when I create a subtask, I can apply a value from the Parent to the subtask? To make reporting easier (e.g. find all issues and related tasks associated with dept XYZ), I want both the parent and subtask to have dept XYZ. Else, I think users will have a difficult time finding all of their subtasks for a particular dept.

2 answers

1 accepted

This can be done. I had overlooked a post function that I could use to set a value based on a parent's value.

The trick was that it had to be done on Create which can only be done in the Designer (I prefer working in the flattened view). For the Create step, I added two post functions - one for each field I wanted to set.

I then removed these fields from my Create and Edit screens because I did not want them to be changed.

In my case, these fields are required when creating the parent. So, I created a separate field configuration for the parent task type that had these as required fields and created another field creation for the subtask types that did not have these required. Created a field configuration scheme that had both of these configurations and applied to the project.

All works great now!

Awesome! Never figured that out! There you have a vote for find it yourself and for giving a great tip! ;)

I'm not sure these could be done inside the Jira.

If you had the Standalone version you could use the Script Runner plugin to do that with a little script. But in the OnDemand it looks like that the fields to copy are already predefined.

What you could do is to assign that field to both parent and subtask issuetype screen and then when you create the subtask do a 'copy/paste' of that field manually.

I was hoping that I overlooked a capability..but, doesn't appear so.

I cannot copy/paste because both fields are single-select options. But, we needed for them to be the same value.

Are you having the same field in both issuetypes create screen? In that case you can just select the same value in the sub-task...

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 ...

2,866 views 12 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