Skip to content

Commit

Permalink
custom field try parsing multiple types
Browse files Browse the repository at this point in the history
  • Loading branch information
ce-nistal committed Jul 25, 2024
1 parent 8b7803f commit 9a44a7b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Apps.Jira/Actions/IssueCustomFieldsActions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,16 @@ public async Task<List<string>> GetCustomMultiselectFieldValue(
{
values.Add(customField["value"].ToString());
}
else if (customField.Type == JTokenType.String || customField.Type == JTokenType.Integer ||
customField.Type == JTokenType.Float || customField.Type == JTokenType.Boolean ||
customField.Type == JTokenType.Date)
{
values.Add(customField.ToString());
}
else
{
values.Add(customField.ToString());
}
}
return values;
}
Expand Down
2 changes: 1 addition & 1 deletion Apps.Jira/Apps.Jira.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<LangVersion>12</LangVersion>
<Product>Jira</Product>
<Description>Issue tracking</Description>
<Version>2.2.0</Version>
<Version>2.2.1</Version>
<AssemblyName>Apps.Jira</AssemblyName>
</PropertyGroup>
<ItemGroup>
Expand Down

0 comments on commit 9a44a7b

Please sign in to comment.