jira view not returning expected field
csandwith opened this issue · comments
When running jira view on an issue, I'm getting some fields back, but one that I am expecting is not being returned - further, when attempting to add the --field arg to the command, it is still not being returned.
When running jira view -v KRAK-3333
, I'm getting back
issue: KRAK-3333
created: 3 days ago
status: To Do
summary: redacted
project: KRAK
issuetype: Story
reporter: Cody Sandwith
priority: Major
votes: 0
description: |
redacted
Notably absent is a field called Fix Version
Here is a redacted view of the issue in my cloud JIRA instance:
Note that, on the right, you'll see a field called Fix Version with a value v1.3 - I want to get that value back using go-jira
When I run jira fields, among a lot of other stuff I see
{
"clauseNames": [
"fixVersion"
],
"id": "fixVersions",
"key": "fixVersions",
"name": "Fix versions",
"navigable": true,
"orderable": true,
"schema": {
"items": "version",
"system": "fixVersions",
"type": "array"
},
"searchable": true
}
So, go-jira is aware of the field, but the value isn't coming back with jira view
and I'm not sure what I can do to make it do this. I've scoured the github looking for some example but I was unable to find one. Any assistance would be greatly appreciated.
Thanks
It's not the most visible, but check out the section on templates in the README. The view template will default to using a view
template, which you configure to print your value