Closed Myz closed 6 years ago
The headline parser (regex) would have to be updated to accommodate the Clean-view mode (neat option in org for sure).
Does the clean view just affect the display, or does it cause the files themselves to be saved with leading spaces instead of stars? (does the raw file still have stars?)
The entire org-jira is only set up / tested / functional with the non-clean (standard) view at the moment, so I would add the option to disable this in your PROJ.org buffers you plan to use org-jira in for now.
As I found out, the raw buffer still contains the double stars (**
), the first ones foreground color is just the same as the background color.
Sure I did a test with not having anything from my config like that:
~$ cd $(mktemp -d)
/tmp/tmp.lgoFlg708e$ cat > .emacs <<EOF
(require 'package)
(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t)
(package-initialize)
(setq jiralib-url "https://**********/jira")
EOF
/tmp/tmp.lgoFlg708e$ env HOME=$(pwd) emacs
Then I installed the packages org
& org-jira
, restarted emacs just to be sure.
Then I ran M-x org-jira-get-issues
which then prompts me for the username and the password. Once entered it pulls down all my issues and opens up the buffer in the window.
Now I log some time on some issue with the org clock in C-c C-x C-i
and out commands C-c C-x C-o
,
All good until here.
Then when I try to push these changes with M-x org-jira-update-worklogs-from-org-clocks RET
back again it fails because it is not finding the headline aka Not on an issue region!
.
From the messages buffer:
...
Problems while trying to load feature ‘org-gnus’
...
org-jira-find-value: Wrong type argument: listp, (description . ".....
...
org-jira-get-issue-val-from-org: Not on an issue region!
...
It might not fail on the backward regex search, because doing this manually in the buffer works perfectly fine.
The buffer is in MAJOR Org and MINOR jira mode.
Does org-jira-update-issue
command work? It should also update the clocks (it calls the command you're calling directly, however after potentially navigating to acceptable spot).
Also the position of LOGBOOK is important - your structure should look like this:
* PROJ-Tickets
** TODO Some task :PROJ-123:
:PROPERTIES:
<snip>
:END:
:LOGBOOK:
CLOCK: <whatever>
:END:
*** description: PROJ-123
Some description
After pulling the issues with M-x org-jira-get-issues RET
it looks like this to me:
* DEV-Tickets
** TODO bla bla bla :DEV_6430:
:PROPERTIES:
:assignee: my
:reporter: someoneelse
:type: Story
:priority: Default
:status: Open
:END:
The description is completely missing even thou there is one in the jira itself for the specific ticket.
The previous output from my *Messages*
buffer might be related to that: org-jira-find-value: Wrong type argument: listp, (description . ".....
.
I also tried to update only that single ticket with M-x org-jira-update-issue RET
while having the cursor ON the headline and this was the outcome:
org-jira-update-issue: Not on an issue
I'm also experiencing this, let me know if there's anything I can help with, or information to provide to to debug this. Thanks!
Are you also using Clean View? @iqrow
I was having this issue as well, turns out it was related to this: https://github.com/syl20bnr/emacs-emoji-cheat-sheet-plus/issues/5
Match data clobbered
is what made me think it didn't have anything to do with org-jira or clean mode. Turns out emoji-cheat-sheet-plus was messing with the file being written.
Wow! I would have not found that out (never looked at that package before). I'm going to close this then - unrelated, how do you like that package?
Thanks for the find.
So how to fix this issue?
@Ragenvald I think the best way to solve this at the moment is to disable the emoji layer in your spacemacs configuration.
Yes @Myz @Ragenvald the fix that I was able to find was to disable the emoji-cheat-sheet-plus
layer in my spacemacs configuration. Everything went back to normal afterwards.
I had a look into the source code and found out that a regexp is being used in order to find the current headline. Therefore it looks for
**
which might not be there when displaying the task list indented where the second*
is being omitted.It expects this kind of structure:
But in my buffer it looks like this:
Note the indentation on the second line. https://orgmode.org/manual/Clean-view.html
Even disabling https://github.com/sabof/org-bullets does not help.