ankitpokhrel / jira-cli

šŸ”„ Feature-rich interactive Jira command line.
MIT License
4k stars 211 forks source link

--column don't display custom field #616

Open Chunyu-Hu opened 1 year ago

Chunyu-Hu commented 1 year ago

Please consider opening a discussion in ideas category if applicable. Your feature will be prioritized on based on the number of votes.

Is your feature request related to a problem? Please describe.

Use jira_1.3.0_linux_x86_64: The custom fields don't show in list output:

[test] jira issue list -q "project ="RHEL" and 'QA Contact' in ("chuhu'\u0040'redhat.com") and 'Preliminary Testing' !=Pass" --plain --no-headers --columns "key,type,status,resolution,summary,'QA Contact'" RHEL-311 Story Development sched/psi updates to v6.3-rc1

The config: issue: fields: custom:

        - name: QA Contact                                                                                                                                               
          key: customfield_12315948
          schema:
            datatype: user

Describe the solution you'd like

Display the required output column, even it's custom field.

Describe alternatives you've considered

Additional context

jlevon commented 1 year ago

Nor does specifying e.g. "customfield_36370"

jlevon commented 1 year ago

There seems to be no way at all to retrieve custom fields in fact.

EgZvor commented 5 months ago
--columns string          Comma separated list of columns to display in the plain mode.
                          Accepts: TYPE, KEY, SUMMARY, STATUS, ASSIGNEE, REPORTER, PRIORITY, RESOLUTION, CREATED, UPDATED, LABELS

it's not just custom fields, you can't even specify "epic link" (or is it custom?)

ankitpokhrel commented 3 months ago

Epic Link is a custom field.

The --columns flag doesn't display custom field because those fields are not available in the TUI itself. The TUI should be updated to include these fields first. I'll see if this is easily doable. PRs are welcome in the meantime.