Skip to content

Conversation

iksi4prs
Copy link
Contributor

Motivation
Adding support to parse the output of issues in plain mode,

Current problem
Current delimiter in plain mode is TAB (\t), but TAB is also used for padding the columns.
If the an issue has a value which requires more than one TAB for padding, eg where issue type is of "improvement",
then some columns will contain more than one TAB, hence not possible to parse in simple way.

Change:
Add command line arg delimiter for custom delimiter instead of tab supported only for plain mode for issues.
For backward compatibility and reduce risk of affecting other code, this new command line arg is applicable only for plain mode.

@ankitpokhrel
Copy link
Owner

Hi @iksi4prs, thank you for working on this. Would you be able to fix/update the tests? Thanks

@iksi4prs
Copy link
Contributor Author

@ankitpokhrel , will do my best. There are few old opened PRs (from other people), hence I thought this project is not active anymore.

@jcutrell
Copy link

Is this still active? I'd really like to have the delimiter option to do some analysis on the issue list.

@iksi4prs
Copy link
Contributor Author

@jcutrell I will do my best to fix the tests asap, so pr can be merged.
in any case, u can take my branch and build it, the feature itself works,
it just that uni-tests were not updated.

@iksi4prs
Copy link
Contributor Author

iksi4prs commented May 29, 2024

@ankitpokhrel , I've fixed the unit tests and added new one for this feature. please check when u have time. 10x.

@electriquo
Copy link

This is much needed feature.
@ankitpokhrel Could you please share whether you have any intention on merging/implementing this?

@ankitpokhrel ankitpokhrel merged commit 7bc6230 into ankitpokhrel:main May 27, 2025
2 of 4 checks passed
@ankitpokhrel
Copy link
Owner

Sorry for getting into this late

tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Sep 2, 2025
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [ankitpokhrel/jira-cli](https://github.com/ankitpokhrel/jira-cli) | minor | `v1.6.0` -> `v1.7.0` |

MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot).

**Proposed changes to behavior should be submitted there as MRs.**

---

### Release Notes

<details>
<summary>ankitpokhrel/jira-cli (ankitpokhrel/jira-cli)</summary>

### [`v1.7.0`](https://github.com/ankitpokhrel/jira-cli/releases/tag/v1.7.0)

[Compare Source](ankitpokhrel/jira-cli@v1.6.0...v1.7.0)

This release adds CSV and JSON output support for issue listings and upgrades deprecated endpoints to ensure compatibility with the latest Jira APIs.

> \[!IMPORTANT]
>
> - The [new API](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-rest-api-3-search-jql-get) does not return the total number of entries anymore, so the total issue count is no longer displayed in the search results.
> - Consequently, the `startAt` parameter in the new API is unsupported. Therefore, the `from` part of the `--paginate=<from>:<limit>` flag is effectively ignored. Users can still paginate using the maxResults parameter (e.g., --paginate=10).

#### 🥷 What's added?

- feat: Add option to list issues in raw JSON by [@&#8203;evg656e](https://github.com/evg656e) in [#&#8203;840](ankitpokhrel/jira-cli#840)
- feat: Add releases Subcommand by [@&#8203;vkhitrin](https://github.com/vkhitrin) in [#&#8203;851](ankitpokhrel/jira-cli#851)
- feat: Support num comments in issue list cmd by [@&#8203;ankitpokhrel](https://github.com/ankitpokhrel) in [#&#8203;853](ankitpokhrel/jira-cli#853)
- feat: Support CSV when listing issues by [@&#8203;ankitpokhrel](https://github.com/ankitpokhrel) in [#&#8203;854](ankitpokhrel/jira-cli#854)
- feat: Allow skipping notification on edit by [@&#8203;ankitpokhrel](https://github.com/ankitpokhrel) in [#&#8203;855](ankitpokhrel/jira-cli#855)
- feat: Add command line arg delimiter for custom delimiter instead of tab. by [@&#8203;iksi4prs](https://github.com/iksi4prs) in [#&#8203;662](ankitpokhrel/jira-cli#662)
- feat: Add support for environment variable to specify config file path by [@&#8203;aazon](https://github.com/aazon) in [#&#8203;858](ankitpokhrel/jira-cli#858)

#### 🐞 What's fixed?

- fix: usernames can be 2 chars by [@&#8203;jontyq](https://github.com/jontyq) in [#&#8203;890](ankitpokhrel/jira-cli#890)
- fix: Update deprecated endpoint by [@&#8203;ankitpokhrel](https://github.com/ankitpokhrel) in [#&#8203;892](ankitpokhrel/jira-cli#892)
- fix: csv format priority by [@&#8203;ciricc](https://github.com/ciricc) in [#&#8203;882](ankitpokhrel/jira-cli#882)

#### ☕️ Other changes

- chore(docs): Add packaging stats to Installation section in README.md by [@&#8203;kskarthik](https://github.com/kskarthik) in [#&#8203;857](ankitpokhrel/jira-cli#857)

#### New Contributors

- [@&#8203;evg656e](https://github.com/evg656e) made their first contribution in [#&#8203;840](ankitpokhrel/jira-cli#840)
- [@&#8203;vkhitrin](https://github.com/vkhitrin) made their first contribution in [#&#8203;851](ankitpokhrel/jira-cli#851)
- [@&#8203;iksi4prs](https://github.com/iksi4prs) made their first contribution in [#&#8203;662](ankitpokhrel/jira-cli#662)
- [@&#8203;aazon](https://github.com/aazon) made their first contribution in [#&#8203;858](ankitpokhrel/jira-cli#858)
- [@&#8203;jontyq](https://github.com/jontyq) made their first contribution in [#&#8203;890](ankitpokhrel/jira-cli#890)
- [@&#8203;ciricc](https://github.com/ciricc) made their first contribution in [#&#8203;882](ankitpokhrel/jira-cli#882)
- [@&#8203;kskarthik](https://github.com/kskarthik) made their first contribution in [#&#8203;857](ankitpokhrel/jira-cli#857)

**Full Changelog**: <ankitpokhrel/jira-cli@v1.6.0...v1.7.0>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this MR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box

---

This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS45MS4zIiwidXBkYXRlZEluVmVyIjoiNDEuOTEuMyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiUmVub3ZhdGUgQm90Il19-->
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

Successfully merging this pull request may close these issues.

4 participants