Custom c# activity, what is the input?

Hi,

I’ve created custom Jira activities in C#. When I have public InArgument Assignee { get; set; } then everything is clear, but I have also two other types.

  1. public InArgument<Dictionary<string, string>> CustomField { get; set; }
  2. public InArgument<List> Label { get; set; }

For the first one I use such code:
foreach(var value in nameCustomField)
{
issue[value.Key] = value.Value;
}

For the second:
foreach (var value in label)
{
issue.Labels.Add(value);
}

In the first one when I have one variable like new Dictionary(of string, string) from {{“Type”,“First type”}} . I dont know how to have here more variables in input field.
For the second I don’t know how to have here the list of strings. Something like {“First string”,“Second string”} doesnt work. How to fill these input fields?

Best Regards,
M

Hi,

Hope the following helps you.

In the first one when I have one variable like new Dictionary(of string, string) from {{“Type”,“First type”}} . I dont know how to have here more variables in input field.

New Dictionary(Of String,String)From{{"Type","First type"},{"Type2","Second Type"}}

For the second I don’t know how to have here the list of strings. Something like {“First string”,“Second string”} doesnt work. How to fill these input fields?

New List(Of String)From{"First string","Second string"}

Please let me know, If I understand your question wrong.

Regards,