Keep complex logics in jelly as less as possible

Move logics out of index.jelly while using doFillFIELDItems to
fill the value of Git parameters.

It improves the testability of code.