From ad1a13c98d778ce0d41f6a08b8374b72b28afc2e Mon Sep 17 00:00:00 2001 From: Gahan Rakholia Date: Sun, 25 Jun 2023 00:30:12 +0530 Subject: [PATCH] add nested access to fetch epic details --- pkg/jira_changelog/jira/client.go | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/pkg/jira_changelog/jira/client.go b/pkg/jira_changelog/jira/client.go index a93ad54..219a370 100644 --- a/pkg/jira_changelog/jira/client.go +++ b/pkg/jira_changelog/jira/client.go @@ -16,8 +16,15 @@ type Client struct { } type Issue struct { - Id string `json:"id"` - Key string `json:"key"` + Id string `json:"id"` + Key string `json:"key"` + Fields struct { + Parent struct { + Fields struct { + Summary string `json:"summary"` + } `json:"fields,omitempty"` + } `json:"parent,omitempty"` + } `json:"fields"` } func (c *Client) setupClient() {