Most of these lines could be re-used between #task-id-box and #story-id-box by using multi-select