Adding custom data to an issue
I am using the REST webservices (3.5.3) and I am trying to create an issue that contains custom fields.
Below is a sample of the code I am using.
-----code snip----
CustomFieldDataEN[] customFields = new CustomFieldDataEN[2];
customFields[0] = new CustomFieldDataEN();
customFields[0].CustomFieldData = Firstname + " " + Surname;
customFields[0].CustomFieldID = 4;
customFields[0].ProjectID = myProjectId;
customFields[1] = new CustomFieldDataEN();
customFields[1].CustomFieldData = memberID;
customFields[1].CustomFieldID = 32;
customFields[1].ProjectID = myProjectId;
issue.IssueCustomFieldData = customFields;
-----code snip----
newIssue = serviceManager.IssuesService.CreateIssue(issue);
-----code snip----
The issue is successfully created, but when I go through the gemini web site to view the issue it does not display the custom data I added. If I use the web site's create issue process the issue is created with the custom data. Only trying to add 1 piece of custom data does not work either.
The above (for one custom field data, never needed it to work for two) was working before we upgraded from 2.x to 3.5 of gemini.
Any help would be appreciated.
Cward
· 1 |
|
Tuesday, October 13, 2009, 11:16:21 AM |