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 Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

89 views 0 5
Read article

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