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

fix: regression introduced by new OriginalEstimate attribute #767

Merged

Conversation

fabio42
Copy link
Contributor

@fabio42 fabio42 commented Aug 26, 2024

The recent changes in PR #748 caused issues with jira-cli when used with Jira Enterprise On-Prem (now referred to as DataCenter). All requests started failing with the following error message:

Error:
  - timetracking: Field 'timetracking' cannot be set. It is not on the appropriate screen, or unknown.

The issue arises because, even if the --original-estimate option is not specified, the timetracking field is included in the JSON query. This PR addresses the issue by ensuring that the timetracking field is only included in the JSON query if the --original-estimate option is set. I have tested the fix, and all tests are passing.

Please review the changes and let me know if there are any concerns.

The recent changes in PR ankitpokhrel#748 caused issues with jira-cli when used with Jira Enterprise On-Prem (now referred to as DataCenter). All requests started failing with the following error message:

```
Error:
  - timetracking: Field 'timetracking' cannot be set. It is not on the appropriate screen, or unknown.
```

The issue arises because, even if the `--original-estimate` option is not specified, the timetracking field is included in the JSON query.
This PR addresses the issue by ensuring that the timetracking field is only included in the JSON query if the `--original-estimate` option is set.
I have tested the fix, and all tests are passing.

Please review the changes and let me know if there are any concerns.
@itay-sho
Copy link

Thanks for the fix! had the same problem

Copy link
Owner

@ankitpokhrel ankitpokhrel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @fabio42

@ankitpokhrel ankitpokhrel merged commit 2c9e6db into ankitpokhrel:main Aug 30, 2024
4 checks passed
tmeijn pushed a commit to tmeijn/dotfiles that referenced this pull request Sep 23, 2024
This MR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [ankitpokhrel/jira-cli](https://github.com/ankitpokhrel/jira-cli) | patch | `v1.5.1` -> `v1.5.2` |

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.5.2`](https://github.com/ankitpokhrel/jira-cli/releases/tag/v1.5.2)

[Compare Source](ankitpokhrel/jira-cli@v1.5.1...v1.5.2)

#### What's Changed

-   feat: issue view: Raw response option by [@&#8203;mpalahuta](https://github.com/mpalahuta) in ankitpokhrel/jira-cli#720
-   feat: Add original estimate option to issue creation by [@&#8203;rodcloutier](https://github.com/rodcloutier) in ankitpokhrel/jira-cli#748
-   feat: Allow updating parent on edit by [@&#8203;ankitpokhrel](https://github.com/ankitpokhrel) in ankitpokhrel/jira-cli#765
-   feat: Add cli method for close sprint with supporting jira client … by [@&#8203;cworsnup13](https://github.com/cworsnup13) in ankitpokhrel/jira-cli#756 ankitpokhrel/jira-cli#778
-   fix: Epic description overridden in no-input mode by [@&#8203;ankitpokhrel](https://github.com/ankitpokhrel) in ankitpokhrel/jira-cli#728
-   fix: Regression introduced by new OriginalEstimate attribute by [@&#8203;fabio42](https://github.com/fabio42) in ankitpokhrel/jira-cli#767
-   fix: Consider Windows Terminal as non-dumb terminal by [@&#8203;beatbrot](https://github.com/beatbrot) in ankitpokhrel/jira-cli#706
-   fix: Improve zsh autocomplete directions by [@&#8203;omair-inam](https://github.com/omair-inam) in ankitpokhrel/jira-cli#739

#### New Contributors

-   [@&#8203;mpalahuta](https://github.com/mpalahuta) made their first contribution in ankitpokhrel/jira-cli#720
-   [@&#8203;omair-inam](https://github.com/omair-inam) made their first contribution in ankitpokhrel/jira-cli#739
-   [@&#8203;rodcloutier](https://github.com/rodcloutier) made their first contribution in ankitpokhrel/jira-cli#748
-   [@&#8203;fabio42](https://github.com/fabio42) made their first contribution in ankitpokhrel/jira-cli#767
-   [@&#8203;cworsnup13](https://github.com/cworsnup13) made their first contribution in ankitpokhrel/jira-cli#756

**Full Changelog**: ankitpokhrel/jira-cli@v1.5.1...v1.5.2

</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:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJSZW5vdmF0ZSBCb3QiXX0=-->
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.

3 participants