-
Type:
Bug
-
Resolution: Not a bug
-
Priority:
Low
-
None
-
Affects Version/s: 10.113.2
-
Component/s: REST API
-
1
-
Severity 3 - Minor
-
No
Problem
When a Jira Epic is created on Jira and synced with Jira Align, we are not able to update the Feature using PATCH and the Jira Align endpoint /rest/align/api/2/Features/(ID)
It is returning an error 500, and when checking on Splunk we can see that the T-Shirt value is not being referenced on the API, and it is returning (the cause) the error, as shown below:
Exception: System.NullReferenceException: Object reference not set to an instance of an object. at AgileCraft.Services.FeatureService.GetFeatureTShirtName(Feature feature, IDbTransaction transaction) in C:\projects\alignapi\AgileCraft.Services\FeatureService.cs:line 1431 at AgileCraft.Services.FeatureService.EstimationConversion(Feature feature, IDbTransaction transaction) in C:\projects\alignapi\AgileCraft.Services\FeatureService.cs:line 1421 at AgileCraft.Services.FeatureService.Update(Int32 id, FeatureDto dto, IEnumerable`1 patchProperties) in C:\projects\alignapi\AgileCraft.Services\FeatureService.cs:line 567 at AgileCraft.Api.Controllers.BaseController`2.<>c__DisplayClass16_0.<Patch>b__0() in C:\projects\alignapi\AgileCraft.Api\Controllers\BaseController.cs:line 321 at AgileCraft.Api.Controllers.BaseController`2.Patch[TCustomDto](String message, String errorMessage, Int32 id, JsonPatchDocument`1 jsonPatchDocument, Func`1 patchAction) in C:\projects\alignapi\AgileCraft.Api\Controllers\BaseController.cs:line 268 Level: Error MessageTemplate: User: {User}, Authentication type: {AuthenticationType}, Method: {Method}, Message: {Message}, QueryString: {QueryString}, HttpStatus: {HttpStatus} Properties: { [-] ActionId: 198e5533-55c1-4bcc-994a-bee89d721a2a ActionName: AgileCraft.Api.Controllers.FeaturesController.Patch (AgileCraft.Api) AuthenticationType: USERIDTOKEN Build: 10.113.2.19467 ExceptionDetail: { [-] HResult: -2147467261 Message: Object reference not set to an instance of an object. Source: AgileCraft.Services StackTrace: at AgileCraft.Services.FeatureService.GetFeatureTShirtName(Feature feature, IDbTransaction transaction) in C:\projects\alignapi\AgileCraft.Services\FeatureService.cs:line 1431 at AgileCraft.Services.FeatureService.EstimationConversion(Feature feature, IDbTransaction transaction) in C:\projects\alignapi\AgileCraft.Services\FeatureService.cs:line 1421 at AgileCraft.Services.FeatureService.Update(Int32 id, FeatureDto dto, IEnumerable`1 patchProperties) in C:\projects\alignapi\AgileCraft.Services\FeatureService.cs:line 567 at AgileCraft.Api.Controllers.BaseController`2.<>c__DisplayClass16_0.<Patch>b__0() in C:\projects\alignapi\AgileCraft.Api\Controllers\BaseController.cs:line 321 at AgileCraft.Api.Controllers.BaseController`2.Patch[TCustomDto](String message, String errorMessage, Int32 id, JsonPatchDocument`1 jsonPatchDocument, Func`1 patchAction) in C:\projects\alignapi\AgileCraft.Api\Controllers\BaseController.cs:line 268 Type: System.NullReferenceException
Environment
Jira Align Cloud 10.113.2
Steps to Reproduce
- On Jira, create an Epic.
- Wait it syncs with Jira Align
- Once it is on Jira Align, using API PATCH /rest/align/api/2/Features/(ID) try to do any change (the description for example)
Expected Results
The changes must be allowed when using API -> PATCH /rest/align/api/2/Features/(ID)
Actual Results
It is returning an error 500, like the example below:
{
"type": "https://tools.ietf.org/html/rfc7231#section-6.6.1",
"title": "An error occured while processing your request.",
"status": 500,
"traceId": "|b0129117-417443a8bd5f8a82."
}
Workaround
- As soon as a Feature is created on Jira and synced in Jira Align.
- Go to that Feature and click on "Save". (do not any changes).
- Go to Postman and use PATCH on endpoint /rest/align/api/2/Features/(ID)
Ps.: this workaround makes the user lose the chance to automate any process with the Feature when it syncs Jira with Jira Align.
Notes
- is connected to
-
JAIAC-3161 Loading...
- is related to
-
ALIGNSP-16645 Loading...