Hi all,
is there a way to delete an Insight Object by script (scriptrunner, insight post function, jira post function...).
In post function, we have the choice to create an Insight Object, but not to delete..
Thanks in advance.
Regards
Hello,
seems possible like this
import com.atlassian.jira.component.ComponentAccessor;
/* The object facade class */
Class objectFacadeClass = ComponentAccessor.getPluginAccessor().getClassLoader().findClass("com.riadalabs.jira.plugins.insight.channel.external.api.facade.ObjectFacade");
/* The reference to the object facade which you can use in your code */
def objectFacade = ComponentAccessor.getOSGiComponentInstanceOfType(objectFacadeClass);
objectFacade.deleteObjectBean(objectFacade.loadObjectBean("ObjectKey").getId());
Hi Xavier,
Currently this feature is not implemented out of the box in Insight.
I would like to recommend you to visit https://jira.riada.se which is Insight open ticket system for feature requests and verified bugs. You can view, watch, vote etc for issues reported by anyone.
If you can't find an already opened feature request for this, feel free to create a new one.
Cheers!
Nader
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nader,
thanks for your feedback.
I finally found a way to delete the object.
Regards,
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.