Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jira view not returning expected field #478

Open
csandwith opened this issue Dec 13, 2022 · 1 comment
Open

jira view not returning expected field #478

csandwith opened this issue Dec 13, 2022 · 1 comment

Comments

@csandwith
Copy link

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:
image
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

@Honest-Objections
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants