Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

delete issue while workflow transition

Alexander Richter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 19, 2016

2 answers

1 vote
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 19, 2016

That would be rather ugly, and I suspect it will fail (even if it doesn't, it'll throw a lot of errors as JIRA tries to do things with stuff you've just killed off)

I would move it to a listener - look for the event your transition fires and have the listener perform the delete after the transition has finished.

(Oh, and don't delete issues as a general rule, as you always end up with a user saying "I didn't mean it" and having to go find the backup tapes it might still be on.  Or a bulky fine from a regulator for deliberately deleting audit data)

0 votes
Alexander Richter
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 20, 2016

then i would need a jql included in the script, which gives me the issues that have to be deleted

could you give a example for a script like this?

Suggest an answer

Log in or Sign up to answer