Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

inherit values from Parent to Subtask

Aasha Kathamuthu May 21, 2019

Hi Team,

We have received a requirement stating Inherit values from parent to subtask.

We have a field name is called "VWR project"(Select single choice) type.

User requested us to create a new field called 

  • Parent VWR Project (script runner) field. we have copy to subtask plug in it will inherit all the parent to subtask.

requestor stating that this plug in will not update in subtask after any changes will make in parent.

I am not sure how to achive this.

please help - Note- the main agenda of request it will automatically update the values in subtask when there is any changes happened in parent field value.

Please help

1 answer

1 accepted

0 votes
Answer accepted
Mike Rathwell
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 21, 2019

Hi @Aasha Kathamuthu ,

There are a couple of ways to do that; one reasonably easy and the other a bit more robust but rather harder.

The easiest way is to use Automation for Jira and have it watch for changes in the field in the parent and then push it to the sub-task. The other is to use ScriptRunner for Jira and write a Groovy listener to do the same thing. The reason I say the ScriptRunner is a bit more robust is you have a lot of control over how/what is done to the issue on update.

big word of caution, however. Do make sure you limit the scope of both of these approaches so they aren't, essentially, checking the entire instance whenever something updates. I had a user that had elevated privileges to be able to offload some of the day to day and one of the listeners written essentially DOS'd my instance.

Aasha Kathamuthu May 30, 2019

Thank you Mike

Is there anyway I can achive it.

The original field type is single select list and field which i want to copy the value is script runner field

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events