We have some issues "Client Initiatives" that are reviewed by the Client and are either - Approved, On hold or Canceled. The approved ones get scheduled into a Sprint/ Release, the On Hold ones sit in the Backlog for future review and reconsideration. So do the Canceled ones.
The management team now does not want to keep the Canceled ones in JIRA, not even out of sight somewhere - they want the "Canceled" ones to be deleted automatically when some clicks on the "Cancel Issue" button. I'm not sure this is a good idea, but I need to respond with whats possible as well as provide recommendations on whats a better way to handle this.
Question - Is there a way to delete issues via a postfunction?
Deleting issues in post function is never a good idea. I would suggest 2 alternatives, if you can convince your users to do that
I'm totally with you - deleting issues, especially "on the fly" is not so good idea (it have some pros, but in my opinion there are more cons). However if your management don't want to archive those issues in one way or another (moving issues to closed project, moving issues to archive instance, copying issue DB entries to separate archive table/DB), then what can you do?
Back to deleting issues. One of the ways is to use Kepler-Rominfo's JJupin.
JJupin has deleteIssue() function, however you cannot delete the current issue (the one you have launched the post-function on). But it's a good thing, because there is a better and safer way to do that:
string my_key; string log_message; string[] list_of_issues = selectIssues("Status in ('To be deleted')"); for (number i=0; i<size(list_of_issues); ++i) { my_key = list_of_issues[i]; log_message = "SIL SERVICE ---- Deleting issue: "+my_key; logPrint("WARN", log_message); deleteIssue(my_key); }
As you can see above, you can get amazing results with small amount of work this way. And that's always the case with JJupin And the plugin is really affordable.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Alternative:
If you want to just not see them in the backlog ("I'm not sure this is a good idea") go into the board your team is using and modify the query to not include those issues with the status of Canceled. That way, you can always delete or recover them later.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
you might find this link useful:
https://devblog.xing.com/qa/deleting-issues-with-jira-post-functions/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.