Project

General

Profile

CustomFields: Create an Issue

Added by Kevin Bollerhei over 10 years ago

Hi,

i'm currently working on a front_end tool for redmine which has different functions and one is create tickets...
We have different customfields on our Server but i have Problems to get the list of These customfields.
So my code is:

newTicket = new Issue
{
Tracker = new IdentifiableName { Id = ((KeyValuePair)comboTracker.SelectedItem).Id },
Project = new IdentifiableName { Name = TH.UserProjectMembership(d) },
Priority = new IdentifiableName { Id = comboPriority.SelectedIndex + 1 },
Status = new IdentifiableName { Name = comboStatus.SelectedItem.ToString() },
DueDate = dateTimePicker1.Value,
Subject = textSubject.Text,
Description = textDescription.Text,
CustomFields = new IdentifiableNameList <CustomField> { new CustomField { Name = "issue[custom_field_values][3]", Values = new List<CustomFieldValue> { new CustomFieldValue { Info = "FR" } } } },

So my question is: how can i get this IdentifiableNameList<CustomField> with the customfields from the Server.

I hope you can help me and best regards
Kevin