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.




Unable to update IssueCustomFieldData

api

Hi,

I am trying to update an existing issue's IssueCustomFieldData using the following method:

---
IssueEN issue = model.GetBasicIssueProperties();
issue.IssueCustomFieldData = model.GetCustomFieldData();
//all of the CustomFieldDataEN has the IssueID property set to the existing IssueId

issue.IssueID = existingIssue.IssueID; //set the issue to the existing issue id
issue = model.IssueServiceManager.IssuesService.UpdateIssue(issue);
---

The basic properties of the issue are being updated (IssueSummary, IssueLongDesc etc) but the custom data fields are not.  Can you please advise?  Thanks.

yu217171
· 1
yu217171
Replies (3)
helpful
0
not helpful
ANSWER

You need to call SaveCustomFieldData of the custom field service.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

Hi Mark,

Thanks for clarifying.

Is there an overload that accepts an array of CustomFieldData objects or do we have to loop through the array?  Is this the recommended approach?


yu217171
· 1
yu217171
helpful
0
not helpful

Unfrotunately, not at the moment. One at a time is the way to do it.
Feel free to add the "bulk" request to our Gemini: http://gemini.countersoft.com/default.aspx?GEM, which is now on version 4.0 Beta!


Mark Wing
· 9108
Mark Wing