Forums

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

Display parent Fix Version on sub-task screens

Kelley Cooper
Contributor
January 4, 2023

Have read many posts about Fix Version and Sub-tasks but don't think I've seen one which answers this question:

Can I display the parent's Fix Version value on its child Sub-task screens as a read-only value?

Can I accomplish this with ScriptRunner and a scripted field?

I understand I can use post-functions, etc, to set the Sub-task's Fix Version to the same as the parent BUT there are always holes in that process; I'd rather just display as read-only on the Sub-task screens its parent's Fix Version.

Thank you in advance for any help!

1 answer

1 accepted

0 votes
Answer accepted
Antoine Berry
Community Champion
January 5, 2023

Hello @Kelley Cooper ,

You are absolutely right, you should use a script field in that case. This is how I did it : 

version script field.png

with the code : 

if (issue.isSubTask()){
    return issue.getParentObject()?.getFixVersions()
}

This is how it appears on the view screen : 

version script field 2.png

Kelley Cooper
Contributor
January 23, 2023

Thank you so much, @Antoine Berry !!

Suggest an answer

Log in or Sign up to answer