Skip to content

Commit

Permalink
Add changelog column to jira_issue table (#149)
Browse files Browse the repository at this point in the history
Co-authored-by: Ved misra <47312748+misraved@users.noreply.github.com>
  • Loading branch information
mariusgrigaitis and misraved authored Feb 20, 2025
1 parent a0d71db commit 5526b7c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions jira/table_jira_issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@ func tableIssue(_ context.Context) *plugin.Table {
Description: "Json object containing important subfields of the issue.",
Type: proto.ColumnType_JSON,
},
{
Name: "changelog",
Description: "JSON object containing changelog of the issue.",
Type: proto.ColumnType_JSON,
},
{
Name: "tags",
Type: proto.ColumnType_JSON,
Expand Down Expand Up @@ -255,7 +260,7 @@ func listIssues(ctx context.Context, d *plugin.QueryData, _ *plugin.HydrateData)
options := jira.SearchOptions{
StartAt: 0,
MaxResults: limit,
Expand: "names",
Expand: "names,changelog",
}

jql := ""
Expand Down Expand Up @@ -335,7 +340,7 @@ func getIssue(ctx context.Context, d *plugin.QueryData, _ *plugin.HydrateData) (
}

issue, res, err := client.Issue.Get(id, &jira.GetQueryOptions{
Expand: "names",
Expand: "names,changelog",
})
body, _ := io.ReadAll(res.Body)
plugin.Logger(ctx).Debug("jira_issue.getIssue", "res_body", string(body))
Expand Down

0 comments on commit 5526b7c

Please sign in to comment.