Jira - let's code update, edit issue operations (CRUD)
19 Dec 2010
If you are familiar with JIRA and it’s API then you might agree, that some easy operations become a little difficult when it comes to coding (all the workflows, overall JIRA stack understanding, configuration items, integration with other systems etc).
The same is especially true when it comes to creating / updating JIRAs issues, which definitely is backbone for issue tracking systems. Some might argue that this type of things should be done by JIRA itself only. And I couldn't agree more. However JIRA tend to become issue-tracking puzzle-building machinery, where JIRA itself is LEGO puzzle only, so plenty of crazy stuff "you better shouldn't do this" or "you are not supposed to do that" is very popular in the JIRA plugin development world.
So, back to issue creation/update problem. This is kind of task I code almost in every plugin. And anyway, it bugs me every time :) It's difficult for me to remember all the nuances and it's context dependent as well. Lets see that JIRA development form says about this - create
. Seems already solved problem, isn't it? However it takes me a plenty time to solve it out if I don't have out-the box solution in my local repository.
So, this time I decided to share a little code with you, and just a reminder to myself as well (I tend to forget things all the time).
And here comes the implementation itself:
If you've found typos or errors, please
suggest a correction
edit on github