Obtaining Redmine API key.
1. Login to your Redmine account
2. Go to My account page
3. In Right column under API access key, click the show link.
A default Redmine settings form have 4 pre-entered fields-
project_id – You have to specify your project identifier here. Project Identifier is displayed on settings page of each project on information tab. It is a required Field.
priority_id – You can define the priority of the issue here. Go to add issue page, and click on view source and you will see the value for priorities in similar format- <option value=”1″>Highest</option>, so our value for highest priority is 1. Similarly our value for high is 2, for normal is 3 & for low is 4.
assigned_to_id – Here you can specify the value of the user to whom you want to assign all issues created from Test Collab. To obtain value of a user, click on view source, and you will see the value for assignee in similar format- <option value=”10″>Shriti Gupta</option>, so our value for user Shriti is 10. You can similarly find values for other users.
status_id – You can set the status of your tickets from this field. To obtain value of a particular status, click on view source, and you will see the value for status in similar format- <option value=”2″>Reopened</option>, so our value for user reopened status is 2.
You can click the test button at bottom to make sure that Test Collab is able to create a sample bug in Redmine.
Setting up custom Redmine Fields
1. Go to Redmine’s Enter Bug page.
2. Right click on it and select View source.
3. Find the name and value for Redmine’s custom fields. Name for Redmine custom starts from issue_custom_field_values. For example, we have a custom field name Environment, on viewing page source we see – <label for=”issue_custom_field_values_2″>Environment</label>, so our field name in this case is custom_field_values_2. Now, for value we see in source- <option value=”Development”>Development</option> our value for development environment is Development.
4. Click on add more field link on Issue Manager Settings page, put your custom field name and value in respective fields.
5. Click Test button to create a sample bug and check if your custom field was added successfully.