Home Home
  login

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.




CreatePartialIssue with CustomFieldData

items
custom-fields

I can't create partial issue with filled CustomFieldData. Issue creates but these data aren't in created issue. IssueCustomFieldData property has 0 elements after issue creating. Please,help me with this problem.

Alexandr
· 1
Alexandr
Replies (14)
helpful
0
not helpful

Partial issue will not create custom data, you add the custom fields after creating the issue.


Mark Wing
· 9108
Mark Wing
0
DELETED.  House Rules

Alexandr
· 1
Alexandr
helpful
0
not helpful

I created partial issue, then implemented code below but this is doesn't work, I don't have exception. After code has been executed successfully CustomFields array has 0 length(empty). Could you explain, please, where I make mistake?

CustomFieldDataEN[] customFieldsData = new CustomFieldDataEN[4];

customFieldsData[0] = new CustomFieldDataEN() { IssueID = issue.IssueID, CustomFieldData = txtConditionsOfAcceptance.Text, State = BaseEN.EntityState.New, CustomFieldID = 4, ProjectID = selctedProjectId, UserID = user.UserID };

            customFieldsData[1] = new CustomFieldDataEN() { IssueID = issue.IssueID, State = BaseEN.EntityState.New, CustomFieldID = 7, ProjectID = selctedProjectId, UserID = user.UserID };
            customFieldsData[2] = new CustomFieldDataEN() { IssueID = issue.IssueID, State = BaseEN.EntityState.New, CustomFieldID = 10, ProjectID = selctedProjectId, UserID = user.UserID };
            customFieldsData[3] = new CustomFieldDataEN() { IssueID = issue.IssueID, CustomFieldData = "4.2", State = BaseEN.EntityState.New, CustomFieldID = 11, ProjectID = selctedProjectId, UserID = user.UserID };
            for (int i = 0; i < customFieldsData.Length; i++)
                CustomFieldsService.SaveCustomFieldData(customFieldsData[i]);*

Alexandr
· 1
Alexandr
helpful
0
not helpful

Can you please check Gemini's system log for errors?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

How can I do this, where can I find this log?


Alexandr
· 1
Alexandr
helpful
0
not helpful

Administration -> System log


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

I can't find where it is... :( Is it on site or I need search in code?


Alexandr
· 1
Alexandr
helpful
0
not helpful

It is on your Gemini site (you need to be a Gemini admin).


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

I have some standard data for CustomField. I have read about Custom Field Lookup Tables. This data should be there. Could you please help me how to get data from this table?


Alexandr
· 1
Alexandr
helpful
0
not helpful

Sorry not sure I follow, are you trying to get the lookup data or create a custom field data for an issue?


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

I have 4 CustomFields. They are already exists. SO I try to fill these fields with data. One of the fields should contain Iteration which can be one of exists values stored somewhere... I want to get values for this field(I think these values in Lookup Tables), put they into drop down list and user will have ability choose one of them. Then (after user have filled all fields) I want create issue, one of issue's fields CustomDataField and I need put data to this field, but data doesn't save.


Alexandr
· 1
Alexandr
helpful
1
not helpful

You need to call the CustomFieldsService.GetCustomFields() method. This will return the custom fields and their lookup data in the LookupData property.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

I have found data in way you wrote. And how to save selected value in appropriate CustomField?


Alexandr
· 1
Alexandr
helpful
0
not helpful

Please send an email to support at countersoft dot com with a sample code of what you have so far.


Mark Wing
· 9108
Mark Wing
helpful
0
not helpful

ok, thanks a lot.


Alexandr
· 1
Alexandr