Forums

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

Copying field's value from Task to Sub-task

Rafal Sojka
Contributor
December 14, 2020

Hi,

Is it possible to copy a value of field from Task into Sub-task while creating this sub-task and making this copied value read-only ?

Please advise if you have any idea.

Thank you,

Rafal

1 answer

1 accepted

1 vote
Answer accepted
Haddon Fisher
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.
December 14, 2020

The quickest and best solution I can think of would be to use a ScriptRunner scripted field living on the sub-task to show the value of the field from the parent.

- It's inherently always going to be accurate because it's just a view of the parent, so you don't need to worry about listening for changes and then keeping them in sync.

- I am not sure there's a way to make fields conditionally read-only that doesn't involve ScriptRunner anyway.

'Automation' would allow you to push data around, so if you cared less about the field being read-only, that could be an option as well.

Bill Sheboy
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.
December 14, 2020

Hi @Rafal Sojka 

Adding on to what @Haddon Fisher  suggested...

One consideration is do you need the task and sub-task values to remain in synch, or can the sub-task value change to be different later.

If it can change, consider using an automation rule to copy the value and so it will remain independent for edits.

Best regards,

Bill

Rafal Sojka
Contributor
December 15, 2020

Thank you @Haddon Fisher and @Bill Sheboy , really appreciate that.

Finally, i decided to use JMCF plugin since it provides a scripted date field. I implemented a short Groovy script to copy a value from the parent issue.

jmcf.png

Like • Haddon Fisher likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events