...
with commit messages, use the format #id #issue for example, #287. To associate Work Items manually to a build request, just use the id, for example, 287 #FLEXDEPLOY-1234. Or you use FLEXDEPLOY-1234 in commit message if FLEXDEPLOY- is setup as work item pattern.
manually at build time, just specify work item JIRA issue number on build request form in work items input.
manually with package, just specify work item JIRA issue number on package configuration.
...