nyyManni / ejira

Emacs JIRA integration
GNU General Public License v3.0
256 stars 35 forks source link

Add `ejira-heading-to-story-with-subtasks` function #28

Open isamert opened 4 years ago

isamert commented 4 years ago

As the name suggests, this function creates a story with subtasks. Subtasks are created from the subheadings of the given header. This function implemented using the primitives found in the package, I did not do any api-level stuff, so it's kinda slow in a sense that firstly it sends a request to create the story, then it sends a different request for creating each subtask. I'm not sure if this can be reduced into one or two requests but I'm happy with the given implementation.

This also partially fixes ref #9.

I should note that I'm not an elisp expert by any means, I just went with the easiest implementation I was able to do. If something seems odd, it probably is. Just putting this here so that if anyone requires something like this, they can take this as a starting point.

MadEarl commented 4 years ago

I've merged that into my fork, I like the functionality and have used it several times already. There is, however, an error with backquote-comma somewhere that I needed to fix to get it to work. Line 527 in ejira-core needs a comma, and line 159 in ejira needs a backquote, those might be all.