Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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 Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
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