turbot / steampipe-plugin-jira

Use SQL to instantly query Jira. Open source CLI. No DB required.
https://hub.steampipe.io/plugins/turbot/jira
Apache License 2.0
22 stars 14 forks source link

Fix `epic_key` column in list call. Closes #75 #80

Closed karanpopat closed 1 year ago

karanpopat commented 1 year ago

Example query results

Results ``` > select key, id, epic_key, project_key from jira_issue where key in ('SBT-1', 'SBT-2', 'SBT-3') +-------+-------+----------+-------------+ | key | id | epic_key | project_key | +-------+-------+----------+-------------+ | SBT-3 | 10052 | SBT-1 | SBT | | SBT-1 | 10050 | | SBT | | SBT-2 | 10051 | SBT-1 | SBT | +-------+-------+----------+-------------+ Time: 396ms. Rows fetched: 1. Hydrate calls: 0. > select key, id, epic_key, project_key from jira_issue where project_key = 'SBT' +-------+-------+----------+-------------+ | key | id | epic_key | project_key | +-------+-------+----------+-------------+ | SBT-3 | 10052 | SBT-1 | SBT | | SBT-1 | 10050 | | SBT | | SBT-2 | 10051 | SBT-1 | SBT | +-------+-------+----------+-------------+ Time: 0.9s. Rows fetched: 3. Hydrate calls: 3. ```
karanpopat commented 1 year ago

@misraved Findings:

Have modified the list call in this PR to use the rest/api/2/search endpoint.