Issue Summary
Getting an Error 400 when attempting to make a GET call on the Epics endpoint. The response is "Cannot get epics. Nullable object must have a value". This is a 500 disguised as a 400.
Steps to Reproduce
- Using Jira Align Swagger or any other API Client (Postman, Insomnia, etc), run a GET Call on Epics endpoint
https://[JIRAALIGNINSTANCE].jiraalign.com/rest/align/api/2/Epics
Expected Results
List/Retrieve all Epics
Actual Results
Error 400 - Cannot get epics. Nullable object must have a value
The below exception as identified:
Exception: System.InvalidOperationException: Nullable object must have a value. at AgileCraft.Repositories.Helpers.ValueHelper.<>c_DisplayClass50_0.<GetValueScores>b10(Double sum, ScoreCardScore val) in C:\projects\alignapi\AgileCraft.Repositories\Helpers\ValueHelper.cs:line 0 at System.Linq.Enumerable.Aggregate[TSource,TAccumulate](IEnumerable`1 source, TAccumulate seed, Func`3 func) at AgileCraft.Repositories.Helpers.ValueHelper.<>cDisplayClass50_0.<GetValueScores>gCalculateScore|4(IGrouping`2 scoreCards) in C:\projects\alignapi\AgileCraft.Repositories\Helpers\ValueHelper.cs:line 524 at AgileCraft.Repositories.Helpers.ValueHelper.<>cDisplayClass50_0.<GetValueScores>b_3(IGrouping`2 i) in C:\projects\alignapi\AgileCraft.Repositories\Helpers\ValueHelper.cs:line 506 at System.Linq.Enumerable.SelectEnumerableIterator`2.MoveNext() at System.Linq.Lookup`2.CreateForJoin(IEnumerable`1 source, Func`2 keySelector, IEqualityComparer`1 comparer) at System.Linq.Enumerable.GroupJoinIterator[TOuter,TInner,TKey,TResult](IEnumerable`1 outer, IEnumerable`1 inner, Func`2 outerKeySelector, Func`2 innerKeySelector, Func`3 resultSelector, IEqualityComparer`1 comparer)+MoveNext() at System.Linq.Enumerable.SelectManyIterator[TSource,TCollection,TResult](IEnumerable`1 source, Func`2 collectionSelector, Func`3 resultSelector)+MoveNext() at System.Linq.Enumerable.DistinctIterator`1.MoveNext() at System.Linq.Enumerable.GroupJoinIterator[TOuter,TInner,TKey,TResult](IEnumerable`1 outer, IEnumerable`1 inner, Func`2 outerKeySelector, Func`2 innerKeySelector, Func`3 resultSelector, IEqualityComparer`1 comparer)+MoveNext() at System.Linq.Enumerable.SelectManyIterator[TSource,TCollection,TResult](IEnumerable`1 source, Func`2 collectionSelector, Func`3 resultSelector)+MoveNext() at System.Linq.Enumerable.DistinctIterator`1.MoveNext() at System.Linq.Enumerable.GroupJoinIterator[TOuter,TInner,TKey,TResult](IEnumerable`1 outer, IEnumerable`1 inner, Func`2 outerKeySelector, Func`2 innerKeySelector, Func`3 resultSelector, IEqualityComparer`1 comparer)+MoveNext() at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at AgileCraft.Services.EpicService.SimpleGet(EpicFilter filter, IDbTransaction transaction) in C:\projects\alignapi\AgileCraft.Services\EpicService.cs:line 701 at AgileCraft.Services.EpicService.Get(EpicFilter filter) in C:\projects\alignapi\AgileCraft.Services\EpicService.cs:line 74 at AgileCraft.Api.Controllers.BaseController`2.Get(String message, String errorMessage, TFilter filter) in C:\projects\alignapi\AgileCraft.Api\Controllers\BaseController.cs:line 131
Workaround
Currently, there is no known workaround for this behavior. A workaround will be added here when available
- resolves
-
ALIGNSP-20015 Loading...