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

Editing issues from list view #280

Open
robertocarta opened this issue Jan 28, 2022 · 7 comments
Open

Editing issues from list view #280

robertocarta opened this issue Jan 28, 2022 · 7 comments

Comments

@robertocarta
Copy link

Hi - sorry if I'm missing something obvious here. I don't understand how to edit an issue from the list view. Is the only one to note the issue number, leave the list view and issue an edit command?

Thanks for your work!

@ankitpokhrel
Copy link
Owner

Hi @robertocarta, this feature is yet to be implemented. For now, you'll have to issue the edit command separately.

@Nfinished
Copy link

Obviously it's a huge feature but something akin to ranger for navigating and modifying sprints and issues within them would be incredible

@guilhermeprokisch
Copy link

Any progress on that? Thanks for this tool!

@guilhermeprokisch
Copy link

guilhermeprokisch commented Jan 4, 2023

If someone else is interested I made a script using fzf to achieve this. It's just to press 'e' on an item list to trigger the edit mode and 'm' to move mode.

j(){
    SEARCH_QUERY='jira issue list -a$(jira me) --plain  --columns id,summary,status' 
    FZF_DEFAULT_COMMAND=$SEARCH_QUERY fzf \
      --layout=reverse \
      --header-lines=1 \
      --preview 'jira issue view {1}' \
      --bind 'e:execute(jira issue edit {1})'\
      --bind 'm:execute(jira issue move {1})'
}

@electriquo
Copy link

electriquo commented May 2, 2024

@guilhermeprokisch I took yours and slightly modified it to enjoy fzf fuzzy search

  • ALT+P toggles the preview window
  • ALT+J scrolls up the preview window
  • ALT+K scrolls down the preview window
  • ALT+E edits the issue
  • ALT+M moves the issue
  • ALT+C comments in the issue
  • ALT+D deletes the issue
jira issue list \
  -a $(jira me) \
  --plain  \
  --columns id,summary,status |
  fzf \
  --layout reverse \
  --header-lines 1 \
  --preview-window 'bottom:80%:wrap' \
  --preview 'jira issue view {1}' \
  --bind 'alt-p:toggle-preview' \
  --bind 'alt-j:preview-up' \
  --bind 'alt-k:preview-down' \
  --bind 'alt-e:execute(jira issue edit {1})' \
  --bind 'alt-m:execute(jira issue move {1})' \
  --bind 'alt-c:execute(jira issue comment {1})' \
  --bind 'alt-d:execute(jira issue delete {1})'

@electriquo
Copy link

Jira CLI let you edit issues by launching an editor pointed by the EDITOR environment variable. I wish there was ability to override this by setting the editor in the configuration. Since Jira issues may use Markdown, it will be nice to be able to configure an editor which supports Markdown (including rendering).

Git has such core.editor configuration for such things.

@zph
Copy link

zph commented Jul 11, 2024

I iterated on @electriquo 's version and replicated some of the built in behavior (copy key or url) https://gist.github.com/zph/917d1ca2ac2becd15375ce8caf89563a

If using alacritty terminal on Mac, using alt-key requires a recent version and the following modification to alacritty config:
alacritty/alacritty#93 (comment)

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

No branches or pull requests

6 participants