Since we use JIRA to manage tasks, we can add a Mylyn task repository for JIRA in eclipse, then we can easily manage task.
Open “Mylyn task repository” view, and add a new task repository.
If you have no connector for JIRA, click “Install more …” to install. Input “jira” and find the connector.
Click finish to begin the installation.
In the following dialog, check the following 2 items and click “Next” to install.
After the installation is finished, open the “Add new Repo..” dialog to add new task repo.
Select “JIRA” and click “Next”.
In this dialog, input the “Server” and “Label” fields as given above, input your userId and password, and click “Validate …” to check. Then click "finish."
The following window will them be shown:
If you want to check JIRA task in Mylyn task list, you need to create a query. So you should click “Yes” to create one.
Here, we have created a query for the issuer “Assigned to me.” Click “Finish” and it will begin to get the tasks from JIRA.
Or, you can click “Update from repo…” to get the filters created in JIRA.
After that, you can see the JIRA task in task view:
When we manage JIRA task with Mylyn in eclipse, the best practice is:
a) Activate one task in task list.
b) Open one file to modify for this task, or open some modified files for this task.
c) After we finish modifying, select the modified files and commit. In the commit log field, the log will be generated based on the template. Then after we commit and push, the JIRA task will be connected with the modified files in JIRA. This will be convenient for code review.
So, at first, we need to modify the commit template of Mylyn. Our format is :
Then, select one task in the list, right-click on the task, and select “Activate” to make it the current working task.
Then, open the related files to modify. If you have already modified some files related with this task, we can just open the modified files. Then, it should be as given below, and only these files are listed.
Then select the files you want to commit and commit, then the commit. The commit window will appear, and the commit log is generated.
Input a description and commit. Then you can see the commit related to Github in JIRA.