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

1 vote
Answer 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
Community showcase
Published Thursday in Jira

Updates to give you visibility into what's coming in Jira Server and Data Center

Hello, Community! My name is Gosia and I'm a Product Manager on Jira Server and Data Center here at Atlassian. Since 2002 when we launched our public issue tracker, jira.atlass...

471 views 1 14
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