Process of saving item
Is there a specific order of saving an item in the api? In particular, how do you handle the saving of custom fields? It appears that you must first use UpdateIssue, then save each individual custom field with SaveCustomFieldData for every modfied and new custom field. In a simplified form, I am doing this:
myStoredIssueEN = GetIssue [any one of the functions to get an issue)
myStoredIssueEN = UpdateIssue(myStoredIssueEN) <= This will wipe out any modified custom fields in myStoredIssueEN, so the custom fields must be saved elsewhere
for each CustomFieldDataEN in custom fields myStoredIssueEN = SaveCustomFieldData(custom field structure) <= This will wipe out any modifications to the IssueEN and any custom fields other thn the one being saved; hence the UpdateIssue first
I'm sure I'm not doing this in the most efficient way. If you're updating an item with custom field data (some being added, some new), what is the best way?
Thanks.
User75023
· 1 |
|
Monday, October 10, 2011, 6:20:07 PM |