Gemini Community Support Site

This Gemini community support site can be used to find solutions to product issues. You can log in using Open Id, Google Profile and even Facebook. Feel free to ask a question or browse FAQs and documentation. Product tour videos are also available along with how-to videos demonstrating key Gemini capabilities.




Adding custom data to an issue

api

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
Cward
Replies (4)
helpful
0
not helpful

This is a bug in 3.5, you will need to call CustomFields.SaveCustomFieldData after creating the issue.

This will be fixed for 3.6.


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

Calling  serviceManager.customfieldsService.SaveCustomFieldData(...) throws the following exception

{"'100' is an unexpected token. The expected token is '\"' or '''. Line 20, position 65."}
from system.xml.xmlexception

The issue seems similar to http://support.countersoft.com/forums/thread/12476.aspx. We are also using Windows authentication. The tips given on that thread did not help.


Cward
· 1
Cward
helpful
0
not helpful

Are you sure that you have enabled all verbs for all ASHX file handlers?
Are there any errors in the event viewer?


Saar Cohen
· 5000
Saar Cohen
helpful
0
not helpful

This issue was fixed by applying the permissions suggestion on the above mentioned thread.

---Can you please try and grant your windows user / group full control on the API folder of the Gemini site?)

Thanks for you help.


Cward
· 1
Cward