How to Create UI modification for GIC

I want to write a script for modifying UI in GIC and I’m not getting flow of Ui modification template yet. Here is the scenario
There are two groups “Group A” and “Group B” . Group A users only able to create issue Issuetype of Task and Group B users only able to create issue IssueType of Bug.